51 lines
1.1 KiB
Plaintext
51 lines
1.1 KiB
Plaintext
{
|
|
"extends": [
|
|
../../.eslintrc
|
|
],
|
|
|
|
"parserOptions": {
|
|
"ecmaVersion": 6,
|
|
"sourceType": "script"
|
|
},
|
|
|
|
"plugins": [
|
|
"mozilla"
|
|
],
|
|
|
|
"globals": {
|
|
"Components": false,
|
|
"dump": false
|
|
},
|
|
|
|
"rules": {
|
|
"mozilla/import-globals": "error",
|
|
|
|
// Best Practices
|
|
"consistent-return": "error",
|
|
|
|
// Variables
|
|
"no-shadow": "error",
|
|
"no-unused-vars": ["error", {
|
|
"vars": "local",
|
|
"varsIgnorePattern": "^Cc|Ci|Cu|Cr|EXPORTED_SYMBOLS",
|
|
"args": "none",
|
|
}],
|
|
|
|
// Stylistic Issues
|
|
"no-nested-ternary": "error",
|
|
"quotes": ["error", "double"],
|
|
"space-before-function-paren": ["error", "never"],
|
|
|
|
// ECMAScript 6
|
|
"arrow-body-style": ["error", "as-needed"],
|
|
"arrow-parens": ["error", "always"],
|
|
"arrow-spacing": ["error", { "before": true, "after": true, }],
|
|
"constructor-super": "error",
|
|
"no-confusing-arrow": "error",
|
|
"no-const-assign": "error",
|
|
"no-dupe-class-members": "error",
|
|
"no-useless-constructor": "error",
|
|
"object-shorthand": ["error", "always", { "avoidQuotes": true }],
|
|
},
|
|
}
|