1
- // eslint.config.js
2
1
import jsdoc from "eslint-plugin-jsdoc" ;
2
+ import stylistic from "@stylistic/eslint-plugin"
3
3
4
4
export default [
5
5
{
@@ -20,25 +20,18 @@ export default [
20
20
} ,
21
21
files : [ "src/**/*.js" ] ,
22
22
plugins : {
23
- jsdoc
23
+ jsdoc,
24
+ '@stylistic' : stylistic
24
25
} ,
25
26
rules : {
26
27
// http://eslint.org/docs/rules/
27
28
"accessor-pairs" : "error" ,
28
29
"array-callback-return" : "error" ,
29
30
"arrow-body-style" : [ "error" , "as-needed" ] ,
30
- "arrow-spacing" : [ "error" , { "before" : true , "after" : true } ] ,
31
- "block-spacing" : [ "error" , "always" ] ,
32
31
"block-scoped-var" : "error" ,
33
- "brace-style" : [ "off" , "1tbs" , { "allowSingleLine" : true } ] ,
34
32
"camelcase" : [ "off" , { "properties" : "never" } ] ,
35
- "comma-dangle" : [ "error" , "never" ] ,
36
- "comma-spacing" : [ "error" , { "before" : false , "after" : true } ] ,
37
- "comma-style" : [ "error" , "last" ] ,
38
33
"constructor-super" : "error" ,
39
34
"curly" : [ "error" , "multi-line" ] ,
40
- "dot-location" : [ "error" , "property" ] ,
41
- "eol-last" : "error" ,
42
35
"eqeqeq" : [ "error" , "allow-null" ] ,
43
36
"func-call-spacing" : [ "error" , "never" ] ,
44
37
"for-direction" : "error" ,
@@ -114,7 +107,6 @@ export default [
114
107
"prefer-arrow-callback" : "error" ,
115
108
"quotes" : [ "error" , "double" , { "avoidEscape" : true , "allowTemplateLiterals" : true } ] ,
116
109
"rest-spread-spacing" : [ "error" , "never" ] ,
117
- "semi" : [ "error" , "always" ] ,
118
110
"semi-spacing" : [ "error" , { "before" : false , "after" : true } ] ,
119
111
"space-before-blocks" : [ "error" , "always" ] ,
120
112
"space-before-function-paren" : [ "off" , "always" ] ,
@@ -128,7 +120,19 @@ export default [
128
120
"yield-star-spacing" : [ "error" , "both" ] ,
129
121
"yoda" : [ "error" , "never" ] ,
130
122
"jsdoc/require-hyphen-before-param-description" : "error" ,
131
- "jsdoc/no-undefined-types" : "off"
123
+ "jsdoc/no-undefined-types" : "off" ,
124
+
125
+ // https://eslint.style/rules
126
+ "@stylistic/arrow-spacing" : [ "error" , { "before" : true , "after" : true } ] ,
127
+ "@stylistic/block-spacing" : [ "error" , "always" ] ,
128
+ "@stylistic/brace-style" : [ "off" , "1tbs" , { "allowSingleLine" : true } ] ,
129
+ "@stylistic/comma-dangle" : [ "error" , "never" ] ,
130
+ "@stylistic/comma-spacing" : [ "error" , { "before" : false , "after" : true } ] ,
131
+ "@stylistic/comma-style" : [ "error" , "last" ] ,
132
+ "@stylistic/semi" : [ "error" , "always" ] ,
133
+ "@stylistic/dot-location" : [ "error" , "property" ] ,
134
+ "@stylistic/eol-last" : [ "error" ] ,
135
+ "@stylistic/linebreak-style" : [ "error" , "unix" ]
132
136
}
133
137
}
134
- ] ;
138
+ ] ;
0 commit comments