-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
48 lines (48 loc) · 1.8 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
{
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 8,
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"node": true,
"mocha": true,
"jest": true,
"es6": true
},
"rules": {
"no-constant-condition": ["error", { "checkLoops": false }],
"array-callback-return": ["error", { "allowImplicit": true }],
"default-case": ["warn"],
"dot-notation": ["off"],
"no-else-return": ["error", { "allowElseIf": false}],
"no-fallthrough": ["warn"],
"no-multi-spaces": ["error", { "ignoreEOLComments": true, "exceptions": { "VariableDeclarator": true, "ImportDeclaration": true, "Property": true } }],
"no-param-reassign": ["warn"],
"no-proto": ["error"],
"no-with": ["error"],
"global-require": "error",
"no-buffer-constructor": ["error"],
"no-path-concat": ["error"],
"no-duplicate-imports": ["error"],
"eol-last": ["error", "always"],
"comma-spacing": ["error", { "before": false, "after": true }],
"comma-dangle": ["error", "always-multiline"],
"arrow-body-style": ["warn", "as-needed"],
"no-plusplus": ["off"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"no-unused-vars": ["error", { "args": "none" }],
"no-restricted-syntax": ["error", "DebuggerStatement", "LabeledStatement", "WithStatement"],
"block-spacing": ["error"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"no-trailing-spaces": "error",
"quotes": ["error", "single"],
"no-var": ["error"],
"prefer-const": "error",
"prefer-destructuring": ["warn", { "object": true }],
"prefer-rest-params": ["error"]
}
}