1
+ /* eslint-disable jsdoc/valid-types */
2
+ /* eslint-disable n/no-unpublished-import */
3
+ /* eslint-disable import/no-unresolved */
1
4
// @ts -nocheck
2
5
/**
3
6
* https://www.npmjs.com/search?q=eslint-config
@@ -38,29 +41,30 @@ const jsdocRules = {
38
41
} ] ,
39
42
'jsdoc/no-multi-asterisk' : 'off' ,
40
43
'jsdoc/no-undefined-types' : [ 'error' , {
41
- ' definedTypes' : [ 'NodeListOf' , 'ProxyHandler' ] ,
44
+ definedTypes : [ 'JQuery' , 'NodeListOf' , 'ProxyHandler' ] ,
42
45
} ] ,
43
46
'jsdoc/tag-lines' : 'off' ,
44
47
}
45
48
const stylisticRules = {
46
- '@stylistic/js/ brace-style' : [ " error" , " 1tbs" , { " allowSingleLine" : true } ] ,
49
+ '@stylistic/brace-style' : [ ' error' , ' 1tbs' , { allowSingleLine : true , } ] ,
47
50
'@stylistic/comma-dangle' : [ 'error' , {
48
- ' arrays' : 'only-multiline' ,
49
- ' objects' : 'always' ,
50
- ' imports' : 'never' ,
51
- ' exports' : 'always-multiline' ,
52
- ' functions' : 'never' ,
53
- ' importAttributes' : 'never' ,
54
- ' dynamicImports' : 'never' ,
51
+ arrays : 'only-multiline' ,
52
+ objects : 'always' ,
53
+ imports : 'never' ,
54
+ exports : 'always-multiline' ,
55
+ functions : 'never' ,
56
+ importAttributes : 'never' ,
57
+ dynamicImports : 'never' ,
55
58
} ] ,
56
59
'@stylistic/eol-last' : [ 'error' , 'always' ] ,
57
60
'@stylistic/indent' : [ 'error' , 4 , {
58
- ' SwitchCase' : 1 ,
61
+ SwitchCase : 1 ,
59
62
} ] ,
63
+ '@stylistic/indent-binary-ops' : [ 'error' , 4 ] ,
60
64
'@stylistic/linebreak-style' : [ 'error' , 'unix' ] ,
61
65
'@stylistic/lines-between-class-members' : 'off' ,
62
66
'@stylistic/newline-per-chained-call' : [ 'error' , {
63
- ' ignoreChainWithDepth' : 2 ,
67
+ ignoreChainWithDepth : 2 ,
64
68
} ] ,
65
69
'@stylistic/no-confusing-arrow' : 'error' ,
66
70
'@stylistic/no-extra-semi' : 'error' ,
@@ -69,17 +73,17 @@ const stylisticRules = {
69
73
'@stylistic/semi' : [ 'error' , 'never' ] ,
70
74
'@stylistic/space-before-function-paren' : 'off' ,
71
75
'@stylistic/spaced-comment' : [ 'error' , 'always' , {
72
- ' line' : {
73
- ' exceptions' : [ '*' , '#region' , '#endregion' , ] ,
76
+ line : {
77
+ exceptions : [ '*' , '#region' , '#endregion' ] ,
74
78
} ,
75
- ' block' : {
76
- ' exceptions' : [ '*' , ] ,
79
+ block : {
80
+ exceptions : [ '*' ] ,
77
81
} ,
78
82
} ] ,
79
83
'@stylistic/space-in-parens' : 'off' ,
80
84
'@stylistic/quotes' : [ 'error' , 'single' , {
81
- ' avoidEscape' : true ,
82
- ' allowTemplateLiterals' : 'always' ,
85
+ avoidEscape : true ,
86
+ allowTemplateLiterals : 'always' ,
83
87
} ] ,
84
88
}
85
89
const generalRules = {
@@ -110,14 +114,14 @@ export default defineConfig([
110
114
jQuery : 'readonly' ,
111
115
RED : 'readonly' ,
112
116
uibuilder : 'writable' ,
113
- '$' : 'readonly' ,
114
- '$$' : 'readonly' ,
117
+ $ : 'readonly' ,
118
+ $$ : 'readonly' ,
115
119
// console: 'readonly',
116
120
} ,
117
121
} ,
118
122
linterOptions : {
119
- reportUnusedInlineConfigs : " error" ,
120
- } ,
123
+ reportUnusedInlineConfigs : ' error' ,
124
+ } ,
121
125
plugins : {
122
126
'js' : js ,
123
127
'pluginPromise' : pluginPromise ,
@@ -155,14 +159,14 @@ export default defineConfig([
155
159
jQuery : 'readonly' ,
156
160
RED : 'readonly' ,
157
161
uibuilder : 'writable' ,
158
- '$' : 'readonly' ,
159
- '$$' : 'readonly' ,
162
+ $ : 'readonly' ,
163
+ $$ : 'readonly' ,
160
164
// console: 'readonly',
161
165
} ,
162
166
} ,
163
167
linterOptions : {
164
- reportUnusedInlineConfigs : " error" ,
165
- } ,
168
+ reportUnusedInlineConfigs : ' error' ,
169
+ } ,
166
170
plugins : {
167
171
'js' : js ,
168
172
'pluginPromise' : pluginPromise ,
@@ -192,7 +196,7 @@ export default defineConfig([
192
196
// Node.js (v18) CommonJS, no-build
193
197
{
194
198
// files: nodeCJS,
195
- files : [ '**/*.{js,cjs}' , ] ,
199
+ files : [ '**/*.{js,cjs}' ] ,
196
200
ignores : [ 'resources/*.{js,cjs}' ] ,
197
201
languageOptions : {
198
202
sourceType : 'commonjs' ,
@@ -202,8 +206,8 @@ export default defineConfig([
202
206
// globals: globals.browser,
203
207
} ,
204
208
linterOptions : {
205
- reportUnusedInlineConfigs : " error" ,
206
- } ,
209
+ reportUnusedInlineConfigs : ' error' ,
210
+ } ,
207
211
plugins : {
208
212
'js' : js ,
209
213
'pluginImport' : pluginImport ,
@@ -234,8 +238,8 @@ export default defineConfig([
234
238
// Node.js (LTS) ESM, ESBUILD
235
239
{
236
240
// files: nodeMJS,
237
- files : [ '**/*.mjs' , ] ,
238
- ignores : [ 'resources/*.{js,cjs,mjs}' , ] ,
241
+ files : [ '**/*.mjs' ] ,
242
+ ignores : [ 'resources/*.{js,cjs,mjs}' ] ,
239
243
languageOptions : {
240
244
sourceType : 'module' ,
241
245
// Will be overridden by the n plugin which detects the correct node.js version from package.json
@@ -244,8 +248,8 @@ export default defineConfig([
244
248
// globals: globals.browser,
245
249
} ,
246
250
linterOptions : {
247
- reportUnusedInlineConfigs : " error" ,
248
- } ,
251
+ reportUnusedInlineConfigs : ' error' ,
252
+ } ,
249
253
plugins : {
250
254
'js' : js ,
251
255
'pluginImport' : pluginImport ,
0 commit comments