|
1 | 1 | {
|
2 |
| - "parser": "babel-eslint", |
| 2 | + "extends": [ |
| 3 | + "standard" |
| 4 | + ], |
3 | 5 | "env": {
|
4 |
| - "browser": true, |
5 | 6 | "node": true
|
6 | 7 | },
|
7 |
| - "ecmaFeatures": { |
8 |
| - "arrowFunctions": true, |
9 |
| - "blockBindings": true, |
10 |
| - "classes": true, |
11 |
| - "defaultParams": true, |
12 |
| - "destructuring": true, |
13 |
| - "forOf": true, |
14 |
| - "generators": false, |
15 |
| - "modules": true, |
16 |
| - "objectLiteralComputedProperties": true, |
17 |
| - "objectLiteralDuplicateProperties": false, |
18 |
| - "objectLiteralShorthandMethods": true, |
19 |
| - "objectLiteralShorthandProperties": true, |
20 |
| - "spread": true, |
21 |
| - "superInFunctions": true, |
22 |
| - "templateStrings": true, |
23 |
| - "jsx": true |
24 |
| - }, |
| 8 | + "parser": "babel-eslint", |
25 | 9 | "rules": {
|
26 |
| - "strict": [ |
27 |
| - 2, |
28 |
| - "never" |
29 |
| - ], |
30 |
| - "no-var": 2, |
31 |
| - "no-shadow": 2, |
32 |
| - "no-shadow-restricted-names": 2, |
33 |
| - "no-unused-vars": [ |
34 |
| - 2, |
35 |
| - { |
36 |
| - "vars": "local", |
37 |
| - "args": "after-used" |
38 |
| - } |
39 |
| - ], |
40 |
| - "no-use-before-define": 2, |
41 |
| - "comma-dangle": [ |
42 |
| - 2, |
| 10 | + "semi": [ |
| 11 | + 1, |
43 | 12 | "never"
|
44 | 13 | ],
|
45 |
| - "no-cond-assign": [ |
46 |
| - 2, |
47 |
| - "always" |
48 |
| - ], |
49 |
| - "no-console": 1, |
50 |
| - "no-debugger": 1, |
51 |
| - "no-alert": 1, |
52 |
| - "no-constant-condition": 1, |
53 |
| - "no-dupe-keys": 2, |
54 |
| - "no-duplicate-case": 2, |
55 |
| - "no-empty": 2, |
56 |
| - "no-ex-assign": 2, |
57 |
| - "no-extra-boolean-cast": 0, |
58 |
| - "no-extra-semi": 2, |
59 |
| - "no-func-assign": 2, |
60 |
| - "no-inner-declarations": 2, |
61 |
| - "no-invalid-regexp": 2, |
62 |
| - "no-irregular-whitespace": 2, |
63 |
| - "no-obj-calls": 2, |
64 |
| - "no-reserved-keys": 2, |
65 |
| - "no-sparse-arrays": 2, |
66 |
| - "no-unreachable": 2, |
67 |
| - "use-isnan": 2, |
68 |
| - "block-scoped-var": 2, |
69 |
| - "consistent-return": 2, |
70 |
| - "curly": [ |
71 |
| - 2, |
72 |
| - "multi-line" |
73 |
| - ], |
74 |
| - "default-case": 2, |
75 |
| - "dot-notation": [ |
76 |
| - 2, |
77 |
| - { |
78 |
| - "allowKeywords": true |
79 |
| - } |
80 |
| - ], |
81 |
| - "eqeqeq": 2, |
82 |
| - "guard-for-in": 2, |
83 |
| - "no-caller": 2, |
84 |
| - "no-else-return": 2, |
85 |
| - "no-eq-null": 2, |
86 |
| - "no-eval": 2, |
87 |
| - "no-extend-native": 2, |
88 |
| - "no-extra-bind": 2, |
89 |
| - "no-fallthrough": 2, |
90 |
| - "no-floating-decimal": 2, |
91 |
| - "no-implied-eval": 2, |
92 |
| - "no-lone-blocks": 2, |
93 |
| - "no-loop-func": 2, |
94 |
| - "no-multi-str": 2, |
95 |
| - "no-native-reassign": 2, |
96 |
| - "no-new": 2, |
97 |
| - "no-new-func": 2, |
98 |
| - "no-new-wrappers": 2, |
99 |
| - "no-octal": 2, |
100 |
| - "no-octal-escape": 2, |
101 |
| - "no-param-reassign": 2, |
102 |
| - "no-proto": 2, |
103 |
| - "no-redeclare": 2, |
104 |
| - "no-return-assign": 2, |
105 |
| - "no-script-url": 2, |
106 |
| - "no-self-compare": 2, |
107 |
| - "no-sequences": 2, |
108 |
| - "no-throw-literal": 2, |
109 |
| - "no-with": 2, |
110 |
| - "radix": 2, |
111 |
| - "vars-on-top": 2, |
112 |
| - "wrap-iife": [ |
113 |
| - 2, |
114 |
| - "any" |
115 |
| - ], |
116 |
| - "yoda": 2, |
117 |
| - "indent": [ |
118 |
| - 2, |
119 |
| - 2 |
120 |
| - ], |
121 |
| - "brace-style": [ |
122 |
| - 2, |
123 |
| - "1tbs", |
124 |
| - { |
125 |
| - "allowSingleLine": true |
126 |
| - } |
127 |
| - ], |
128 | 14 | "quotes": [
|
129 | 15 | 1,
|
130 | 16 | "single",
|
131 | 17 | "avoid-escape"
|
132 |
| - ], |
133 |
| - "camelcase": [ |
134 |
| - 2, |
135 |
| - { |
136 |
| - "properties": "never" |
137 |
| - } |
138 |
| - ], |
139 |
| - "comma-spacing": [ |
140 |
| - 2, |
141 |
| - { |
142 |
| - "before": false, |
143 |
| - "after": true |
144 |
| - } |
145 |
| - ], |
146 |
| - "comma-style": [ |
147 |
| - 2, |
148 |
| - "last" |
149 |
| - ], |
150 |
| - "eol-last": 2, |
151 |
| - "func-names": 1, |
152 |
| - "key-spacing": [ |
153 |
| - 2, |
154 |
| - { |
155 |
| - "beforeColon": false, |
156 |
| - "afterColon": true |
157 |
| - } |
158 |
| - ], |
159 |
| - "new-cap": [ |
160 |
| - 2, |
161 |
| - { |
162 |
| - "newIsCap": true |
163 |
| - } |
164 |
| - ], |
165 |
| - "no-multiple-empty-lines": [ |
166 |
| - 2, |
167 |
| - { |
168 |
| - "max": 2 |
169 |
| - } |
170 |
| - ], |
171 |
| - "no-nested-ternary": 2, |
172 |
| - "no-new-object": 2, |
173 |
| - "no-spaced-func": 2, |
174 |
| - "no-trailing-spaces": 2, |
175 |
| - "no-wrap-func": 2, |
176 |
| - "no-underscore-dangle": 0, |
177 |
| - "one-var": [ |
178 |
| - 2, |
179 |
| - "never" |
180 |
| - ], |
181 |
| - "padded-blocks": [ |
182 |
| - 2, |
183 |
| - "never" |
184 |
| - ], |
185 |
| - "semi": [ |
186 |
| - 1, |
187 |
| - "never" |
188 |
| - ], |
189 |
| - "semi-spacing": [ |
190 |
| - 2, |
191 |
| - { |
192 |
| - "before": false, |
193 |
| - "after": true |
194 |
| - } |
195 |
| - ], |
196 |
| - "space-after-keywords": 2, |
197 |
| - "space-before-blocks": 2, |
198 |
| - "space-before-function-paren": [ |
199 |
| - 2, |
200 |
| - "never" |
201 |
| - ], |
202 |
| - "space-infix-ops": 2, |
203 |
| - "space-return-throw-case": 2, |
204 |
| - "spaced-line-comment": 2 |
| 18 | + ] |
205 | 19 | }
|
206 | 20 | }
|
0 commit comments