-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
58 lines (58 loc) · 1.68 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
53
54
55
56
57
58
{
"extends": "react-app",
"env": {
"browser": true,
"node": true,
"es6": true
},
"globals": {
"angular": false,
"THREE": false
},
"rules": {
"no-undef": "error",
"no-unused-vars": "error",
"no-redeclare": "error",
"no-use-before-define": "error",
"no-dupe-args": "error",
"no-dupe-keys": "error",
"no-unreachable": "error",
"block-scoped-var": "error",
"class-methods-use-this": "warn",
"no-param-reassign": "error",
"vars-on-top": "error",
"no-shadow-restricted-names": "error",
"indent": ["warn", 2, { "SwitchCase": 1 }],
"operator-assignment": ["error", "always"],
"space-before-blocks": "warn",
"space-before-function-paren": ["warn", "never"],
"space-in-parens": ["warn", "never"],
"arrow-spacing": "warn",
"constructor-super": "error",
"no-this-before-super": "error",
"no-useless-constructor": "error",
"no-class-assign": "error",
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-var": "error",
"object-shorthand": "error",
"no-unexpected-multiline": "error",
"semi": ["warn", "never"],
"quotes": ["warn", "single"],
"prefer-const": "warn",
"space-infix-ops": "warn",
"comma-spacing": ["warn", { "before": false, "after": true }],
"spaced-comment": ["warn", "always"],
"new-cap": "warn"
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true,
"jsx": true
}
}
}