-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.json
90 lines (90 loc) · 2.47 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
{
"env": {
"node": true
},
"extends": "eslint:recommended",
"rules": {
"indent": ["error",2],
"linebreak-style": ["error","unix"],
"semi": ["error","always"],
"comma-dangle": [2,"never"],
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-empty": 2,
"no-ex-assign": 2,
"no-extra-semi": 1,
"no-func-assign": 1,
// "no-inner-declarations": [2,"both"],
"no-invalid-regexp": 1,
"no-irregular-whitespace": 1,
"no-negated-in-lhs": 1,
"no-regex-spaces": 1,
"no-unreachable": 2,
// "valid-jsdoc": 1,
"valid-typeof": 1,
"no-unexpected-multiline": 1,
"block-scoped-var": 2,
"curly": [2,"all"],
"dot-notation": 1,
"eqeqeq": [1,"smart"],
// "guard-for-in": 1,
"no-else-return": 1,
"no-eval": 2,
"no-extra-bind": 1,
"no-fallthrough": 1,
"no-implied-eval": 1,
// "no-invalid-this": 1,
"no-labels": 1,
"no-lone-blocks": 1,
"no-loop-func": 1,
// "no-multi-spaces": 1,
"no-multi-str": 1,
"no-redeclare": [2,{"builtinGlobals":true}],
"no-return-assign": [2,"always"],
"no-script-url": 2,
"no-self-compare": 2,
"no-sequences": 1,
"no-unused-expressions": 1,
"no-with": 1,
// "vars-on-top": 1,
"wrap-iife": [1,"inside"],
// "strict": 1,
"no-shadow": [1,{"hoist":"all"}],
"no-undef-init": 1,
"no-undef": 1,
"no-undefined": 1,
"no-unused-vars": 1,
"no-use-before-define": 1,
"no-mixed-requires": 1,
"no-new-require": 1,
// "no-restricted-modules": 1,
"array-bracket-spacing": [1,"never"],
"camelcase": 1,
"comma-spacing": [1,{"after":true}],
"comma-style": 1,
"computed-property-spacing": [1,"never"],
"consistent-this": [2,"self"],
"eol-last": 1,
"new-parens": 1,
"no-mixed-spaces-and-tabs": 2,
"no-nested-ternary": 1,
"no-spaced-func": 1,
"no-trailing-spaces": [1,{"skipBlankLines":false}],
"no-unneeded-ternary": 1,
"object-curly-spacing": [1,"never"],
"quotes": [1,"single","avoid-escape"],
"keyword-spacing": [1, {"before": true, "after": true}],
"space-before-blocks": [1,"always"],
"space-before-function-paren": 1,
"space-in-parens": [1,"never"],
"space-unary-ops": [2,{"words":false,"nonwords":false}],
"arrow-parens": 1,
"arrow-spacing": [1,{"before":true,"after":true}],
"prefer-const": 2,
"prefer-spread": 1,
"require-yield": 2
}
}