@@ -18,12 +18,11 @@ module.exports = {
18
18
presets : [ require . resolve ( './index.js' ) ]
19
19
}
20
20
} ,
21
- plugins : [ '@babel' , 'import' ] ,
21
+ plugins : [ '@babel' , '@stylistic/js' , ' import'] ,
22
22
rules : {
23
23
'block-scoped-var' : 'warn' ,
24
24
'curly' : [ 'warn' , 'multi-line' ] ,
25
25
'eqeqeq' : [ 'warn' , 'smart' ] ,
26
- 'new-parens' : 'warn' ,
27
26
'no-alert' : 'warn' ,
28
27
'no-array-constructor' : 'warn' ,
29
28
'no-caller' : 'error' ,
@@ -40,7 +39,6 @@ module.exports = {
40
39
'no-extra-boolean-cast' : 'warn' ,
41
40
'no-extra-semi' : 'off' ,
42
41
'no-fallthrough' : 'warn' ,
43
- 'no-floating-decimal' : 'warn' ,
44
42
'no-func-assign' : 'warn' ,
45
43
'no-implied-eval' : 'warn' ,
46
44
'no-inner-declarations' : 'off' ,
@@ -76,7 +74,6 @@ module.exports = {
76
74
}
77
75
] ,
78
76
'no-throw-literal' : 'error' ,
79
- 'no-trailing-spaces' : 'warn' ,
80
77
'no-unexpected-multiline' : 'warn' ,
81
78
'no-unneeded-ternary' : 'warn' ,
82
79
'no-unreachable' : 'warn' ,
@@ -92,7 +89,12 @@ module.exports = {
92
89
'no-var' : 'warn' ,
93
90
'require-yield' : 'off' ,
94
91
'use-isnan' : 'warn' ,
95
- 'wrap-iife' : [ 'error' , 'inside' ] ,
92
+
93
+ // @stylistic /js plugin https://github.com/eslint-stylistic/eslint-stylistic
94
+ '@stylistic/js/new-parens' : 'warn' ,
95
+ '@stylistic/js/no-floating-decimal' : 'warn' ,
96
+ '@stylistic/js/no-trailing-spaces' : 'warn' ,
97
+ '@stylistic/js/wrap-iife' : [ 'error' , 'inside' ] ,
96
98
97
99
// babel plugin https://github.com/babel/babel/tree/main/eslint/babel-eslint-plugin
98
100
'@babel/new-cap' : [
0 commit comments