.eslintrc 731 B

1234567891011121314151617181920212223242526272829
  1. {
  2. // Note: The root .eslintrc file will define the base rules,
  3. // but mozilla/recommended will override them for the rules it sets. Finally,
  4. // the rules in this file will take precedence.
  5. "extends": [
  6. "plugin:mozilla/recommended",
  7. ],
  8. "parserOptions": {
  9. "sourceType": "script",
  10. },
  11. "plugins": [
  12. "mozilla"
  13. ],
  14. "rules": {
  15. // Items different from the mozilla/recommended configuration.
  16. "no-var": "off",
  17. // Other rules mozilla/recommended hasn't enabled yet.
  18. "no-shadow": "error",
  19. "arrow-body-style": ["error", "as-needed"],
  20. "arrow-parens": ["error", "always"],
  21. "constructor-super": "error",
  22. "no-confusing-arrow": "error",
  23. "no-useless-constructor": "error",
  24. },
  25. }