activity-stream/.eslintrc

72 строки
1.7 KiB
Plaintext

{
// When adding items to this file please check for effects on sub-directories.
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"es6": true,
"mocha": true,
"node": true,
},
"globals": {
"StopIteration": true,
"__CONFIG__": true
},
"plugins": [
"mozilla",
"react"
],
"extends": [
"eslint:recommended"
],
"rules": {
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1,
"mozilla/components-imports": 1,
"mozilla/import-globals-from": 1,
"mozilla/this-top-level-scope": 1,
"array-bracket-spacing": [2, "never"],
"camelcase": 0,
"comma-dangle": 0,
"computed-property-spacing": [2, "never"],
"default-case": 0,
"eqeqeq": 2,
"func-names": 0,
"func-style": 0,
"global-require": 0,
"id-blacklist": 0,
"id-length": 0,
"id-match": 0,
"init-declarations": 0,
"max-len": 0,
"max-params": 0,
"newline-after-var": 0,
"no-bitwise": 0,
"no-console": 1,
"no-empty-function": 0,
"no-inline-comments": 0,
"no-invalid-this": 0,
"no-magic-numbers": 0,
"no-negated-condition": 0,
"no-shadow": 0, // TODO: Change to `1`?
"no-trailing-spaces": [2, {"skipBlankLines": false}],
"no-undef": 2,
"no-underscore-dangle": 0,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-warning-comments": 0, // TODO: Change to `1`?
"object-curly-spacing": [2, "never"],
"no-var": 2,
"prefer-const": 0, // TODO: Change to `1`?
"prefer-reflect": 0,
"quotes": [2, "double", "avoid-escape"],
"semi": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
"strict": 0
}
}