-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
52 lines (52 loc) · 1.51 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
{
"env": {
"browser": true,
"node": true,
},
"globals": {
"Promise": false
},
"rules": {
"semi": ["warn", "never"],
"quotes": ["error", "single"],
"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],
"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-confusing-arrow": ["error", {"allowParens": true}],
"no-const-assign": "error",
"no-dupe-class-members": "error",
"no-duplicate-imports": "error",
"no-var": "error",
"object-shorthand": "error",
"prefer-const": "warn",
"no-invalid-this": "error",
"space-infix-ops": "warn",
"comma-spacing": ["warn", { "before": false, "after": true }]
},
"parserOptions": {
"ecmaVersion": 8,
"sourceType": "module",
"ecmaFeatures": {
"impliedStrict": true
}
}
}