activity-stream/.eslintrc

163 строки
4.5 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,
"platform_exports": true,
"platform_require": true
},
"plugins": [
"json",
"mozilla",
"react"
],
"extends": [
"eslint:recommended"
],
"rules": {
"mozilla/components-imports": 1,
"mozilla/import-globals-from": 1,
"mozilla/this-top-level-scope": 1,
"react/jsx-equals-spacing": [2, "never"],
"react/jsx-no-duplicate-props": 2,
"react/jsx-no-undef": 2,
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-did-mount-set-state": 2,
"react/no-unknown-property": 2,
"react/self-closing-comp": 2,
"react/wrap-multilines": 2,
"accessor-pairs": [2, {"setWithoutGet": true, "getWithoutSet": false}],
"array-bracket-spacing": [2, "never"],
"array-callback-return": 2,
"arrow-spacing": 2,
"block-scoped-var": 2,
"brace-style": 0,
"camelcase": 0,
"comma-dangle": 0,
"comma-spacing": 2,
"comma-style": 2,
"computed-property-spacing": [2, "never"],
"consistent-this": [2, "use-bind"],
"curly": [2, "all"],
"default-case": 0,
"dot-notation": 2,
"eol-last": 2,
"eqeqeq": 2,
"func-names": 0,
"func-style": 0,
"generator-star-spacing": [2, {"before": false, "after": false}],
"global-require": 0,
"handle-callback-err": 2,
"id-blacklist": 0,
"id-length": 0,
"id-match": 0,
"indent": [2, 2, {"SwitchCase": 1}],
"init-declarations": 0,
"jsx-quotes": [2, "prefer-double"],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}],
"keyword-spacing": 2,
"linebreak-style": [2, "unix"],
"max-len": 0,
"max-params": 0,
"new-parens": 2,
"newline-after-var": 0,
"no-array-constructor": 2,
"no-bitwise": 0,
"no-caller": 2,
"no-class-assign": 2,
"no-console": 1,
"no-const-assign": 2,
"no-div-regex": 2,
"no-duplicate-case": 2,
"no-empty": 2,
"no-empty-function": 0,
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-label": 2,
"no-extra-semi": 2,
"no-floating-decimal": 2,
"no-implied-eval": 2,
"no-inline-comments": 0,
"no-invalid-this": 0,
"no-iterator": 2,
"no-label-var": 2,
"no-labels": 2,
"no-lone-blocks": 2,
"no-lonely-if": 2,
"no-loop-func": 2,
"no-magic-numbers": 0,
"no-mixed-requires": 2,
"no-mixed-spaces-and-tabs": 2,
"no-multi-str": 2,
"no-multiple-empty-lines": 2,
"no-native-reassign": 2,
"no-negated-condition": 0,
"no-new": 2,
"no-new-func": 2,
"no-new-object": 2,
"no-new-require": 2,
"no-new-wrappers": 2,
"no-octal-escape": 2,
"no-path-concat": 2,
"no-proto": 2,
"no-self-compare": 2,
"no-shadow": 0, // TODO: Change to `1`?
"no-shadow-restricted-names": 2,
"no-spaced-func": 2,
"no-sync": 2,
"no-throw-literal": 2,
"no-trailing-spaces": [2, {"skipBlankLines": false}],
"no-undef": 2,
"no-undef-init": 2,
"no-underscore-dangle": 0,
"no-unexpected-multiline": 2,
"no-unmodified-loop-condition": 2,
"no-unneeded-ternary": 2,
"no-unused-vars": [2, {"vars": "all", "args": "none"}],
"no-useless-call": 2,
"no-useless-constructor": 2,
"no-var": 2,
"no-void": 2,
"no-warning-comments": 0, // TODO: Change to `1`?
"no-whitespace-before-property": 2,
"no-with": 2,
"object-curly-spacing": [2, "never"],
"one-var": [2, "never"],
"one-var-declaration-per-line": [2, "initializations"],
"operator-assignment": [2, "always"],
"operator-linebreak": [2, "after"],
"prefer-const": 0, // TODO: Change to `1`?
"prefer-reflect": 0,
"quotes": [2, "double", "avoid-escape"],
"radix": [2, "always"],
"semi": [2, "always"],
"sort-imports": 2,
"space-before-blocks": [2, "always"],
"space-before-function-paren": [2, {"anonymous": "never", "named": "never"}],
"space-in-parens": [2, "never"],
"space-infix-ops": 2,
"space-unary-ops": 2,
"spaced-comment": [2, "always"],
"strict": 0,
"template-curly-spacing": [2, "never"],
"valid-jsdoc": [0, {"requireReturn": false, "requireParamDescription": false, "requireReturnDescription": false}],
"yield-star-spacing": [2, "after"],
"yoda": [2, "never"]
}
}