-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.json
55 lines (53 loc) · 1.39 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"globals": {
"describe": false,
"afterEach": false,
"test": false,
"expect": false,
"it": false
},
"rules": {
"no-mixed-spaces-and-tabs": "warn",
"no-multi-spaces": "error",
"indent": ["error", "tab", { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"no-template-curly-in-string": "warn",
"curly": "off",
"semi": ["error", "always"],
"no-extra-semi": "warn",
"no-undef": ["error", { "typeof": true }],
"no-unused-vars": "error",
"no-redeclare": "error",
"no-shadow": "error",
"no-shadow-restricted-names": "error",
"init-declarations": ["error", "always"],
"eqeqeq": ["error", "always"],
"no-empty": ["warn", { "allowEmptyCatch": true }],
"getter-return": ["error", { "allowImplicit": true }],
"no-fallthrough": ["error", { "commentPattern": "fallthrough" }],
"no-unreachable": "error",
"no-use-before-define": "warn",
"no-this-before-super": "error",
"constructor-super": "warn",
"no-const-assign": "error",
"valid-typeof": "warn",
"no-path-concat": "error",
"no-cond-assign": ["error", "always"],
"no-constant-condition": ["error", { "checkLoops": false }],
"no-unsafe-finally": "error",
"valid-jsdoc": "error"
}
}