92 строки
2.7 KiB
Plaintext
92 строки
2.7 KiB
Plaintext
{
|
|
"parser": "babel-eslint",
|
|
"plugins": ["jest"],
|
|
"extends": [
|
|
"eslint:recommended",
|
|
],
|
|
"env": {
|
|
"node": true,
|
|
"browser": true,
|
|
"es6": true,
|
|
"mocha": true,
|
|
"jest": true,
|
|
},
|
|
"ecmaFeatures": {
|
|
"arrowFunctions": true,
|
|
"blockBindings": true,
|
|
"classes": true,
|
|
"destructuring": true,
|
|
"defaultParams": true,
|
|
"jsx": true,
|
|
"restParams": true,
|
|
"spread": true,
|
|
},
|
|
"globals": {
|
|
"assert": false,
|
|
"sinon": false,
|
|
},
|
|
"rules": {
|
|
"block-scoped-var": "off",
|
|
"camelcase": "off",
|
|
"comma-dangle": ["error", "always-multiline"],
|
|
"comma-spacing": ["error", {"before": false, "after": true}],
|
|
"comma-style": ["error", "last"],
|
|
"curly": ["error", "all"],
|
|
"dot-notation": ["error", {"allowKeywords": true}],
|
|
"eqeqeq": ["error", "allow-null"],
|
|
"guard-for-in": "off",
|
|
"indent": ["error", 2, {"SwitchCase": 1}],
|
|
"keyword-spacing": "error",
|
|
"max-len": ["error", {"code": 80, "tabWidth": 2, "ignoreUrls": true, "ignoreComments": true}],
|
|
"new-cap": ["error", {"capIsNewExceptions": ["Deferred"]}],
|
|
"new-parens": "error",
|
|
"no-bitwise": "error",
|
|
"no-caller": "error",
|
|
"no-cond-assign": ["error", "except-parens"],
|
|
"no-debugger": "error",
|
|
"no-empty": "error",
|
|
"no-eval": "error",
|
|
"no-extend-native": "error",
|
|
"no-extra-parens": "off",
|
|
"no-extra-semi": "error",
|
|
"no-implicit-coercion": "error",
|
|
"no-irregular-whitespace": "error",
|
|
"no-iterator": "error",
|
|
"no-loop-func": "off",
|
|
"no-multi-spaces": "error",
|
|
"no-multi-str": "error",
|
|
"no-new": "error",
|
|
"no-plusplus": "off",
|
|
"no-proto": "error",
|
|
"no-redeclare": "off",
|
|
"no-script-url": "error",
|
|
"no-sequences": "error",
|
|
"no-trailing-spaces": ["error"],
|
|
"no-undef": "error",
|
|
"no-underscore-dangle": "off",
|
|
"no-unused-vars": "error",
|
|
"no-with": "error",
|
|
"one-var-declaration-per-line": ["error", "always"],
|
|
"prefer-template": "error",
|
|
"quote-props": ["warn", "consistent-as-needed"],
|
|
"quotes": ["error", "single", "avoid-escape"],
|
|
"semi": ["error", "always"],
|
|
"semi-spacing": ["error", {"before": false, "after": true}],
|
|
"space-before-blocks": ["error", {"functions": "always", "keywords": "always", "classes": "always"}],
|
|
"space-before-function-paren": ["error", "never"],
|
|
"space-infix-ops": "off",
|
|
"spaced-comment": ["error", "always"],
|
|
"strict": ["error", "never"],
|
|
"valid-typeof": "error",
|
|
"wrap-iife": ["error", "inside"],
|
|
|
|
"jest/no-disabled-tests": "warn",
|
|
"jest/no-focused-tests": "error",
|
|
"jest/no-identical-title": "error",
|
|
"jest/valid-expect": "error",
|
|
},
|
|
"parserOptions": {
|
|
"sourceType": "module"
|
|
}
|
|
}
|