-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
60 lines (58 loc) · 1.43 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
56
57
58
59
60
{
"root": true,
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script",
"ecmaFeatures": {
"impliedStrict": true,
"jsx": true
}
},
"env": {
"es6": true
},
"globals": {
"game": false
},
"rules": {
"indent": ["warn", 4],
"semi": "warn",
"no-extra-semi": "warn",
"new-parens": "error",
"comma-spacing": "warn",
"semi-spacing": "warn",
"no-bitwise": "error",
"no-multi-assign": "warn",
"no-trailing-spaces": "warn",
"one-var": ["warn", "never"],
"semi-style": ["warn", "last"],
"no-confusing-arrow": ["error", {"allowParens": true}],
"no-const-assign": "error",
"no-new-wrappers": "error",
"no-new-func": "error",
"no-labels": "error",
"no-implied-eval": "error",
"no-extra-label": "error",
"no-eval": "warn",
"no-void": "error",
"no-with": "error",
"for-direction": "warn",
"no-cond-assign": "warn",
"no-return-assign": "warn",
"no-dupe-args": "warn",
"no-unsafe-negation": "warn",
"object-shorthand": ["warn", "never"],
"no-var": "warn",
"no-restricted-syntax": [
"warn",
{
"selector": "FunctionDeclaration",
"message": "Please use `let f = function()` instead of `function f()`"
},
{
"selector": "SequenceExpression",
"message": "Sorry, `,` may only be used for functions and arrays, you might have meant a `;`?"
}
]
}
}