-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
111 lines (111 loc) · 2.48 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"env": {
"browser": true,
"node": false,
"es6": false
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "module"
},
"rules": {
"no-console": 0,
"linebreak-style": ["error", "unix"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"no-unused-vars": 0,
"block-scoped-var": ["error"],
"consistent-return": ["error"],
"eqeqeq": ["error"],
"no-eval": ["error"],
"no-implicit-globals": ["error"],
"no-implied-eval": ["error"],
"no-multi-spaces": [
"error",
{
"exceptions": {
"Property": true,
"VariableDeclarator": true,
"AssignmentExpression": true
}
}
],
"no-new-wrappers": ["error"],
"no-return-assign": ["error"],
"no-self-compare": ["error"],
"no-unmodified-loop-condition": ["error"],
"no-unused-expressions": ["error"],
"no-useless-call": ["error"],
"no-useless-concat": ["error"],
"no-useless-escape": ["error"],
"no-useless-return": ["error"],
"no-with": ["error"],
"radix": ["error"],
"yoda": ["error"],
"no-undef-init": ["error"],
"array-bracket-spacing": ["error", "never"],
"block-spacing": ["error"],
"comma-spacing": ["error"],
"comma-style": ["error"],
"computed-property-spacing": ["error"],
"consistent-this": ["error", "self"],
"eol-last": ["error"],
"func-call-spacing": ["error"],
"func-name-matching": ["error"],
"key-spacing": [
"error",
{
"mode": "minimum"
}
],
"keyword-spacing": ["error"],
"max-statements-per-line": [
"error",
{
"max": 1
}
],
"new-cap": ["error"],
"new-parens": ["error"],
"no-array-constructor": ["error"],
"no-mixed-operators": [
"error",
{
"groups": [
["&", "|", "^", "~", "<<", ">>", ">>>"],
["==", "!=", "===", "!==", ">", ">=", "<", "<="],
["&&", "||"],
["in", "instanceof"]
]
}
],
"no-new-object": ["error"],
"no-unneeded-ternary": ["error"],
"no-whitespace-before-property": ["error"],
"operator-assignment": ["error"],
"operator-linebreak": ["error", "after"],
"quote-props": ["error", "as-needed"],
"semi-spacing": ["error"],
"space-before-blocks": ["error"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"space-infix-ops": ["error"],
"space-unary-ops": [
"error",
{
"words": false,
"nonwords": false
}
],
"unicode-bom": ["error"],
"no-caller": ["error"],
"no-loop-func": ["error"]
},
"globals": {
"_": false
}
}