-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc
executable file
·52 lines (52 loc) · 1.52 KB
/
.eslintrc
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
"root": true,
"env": {
"browser": true,
"es6": true,
"jest/globals": true
},
"parserOptions": {
"sourceType": "module",
"modules": true,
"ecmaFeatures": {
"modules": true
}
},
"plugins": [
"jest"
],
"extends": "airbnb-base",
"rules": {
"arrow-body-style": "off",
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", "never"],
"default-case": "off",
"indent": ["error", 4, {"SwitchCase": 1}],
"max-len": ["error", 120, {"ignoreComments": true, "ignoreTemplateLiterals": true}],
"no-console": 0,
"no-trailing-spaces": ["error"],
"linebreak-style": ["error", "unix"],
"object-curly-spacing": ["error", "never"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"import/prefer-default-export": "off",
"func-names": "off",
"no-restricted-syntax": "off",
"no-await-in-loop": "off",
"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"
},
"globals": {"module": true}
}