.eslintrc.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. "use strict";
  2. module.exports = { // eslint-disable-line no-undef
  3. "extends": "../../.eslintrc.js",
  4. "rules": {
  5. // Require spacing around =>
  6. "arrow-spacing": "error",
  7. // No newline before open brace for a block
  8. "brace-style": ["error", "1tbs", {"allowSingleLine": true}],
  9. // No space before always a space after a comma
  10. "comma-spacing": ["error", {"before": false, "after": true}],
  11. // Commas at the end of the line not the start
  12. "comma-style": "error",
  13. // Use [] instead of Array()
  14. "no-array-constructor": "error",
  15. // Use {} instead of new Object()
  16. "no-new-object": "error",
  17. // No using undeclared variables
  18. "no-undef": "error",
  19. // Don't allow unused local variables unless they match the pattern
  20. "no-unused-vars": ["error", {"args": "none", "vars": "local", "varsIgnorePattern": "^(ids|ignored|unused)$"}],
  21. // Always require semicolon at end of statement
  22. "semi": ["error", "always"],
  23. // Require spaces around operators
  24. "space-infix-ops": "error",
  25. }
  26. };