.eslintrc-drastic.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. "extends": "./.eslintrc-base.json",
  3. "rules": {
  4. // Possible errors
  5. "no-unsafe-negation" : 2,
  6. // Best practices
  7. "block-scoped-var" : 2,
  8. "curly" : [ 2, "all"],
  9. "dot-notation" : [2],
  10. "no-else-return" : 2,
  11. "no-implicit-globals" : 2,
  12. "no-lone-blocks" : 2,
  13. "prefer-const" : 2,
  14. "no-var" : 2,
  15. //"no-multi-spaces" : [2, { "exceptions": { "Property": true, "VariableDeclarator": true } }],
  16. // Variables
  17. "no-catch-shadow" : 2,
  18. "no-shadow" : 2,
  19. // Stylistic issues
  20. "block-spacing" : 2,
  21. "camelcase" : [2, { "properties": "always" }],
  22. "indent" : [2, 2],
  23. //"key-spacing" : [2, { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
  24. "padding-line-between-statements": [2,
  25. { "blankLine": "always", "prev": ["const", "let", "var"], "next": "*"}, // always blank line after var-like statements
  26. { "blankLine": "any", "prev": ["const", "let", "var"], "next": ["const", "let", "var"]}, // no need for a blank line between var-like statements
  27. { "blankLine": "always", "prev": "directive", "next": "*" }, // new line after directives (e.g. "use strict")
  28. { "blankLine": "any", "prev": "directive", "next": "directive" },
  29. { "blankLine": "always", "prev": "*", "next": "return" }
  30. ],
  31. "newline-per-chained-call" : 2,
  32. "object-curly-spacing" : [2, "always"],
  33. "one-var" : [2, "never"],
  34. "one-var-declaration-per-line" : 2,
  35. "padded-blocks" : [2, "always"]
  36. //"consistent-this" : [2, "_this"],
  37. }
  38. }