@@ -20,35 +20,31 @@ module.exports = {
20
20
21
21
// require parentheses around arrow function arguments
22
22
// http://eslint.org/docs/rules/arrow-parens
23
- 'arrow-parens' : [ 'error' , 'as-needed' ] ,
23
+ // This is handled by Prettier in Defaults 2.0
24
+ 'arrow-parens' : 'off' ,
24
25
25
26
// enforce consistent spacing before and after the arrow in arrow functions
26
27
// http://eslint.org/docs/rules/arrow-spacing
27
- 'arrow-spacing' : [ 'error' , {
28
- before : true ,
29
- after : true ,
30
- } ] ,
28
+ // This is handled by Prettier in Defaults 2.0
29
+ 'arrow-spacing' : 'off' ,
31
30
32
31
// require super() calls in constructors
33
32
// http://eslint.org/docs/rules/constructor-super
34
33
'constructor-super' : 'error' ,
35
34
36
35
// enforce consistent spacing around * operators in generator functions
37
36
// http://eslint.org/docs/rules/generator-star-spacing
38
- 'generator-star-spacing' : [ 'error' , {
39
- before : false ,
40
- after : true ,
41
- } ] ,
37
+ // This is handled by Prettier in Defaults 2.0
38
+ 'generator-star-spacing' : 'off' ,
42
39
43
40
// disallow reassigning class members
44
41
// http://eslint.org/docs/rules/no-class-assign
45
42
'no-class-assign' : 'error' ,
46
43
47
44
// disallow arrow functions where they could be confused with comparisons
48
45
// http://eslint.org/docs/rules/no-confusing-arrow
49
- 'no-confusing-arrow' : [ 'error' , {
50
- allowParens : true ,
51
- } ] ,
46
+ // This is handled by Prettier in Defaults 2.0
47
+ 'no-confusing-arrow' : 'off' ,
52
48
53
49
// disallow reassigning const variables
54
50
// http://eslint.org/docs/rules/no-const-assign
@@ -146,7 +142,8 @@ module.exports = {
146
142
147
143
// enforce spacing between rest and spread operators and their expressions
148
144
// http://eslint.org/docs/rules/rest-spread-spacing
149
- 'rest-spread-spacing' : [ 'error' , 'never' ] ,
145
+ // This is handled by Prettier in Defaults 2.0
146
+ 'rest-spread-spacing' : 'off' ,
150
147
151
148
// enforce sorted import declarations within modules
152
149
// http://eslint.org/docs/rules/sort-imports
@@ -162,10 +159,12 @@ module.exports = {
162
159
163
160
// require or disallow spacing around embedded expressions of template strings
164
161
// http://eslint.org/docs/rules/template-curly-spacing
165
- 'template-curly-spacing' : 'error' ,
162
+ // This is handled by Prettier in Defaults 2.0
163
+ 'template-curly-spacing' : 'off' ,
166
164
167
165
// require or disallow spacing around the * in yield* expressions
168
166
// http://eslint.org/docs/rules/yield-star-spacing
169
- 'yield-star-spacing' : [ 'error' , 'after' ] ,
167
+ // This is handled by Prettier in Defaults 2.0
168
+ 'yield-star-spacing' : 'off' ,
170
169
} ,
171
170
} ;
0 commit comments