-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.eslintrc.json
More file actions
140 lines (140 loc) · 4.32 KB
/
.eslintrc.json
File metadata and controls
140 lines (140 loc) · 4.32 KB
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script",
"ecmaFeatures": {
// "impliedStrict": true
}
},
"env": {
"es6": true,
"node": true
},
"globals": {
"JSON": false
},
"rules": {
"semi": "error",
"semi-spacing": "error",
"no-extra-semi": "error",
"indent": ["error", 2],
"brace-style": ["error", "1tbs"],
"curly": ["error", "multi-line"],
"camelcase": "error",
"eqeqeq": "error",
"dot-notation": "error",
"dot-location": ["error", "property"],
"consistent-return": "error",
"strict": ["error", "global"],
"comma-style": ["error", "last"],
"comma-spacing": ["error",
{"before": false, "after": true}],
"comma-dangle": "error",
"max-len": ["error", {"code": 100,
"ignoreComments": true}],
"max-depth": ["error", 4],
"max-statements": ["error", 20],
"max-statements-per-line":
["error", { "max": 1 }],
"max-nested-callbacks": ["error", 3],
"no-console": "error",
"quotes": ["error", "single"],
"key-spacing": ["error",
{"beforeColon": false, "mode": "minimum"}],
"keyword-spacing": "error",
"no-multi-spaces": "error",
"no-spaced-func": "error",
"no-trailing-spaces": "error",
"no-irregular-whitespace": "error",
"no-mixed-spaces-and-tabs": "error",
"no-whitespace-before-property": "error",
"template-curly-spacing": "error",
"spaced-comment": "error",
"space-unary-ops": "error",
"space-infix-ops": "error",
"space-before-blocks": "error",
"block-spacing": "error",
"padded-blocks": ["error", "never"],
"no-lone-blocks": "error",
"no-dupe-args": "error",
"space-before-function-paren": ["error",
{"anonymous": "always", "named": "never"}],
"array-bracket-spacing": ["error", "never"],
"computed-property-spacing": ["error", "never"],
"no-restricted-syntax": ["error", "WithStatement"],
"no-with": "error",
"func-names": "error",
"func-style": ["error", "declaration",
{"allowArrowFunctions": true}],
"no-multiple-empty-lines": "error",
"require-yield": "error",
"yield-star-spacing": ["error", "both"],
"generator-star-spacing": ["error", "both"],
"operator-assignment": "error",
"one-var-declaration-per-line": ["error", "always"],
"no-magic-numbers": ["error",{ "ignore": [0, 1],
"ignoreArrayIndexes": true, "enforceConst": true }],
"no-unneeded-ternary": "error",
"no-unused-vars": ["error", {"args": "none"}],
"no-use-before-define": ["error",
{"functions": false, "classes": false}],
"no-unmodified-loop-condition": "error",
"no-constant-condition": "error",
"no-unused-expressions": "error",
"no-inner-declarations": "error",
"no-case-declarations": "error",
"no-duplicate-case": "error",
"default-case": "error",
"no-implicit-globals": "error",
"no-useless-concat": "error",
"no-unsafe-finally": "error",
"no-ex-assign": "error",
"no-cond-assign": "error",
"no-func-assign": "error",
"no-return-assign": "error",
"no-param-reassign": "error",
"no-negated-in-lhs": "error",
"no-unreachable": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-self-assign": "error",
"no-redeclare": "error",
"no-new-func": "error",
"no-loop-func": "error",
"no-else-return": "error",
"no-implied-eval": "error",
"no-eval": "error",
"no-eq-null": "error",
"no-proto": "error",
"vars-on-top": "error",
"no-var": "error",
"no-continue": "error",
"no-throw-literal": "error",
"no-lonely-if": "error",
"no-fallthrough": "error",
"no-sparse-arrays": "error",
"no-array-constructor": "error",
"no-empty": "error",
"no-empty-pattern": "error",
"no-floating-decimal": "error",
"prefer-template": "error",
"prefer-rest-params": "error",
"prefer-arrow-callback": "error",
"object-shorthand": ["error", "always"],
"no-dupe-keys": "error",
"no-obj-calls": "error",
"arrow-spacing": "error",
"callback-return": "error",
"wrap-iife": ["error", "inside"],
"wrap-regex": "error",
"no-invalid-regexp": "error",
"global-require": "error",
"require-jsdoc": "error",
"valid-jsdoc": "off",
"new-cap": "error",
"radix": "error",
"yoda": "error",
"eol-last": "error"
},
"root": true
}