/
.eslintrc.json
32 lines (32 loc) · 981 Bytes
/
.eslintrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"jest/globals": true
},
"extends": "airbnb-base",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"no-cond-assign": ["off", "except-parens"],
"no-restricted-syntax": ["off", "BinaryExpression[operator='in']"],
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"func-names": ["error", "as-needed"],
"import/no-extraneous-dependencies": "off",
"no-console": "off",
"no-continue": "warn",
"max-len": ["error", { "ignoreComments": true }],
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
},
"plugins": ["jest"]
}