-
Notifications
You must be signed in to change notification settings - Fork 5
/
eslint.json
110 lines (110 loc) · 3.38 KB
/
eslint.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
{
"parserOptions" : {
"ecmaVersion" : 7,
"sourceType" : "module",
"ecmaFeatures" : {
"impliedStrict" : true,
"jsx" : true
}
},
"env" : {
"browser" : true,
"node" : true
},
"root" : true,
"rules" : {
"comma-dangle" : "error",
"no-cond-assign" : "error",
"no-constant-condition" : "error",
"no-dupe-keys" : "error",
"no-duplicate-case" : "error",
"no-empty" : "error",
"no-dupe-args" : "error",
"no-empty-character-class" : "error",
"no-ex-assign" : "error",
"no-extra-boolean-cast" : "warn",
"no-extra-semi" : "error",
"no-func-assign" : "error",
"no-invalid-regexp" : "error",
"no-sparse-arrays" : "error",
"no-unexpected-multiline" : "error",
"no-unreachable" : "error",
"use-isnan" : "error",
"accessor-pairs" : "error",
"array-callback-return" : "error",
"block-scoped-var" : "error",
"consistent-return" : "error",
"curly" : "error",
"dot-location" : ["error", "property"],
"dot-notation" : "warn",
"eqeqeq" : "error",
"no-case-declarations" : "error",
"no-empty-function" : "warn",
"no-empty-pattern" : "error",
"no-eval" : "error",
"no-extend-native" : "error",
"no-fallthrough" : "error",
"no-implied-eval" : "error",
"no-lone-blocks" : "error",
"no-loop-func" : "error",
"no-magic-numbers" : "warn",
"no-multi-spaces" : "error",
"no-native-reassign" : "error",
"no-new" : "error",
"no-new-func" : "error",
"no-param-reassign" : "error",
"no-redeclare" : "error",
"no-script-url" : "error",
"no-self-assign" : "error",
"no-self-compare" : "error",
"no-sequences" : "error",
"no-throw-literal" : "error",
"no-unmodified-loop-condition" : "error",
"no-unused-expressions" : ["error", { "allowTernary" : true}],
"no-useless-concat" : "error",
"no-useless-escape" : "error",
"no-void" : "error",
"no-warning-comments" : "warn",
"no-with" : "error",
"radix" : "error",
"vars-on-top" : "error",
"wrap-iife" : "error",
"yoda" : ["error", "never", {"exceptRange" : true}],
"no-delete-var" : "error",
"no-shadow" : "error",
"no-shadow-restricted-names" : "error",
"no-undef-init" : "error",
"global-require" : "error",
"handle-callback-err" : "warn",
"no-new-require" : "error",
"no-sync" : "error",
"block-spacing" : "error",
"camelcase" : "error",
"comma-spacing" : ["error", {"before" : false, "after" : true}],
"key-spacing" : ["error", {"afterColon" : true}],
"keyword-spacing" : "error",
"new-cap" : "error",
"new-parens" : "error",
"newline-per-chained-call" : "error",
"no-array-constructor" : "error",
"no-multiple-empty-lines": ["error", {"max": 2}],
"no-nested-ternary" : "warn",
"no-spaced-func" : "error",
"no-whitespace-before-property" : "error",
"object-curly-spacing": ["error", "always"],
"operator-assignment" : ["error", "always"],
"sort-imports" : "error",
"arrow-spacing" : "error",
"no-class-assign" : "error",
"no-dupe-class-members" : "error",
"no-duplicate-imports" : "error",
"no-this-before-super" : "error",
"no-useless-constructor" : "error",
"no-var" : "error",
"prefer-arrow-callback" : "error",
"prefer-const" : "error",
"prefer-rest-params" : "warn",
"prefer-spread" : "error",
"prefer-template" : "error"
}
}