-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
53 lines (48 loc) · 1.35 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
{
"parser": "babel-eslint",
"env": {
"node": true
},
rules: {
// general
"strict": [2, "global"],
"one-var": [2, "never"],
"max-len": [1, 150, 4, {"ignoreComments": true, "ignoreUrls": true}],
// code errors
"vars-on-top": 0,
"consistent-return": 0,
"no-with": 2,
"no-undef": 2,
"no-new-object": 2,
"no-array-constructor": 2,
"no-shadow-restricted-names": 1,
"no-redeclare": 2,
"eqeqeq": 2,
"no-octal": 2,
"eol-last": 2,
"no-dupe-args": 2,
"no-unexpected-multiline": 2,
"valid-typeof": 2,
"valid-jsdoc": 2,
"no-sparse-arrays": 2,
"block-scoped-var": 2,
"new-parens": 2,
"no-eval": 2,
"no-unneeded-ternary": 2,
"no-new-wrappers": 2,
"no-fallthrough": 2,
"no-lone-blocks": 2,
"no-cond-assign": 2,
// code warnings
"no-nested-ternary": 1,
"consistent-this": [1, "that"],
"radix": 1,
"camelcase": 1,
"new-cap": 1,
"dot-location": [1, "property"],
"no-unused-vars": 1 // could be reasons such as "catch" and placeholders
},
"ecmaFeatures": {
"modules": true
}
}