@zinkawaii/eslint-config 0.3.1 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -9
- package/dist/index.js +442 -619
- package/package.json +5 -3
package/dist/index.d.ts
CHANGED
@@ -1,12 +1,6 @@
|
|
1
|
-
import
|
1
|
+
import antfu from "@antfu/eslint-config";
|
2
2
|
|
3
3
|
//#region src/index.d.ts
|
4
|
-
declare const
|
5
|
-
patch: _antfu_eslint_config0.Rules;
|
6
|
-
recommended: _antfu_eslint_config0.Rules;
|
7
|
-
standard: _antfu_eslint_config0.Rules;
|
8
|
-
stylistic: _antfu_eslint_config0.Rules;
|
9
|
-
vue: _antfu_eslint_config0.Rules;
|
10
|
-
};
|
4
|
+
declare const zin: typeof antfu;
|
11
5
|
//#endregion
|
12
|
-
export {
|
6
|
+
export { zin as default, zin };
|
package/dist/index.js
CHANGED
@@ -1,503 +1,313 @@
|
|
1
|
-
|
2
|
-
function prefixary(prefix, rules) {
|
3
|
-
return rules ? Object.fromEntries(Object.entries(rules).map(([key, value]) => [`${prefix}/${key}`, value])) : prefix;
|
4
|
-
}
|
1
|
+
import antfu from "@antfu/eslint-config";
|
5
2
|
|
6
|
-
//#
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
"external",
|
20
|
-
"external-type",
|
21
|
-
"internal",
|
22
|
-
"internal-type",
|
23
|
-
[
|
24
|
-
"parent",
|
25
|
-
"sibling",
|
26
|
-
"index"
|
27
|
-
],
|
28
|
-
[
|
29
|
-
"parent-type",
|
30
|
-
"sibling-type",
|
31
|
-
"index-type"
|
32
|
-
],
|
33
|
-
"object",
|
34
|
-
"unknown"
|
3
|
+
//#region src/configs/javascript.ts
|
4
|
+
var javascript_default = {
|
5
|
+
name: "zin/javascript/rules",
|
6
|
+
rules: {
|
7
|
+
"no-cond-assign": "off",
|
8
|
+
"no-fallthrough": "off",
|
9
|
+
"require-yield": "error",
|
10
|
+
"curly": ["error", "multi-line"],
|
11
|
+
"default-param-last": "error",
|
12
|
+
"func-style": [
|
13
|
+
"error",
|
14
|
+
"declaration",
|
15
|
+
{ allowArrowFunctions: true }
|
35
16
|
],
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
});
|
54
|
-
|
55
|
-
//#endregion
|
56
|
-
//#region src/lib/recommended.ts
|
57
|
-
var recommended_default = prefixary({
|
58
|
-
"constructor-super": "warn",
|
59
|
-
"for-direction": "warn",
|
60
|
-
"getter-return": "warn",
|
61
|
-
"no-async-promise-executor": "warn",
|
62
|
-
"no-case-declarations": "warn",
|
63
|
-
"no-class-assign": "warn",
|
64
|
-
"no-compare-neg-zero": "warn",
|
65
|
-
"no-cond-assign": "off",
|
66
|
-
"no-const-assign": "warn",
|
67
|
-
"no-constant-binary-expression": "warn",
|
68
|
-
"no-constant-condition": ["warn", { checkLoops: false }],
|
69
|
-
"no-control-regex": "warn",
|
70
|
-
"no-debugger": "warn",
|
71
|
-
"no-delete-var": "warn",
|
72
|
-
"no-dupe-args": "warn",
|
73
|
-
"no-dupe-class-members": "off",
|
74
|
-
"no-dupe-else-if": "warn",
|
75
|
-
"no-dupe-keys": "warn",
|
76
|
-
"no-duplicate-case": "warn",
|
77
|
-
"no-empty": "warn",
|
78
|
-
"no-empty-character-class": "warn",
|
79
|
-
"no-empty-pattern": "warn",
|
80
|
-
"no-empty-static-block": "warn",
|
81
|
-
"no-ex-assign": "warn",
|
82
|
-
"no-extra-boolean-cast": "warn",
|
83
|
-
"no-fallthrough": "off",
|
84
|
-
"no-func-assign": "warn",
|
85
|
-
"no-global-assign": "warn",
|
86
|
-
"no-import-assign": "warn",
|
87
|
-
"no-invalid-regexp": "warn",
|
88
|
-
"no-irregular-whitespace": "warn",
|
89
|
-
"no-loss-of-precision": "warn",
|
90
|
-
"no-misleading-character-class": "warn",
|
91
|
-
"no-new-native-nonconstructor": "warn",
|
92
|
-
"no-nonoctal-decimal-escape": "warn",
|
93
|
-
"no-obj-calls": "warn",
|
94
|
-
"no-octal": "warn",
|
95
|
-
"no-prototype-builtins": "warn",
|
96
|
-
"no-redeclare": "off",
|
97
|
-
"no-regex-spaces": "warn",
|
98
|
-
"no-self-assign": "warn",
|
99
|
-
"no-setter-return": "warn",
|
100
|
-
"no-shadow-restricted-names": "warn",
|
101
|
-
"no-sparse-arrays": "warn",
|
102
|
-
"no-this-before-super": "warn",
|
103
|
-
"no-undef": "off",
|
104
|
-
"no-unexpected-multiline": "warn",
|
105
|
-
"no-unreachable": "warn",
|
106
|
-
"no-unsafe-finally": "warn",
|
107
|
-
"no-unsafe-negation": ["warn", { enforceForOrderingRelations: true }],
|
108
|
-
"no-unsafe-optional-chaining": "warn",
|
109
|
-
"no-unused-labels": "warn",
|
110
|
-
"no-unused-private-class-members": "warn",
|
111
|
-
"no-unused-vars": "off",
|
112
|
-
"no-useless-backreference": "warn",
|
113
|
-
"no-useless-catch": "warn",
|
114
|
-
"no-useless-escape": "warn",
|
115
|
-
"no-with": "warn",
|
116
|
-
"require-yield": "warn",
|
117
|
-
"use-isnan": ["warn", { enforceForIndexOf: true }],
|
118
|
-
"valid-typeof": "warn"
|
119
|
-
});
|
17
|
+
"logical-assignment-operators": "error",
|
18
|
+
"no-console": "off",
|
19
|
+
"no-constructor-return": "error",
|
20
|
+
"no-labels": "off",
|
21
|
+
"no-lonely-if": "error",
|
22
|
+
"no-loop-func": "error",
|
23
|
+
"no-sequences": "off",
|
24
|
+
"no-undefined": "error",
|
25
|
+
"no-useless-concat": "error",
|
26
|
+
"operator-assignment": ["error", "always"],
|
27
|
+
"prefer-numeric-literals": "error",
|
28
|
+
"prefer-object-has-own": "error",
|
29
|
+
"prefer-object-spread": "error",
|
30
|
+
"prefer-template": "off",
|
31
|
+
"symbol-description": "off"
|
32
|
+
}
|
33
|
+
};
|
120
34
|
|
121
35
|
//#endregion
|
122
|
-
//#region src/
|
123
|
-
var
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
"no-console": "off",
|
167
|
-
"no-constructor-return": "warn",
|
168
|
-
"no-continue": "off",
|
169
|
-
"no-div-regex": "off",
|
170
|
-
"no-duplicate-imports": "warn",
|
171
|
-
"no-else-return": "off",
|
172
|
-
"no-empty-function": "off",
|
173
|
-
"no-eq-null": "off",
|
174
|
-
"no-eval": "warn",
|
175
|
-
"no-extend-native": "warn",
|
176
|
-
"no-extra-bind": "warn",
|
177
|
-
"no-extra-label": "off",
|
178
|
-
"no-implicit-coercion": "off",
|
179
|
-
"no-implicit-globals": "off",
|
180
|
-
"no-implied-eval": "warn",
|
181
|
-
"no-inline-comments": "off",
|
182
|
-
"no-inner-declarations": "off",
|
183
|
-
"no-invalid-this": "off",
|
184
|
-
"no-iterator": "warn",
|
185
|
-
"no-label-var": "off",
|
186
|
-
"no-labels": "off",
|
187
|
-
"no-lone-blocks": "warn",
|
188
|
-
"no-lonely-if": "warn",
|
189
|
-
"no-loop-func": "warn",
|
190
|
-
"no-magic-numbers": "off",
|
191
|
-
"no-multi-assign": "off",
|
192
|
-
"no-multi-str": "warn",
|
193
|
-
"no-negated-condition": "off",
|
194
|
-
"no-nested-ternary": "off",
|
195
|
-
"no-new": "warn",
|
196
|
-
"no-new-func": "warn",
|
197
|
-
"no-new-wrappers": "warn",
|
198
|
-
"no-object-constructor": "warn",
|
199
|
-
"no-octal-escape": "warn",
|
200
|
-
"no-param-reassign": "off",
|
201
|
-
"no-plusplus": "off",
|
202
|
-
"no-promise-executor-return": "warn",
|
203
|
-
"no-proto": "warn",
|
204
|
-
"no-restricted-exports": "off",
|
205
|
-
"no-restricted-globals": "off",
|
206
|
-
"no-restricted-imports": "off",
|
207
|
-
"no-restricted-properties": "off",
|
208
|
-
"no-restricted-syntax": "off",
|
209
|
-
"no-return-assign": "warn",
|
210
|
-
"no-script-url": "off",
|
211
|
-
"no-self-compare": "warn",
|
212
|
-
"no-sequences": "off",
|
213
|
-
"no-shadow": "off",
|
214
|
-
"no-template-curly-in-string": "off",
|
215
|
-
"no-ternary": "off",
|
216
|
-
"no-throw-literal": "off",
|
217
|
-
"no-undef-init": "warn",
|
218
|
-
"no-undefined": "warn",
|
219
|
-
"no-underscore-dangle": "off",
|
220
|
-
"no-unmodified-loop-condition": "warn",
|
221
|
-
"no-unneeded-ternary": ["warn", { defaultAssignment: false }],
|
222
|
-
"no-unreachable-loop": "warn",
|
223
|
-
"no-unused-expressions": "off",
|
224
|
-
"no-unused-private-class-members": "warn",
|
225
|
-
"no-use-before-define": "off",
|
226
|
-
"no-useless-assignment": "off",
|
227
|
-
"no-useless-call": "warn",
|
228
|
-
"no-useless-computed-key": "warn",
|
229
|
-
"no-useless-concat": "warn",
|
230
|
-
"no-useless-constructor": "warn",
|
231
|
-
"no-useless-rename": "warn",
|
232
|
-
"no-useless-return": "warn",
|
233
|
-
"no-var": "warn",
|
234
|
-
"no-void": "off",
|
235
|
-
"no-warning-comments": "off",
|
236
|
-
"object-shorthand": ["warn", "methods"],
|
237
|
-
"one-var": ["warn", { initialized: "never" }],
|
238
|
-
"operator-assignment": ["warn", "always"],
|
239
|
-
"prefer-arrow-callback": ["warn", {
|
240
|
-
allowNamedFunctions: false,
|
241
|
-
allowUnboundThis: true
|
242
|
-
}],
|
243
|
-
"prefer-const": ["warn", {
|
244
|
-
destructuring: "all",
|
245
|
-
ignoreReadBeforeAssign: false
|
246
|
-
}],
|
247
|
-
"prefer-destructuring": "off",
|
248
|
-
"prefer-exponentiation-operator": "warn",
|
249
|
-
"prefer-named-capture-group": "off",
|
250
|
-
"prefer-numeric-literals": "warn",
|
251
|
-
"prefer-object-has-own": "warn",
|
252
|
-
"prefer-object-spread": "warn",
|
253
|
-
"prefer-promise-reject-errors": "warn",
|
254
|
-
"prefer-regex-literals": ["warn", { disallowRedundantWrapping: true }],
|
255
|
-
"prefer-rest-params": "warn",
|
256
|
-
"prefer-spread": "warn",
|
257
|
-
"prefer-template": "off",
|
258
|
-
"radix": "off",
|
259
|
-
"require-atomic-updates": "off",
|
260
|
-
"require-await": "off",
|
261
|
-
"require-unicode-regexp": "off",
|
262
|
-
"sort-imports": "off",
|
263
|
-
"sort-keys": "off",
|
264
|
-
"sort-vars": "off",
|
265
|
-
"strict": "off",
|
266
|
-
"symbol-description": "off",
|
267
|
-
"vars-on-top": "warn",
|
268
|
-
"yoda": [
|
269
|
-
"warn",
|
270
|
-
"never",
|
271
|
-
{ exceptRange: true }
|
272
|
-
]
|
273
|
-
});
|
36
|
+
//#region src/configs/misc.ts
|
37
|
+
var misc_default = {
|
38
|
+
name: "zin/misc/rules",
|
39
|
+
rules: {
|
40
|
+
"antfu/curly": "off",
|
41
|
+
"antfu/if-newline": "off",
|
42
|
+
"antfu/no-top-level-await": "off",
|
43
|
+
"antfu/top-level-function": "off",
|
44
|
+
"import/consistent-type-specifier-style": "off",
|
45
|
+
"node/prefer-global/process": "off",
|
46
|
+
"perfectionist/sort-imports": ["warn", {
|
47
|
+
groups: [
|
48
|
+
"builtin",
|
49
|
+
"external",
|
50
|
+
"external-type",
|
51
|
+
"internal",
|
52
|
+
"internal-type",
|
53
|
+
[
|
54
|
+
"parent",
|
55
|
+
"sibling",
|
56
|
+
"index"
|
57
|
+
],
|
58
|
+
[
|
59
|
+
"parent-type",
|
60
|
+
"sibling-type",
|
61
|
+
"index-type"
|
62
|
+
],
|
63
|
+
"object",
|
64
|
+
"unknown"
|
65
|
+
],
|
66
|
+
internalPattern: [
|
67
|
+
"#.*",
|
68
|
+
"@/.*",
|
69
|
+
"@@/.*",
|
70
|
+
"~/.*",
|
71
|
+
"~~/.*"
|
72
|
+
],
|
73
|
+
newlinesBetween: "never"
|
74
|
+
}],
|
75
|
+
"ts/no-empty-object-type": "off",
|
76
|
+
"ts/no-unsafe-declaration-merging": "off",
|
77
|
+
"yaml/quotes": ["warn", { prefer: "double" }]
|
78
|
+
}
|
79
|
+
};
|
274
80
|
|
275
81
|
//#endregion
|
276
|
-
//#region src/
|
277
|
-
var stylistic_default =
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
}],
|
293
|
-
"comma-style": ["warn", "last"],
|
294
|
-
"computed-property-spacing": ["warn", "never"],
|
295
|
-
"curly-newline": "off",
|
296
|
-
"dot-location": ["warn", "property"],
|
297
|
-
"eol-last": ["warn", "always"],
|
298
|
-
"function-call-argument-newline": ["warn", "consistent"],
|
299
|
-
"function-call-spacing": ["warn", "never"],
|
300
|
-
"function-paren-newline": ["warn", "consistent"],
|
301
|
-
"generator-star-spacing": ["warn", {
|
302
|
-
named: {
|
82
|
+
//#region src/configs/stylistic.ts
|
83
|
+
var stylistic_default = {
|
84
|
+
name: "zin/stylistic/rules",
|
85
|
+
rules: {
|
86
|
+
"style/array-bracket-newline": ["warn", "consistent"],
|
87
|
+
"style/array-bracket-spacing": ["warn", "never"],
|
88
|
+
"style/array-element-newline": ["warn", "consistent"],
|
89
|
+
"style/arrow-parens": ["warn", "always"],
|
90
|
+
"style/arrow-spacing": ["warn", {
|
91
|
+
before: true,
|
92
|
+
after: true
|
93
|
+
}],
|
94
|
+
"style/block-spacing": ["warn", "always"],
|
95
|
+
"style/brace-style": ["warn", "stroustrup"],
|
96
|
+
"style/comma-dangle": ["warn", "always-multiline"],
|
97
|
+
"style/comma-spacing": ["warn", {
|
303
98
|
before: false,
|
304
99
|
after: true
|
305
|
-
},
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
100
|
+
}],
|
101
|
+
"style/comma-style": ["warn", "last"],
|
102
|
+
"style/computed-property-spacing": ["warn", "never"],
|
103
|
+
"style/curly-newline": "off",
|
104
|
+
"style/dot-location": ["warn", "property"],
|
105
|
+
"style/eol-last": ["warn", "always"],
|
106
|
+
"style/function-call-argument-newline": ["warn", "consistent"],
|
107
|
+
"style/function-call-spacing": ["warn", "never"],
|
108
|
+
"style/function-paren-newline": ["warn", "consistent"],
|
109
|
+
"style/generator-star-spacing": ["warn", {
|
110
|
+
named: {
|
111
|
+
before: false,
|
112
|
+
after: true
|
113
|
+
},
|
114
|
+
anonymous: {
|
115
|
+
before: true,
|
116
|
+
after: false
|
117
|
+
},
|
118
|
+
method: {
|
119
|
+
before: true,
|
120
|
+
after: true
|
121
|
+
}
|
122
|
+
}],
|
123
|
+
"style/implicit-arrow-linebreak": ["warn", "beside"],
|
124
|
+
"style/indent": "off",
|
125
|
+
"style/indent-binary-ops": "off",
|
126
|
+
"style/key-spacing": ["warn", {
|
127
|
+
beforeColon: false,
|
128
|
+
afterColon: true,
|
129
|
+
mode: "strict"
|
130
|
+
}],
|
131
|
+
"style/keyword-spacing": ["warn", {
|
311
132
|
before: true,
|
312
133
|
after: true
|
313
|
-
}
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
"
|
332
|
-
"
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
overrides: { arrow: { before: true } }
|
397
|
-
}],
|
398
|
-
"type-generic-spacing": "warn",
|
399
|
-
"type-named-tuple-spacing": "warn",
|
400
|
-
"wrap-iife": [
|
401
|
-
"warn",
|
402
|
-
"inside",
|
403
|
-
{ functionPrototypeMethods: true }
|
404
|
-
],
|
405
|
-
"wrap-regex": "off",
|
406
|
-
"yield-star-spacing": ["warn", "after"]
|
407
|
-
});
|
134
|
+
}],
|
135
|
+
"style/line-comment-position": "off",
|
136
|
+
"style/linebreak-style": ["warn", "unix"],
|
137
|
+
"style/lines-around-comment": "off",
|
138
|
+
"style/lines-between-class-members": [
|
139
|
+
"warn",
|
140
|
+
"always",
|
141
|
+
{ exceptAfterSingleLine: true }
|
142
|
+
],
|
143
|
+
"style/max-len": "off",
|
144
|
+
"style/max-statements-per-line": "off",
|
145
|
+
"style/member-delimiter-style": ["warn", { multiline: {
|
146
|
+
delimiter: "semi",
|
147
|
+
requireLast: true
|
148
|
+
} }],
|
149
|
+
"style/multiline-comment-style": "off",
|
150
|
+
"style/multiline-ternary": "off",
|
151
|
+
"style/new-parens": "warn",
|
152
|
+
"style/newline-per-chained-call": "off",
|
153
|
+
"style/no-confusing-arrow": "warn",
|
154
|
+
"style/no-extra-parens": ["warn", "functions"],
|
155
|
+
"style/no-extra-semi": "warn",
|
156
|
+
"style/no-floating-decimal": "warn",
|
157
|
+
"style/no-mixed-operators": "off",
|
158
|
+
"style/no-mixed-spaces-and-tabs": "warn",
|
159
|
+
"style/no-multi-spaces": ["warn", { ignoreEOLComments: true }],
|
160
|
+
"style/no-multiple-empty-lines": ["warn", { max: 1 }],
|
161
|
+
"style/no-tabs": "warn",
|
162
|
+
"style/no-trailing-spaces": "warn",
|
163
|
+
"style/no-whitespace-before-property": "warn",
|
164
|
+
"style/nonblock-statement-body-position": ["warn", "beside"],
|
165
|
+
"style/object-curly-newline": "warn",
|
166
|
+
"style/object-curly-spacing": ["warn", "always"],
|
167
|
+
"style/object-property-newline": ["warn", { allowAllPropertiesOnSameLine: true }],
|
168
|
+
"style/one-var-declaration-per-line": "off",
|
169
|
+
"style/operator-linebreak": "off",
|
170
|
+
"style/padded-blocks": ["warn", "never"],
|
171
|
+
"style/padding-line-between-statements": "off",
|
172
|
+
"style/quote-props": ["warn", "as-needed"],
|
173
|
+
"style/quotes": [
|
174
|
+
"warn",
|
175
|
+
"double",
|
176
|
+
{ allowTemplateLiterals: "always" }
|
177
|
+
],
|
178
|
+
"style/rest-spread-spacing": ["warn", "never"],
|
179
|
+
"style/semi": ["warn", "always"],
|
180
|
+
"style/semi-spacing": ["warn", {
|
181
|
+
before: false,
|
182
|
+
after: true
|
183
|
+
}],
|
184
|
+
"style/semi-style": ["warn", "last"],
|
185
|
+
"style/space-before-blocks": ["warn", "always"],
|
186
|
+
"style/space-before-function-paren": ["warn", {
|
187
|
+
named: "never",
|
188
|
+
anonymous: "never",
|
189
|
+
asyncArrow: "always"
|
190
|
+
}],
|
191
|
+
"style/space-in-parens": ["warn", "never"],
|
192
|
+
"style/space-infix-ops": "warn",
|
193
|
+
"style/space-unary-ops": "warn",
|
194
|
+
"style/spaced-comment": "off",
|
195
|
+
"style/switch-colon-spacing": ["warn", {
|
196
|
+
before: false,
|
197
|
+
after: true
|
198
|
+
}],
|
199
|
+
"style/template-curly-spacing": ["warn", "never"],
|
200
|
+
"style/template-tag-spacing": ["warn", "never"],
|
201
|
+
"style/type-annotation-spacing": ["warn", {
|
202
|
+
before: false,
|
203
|
+
after: true,
|
204
|
+
overrides: { arrow: { before: true } }
|
205
|
+
}],
|
206
|
+
"style/type-generic-spacing": "warn",
|
207
|
+
"style/type-named-tuple-spacing": "warn",
|
208
|
+
"style/wrap-iife": [
|
209
|
+
"warn",
|
210
|
+
"inside",
|
211
|
+
{ functionPrototypeMethods: true }
|
212
|
+
],
|
213
|
+
"style/wrap-regex": "off",
|
214
|
+
"style/yield-star-spacing": ["warn", "after"]
|
215
|
+
}
|
216
|
+
};
|
408
217
|
|
409
218
|
//#endregion
|
410
|
-
//#region src/
|
411
|
-
var vue_default =
|
412
|
-
"no-arrow-functions-in-watch": "
|
413
|
-
"no-async-in-computed-properties": "
|
414
|
-
"no-child-content": "
|
415
|
-
"no-computed-properties-in-data": "
|
416
|
-
"no-deprecated-data-object-declaration": "
|
417
|
-
"no-deprecated-
|
418
|
-
"no-deprecated-
|
419
|
-
"no-deprecated-dollar-
|
420
|
-
"no-deprecated-
|
421
|
-
"no-deprecated-
|
422
|
-
"no-deprecated-
|
423
|
-
"no-deprecated-
|
424
|
-
"no-deprecated-
|
425
|
-
"no-deprecated-
|
426
|
-
"no-deprecated-
|
427
|
-
"no-deprecated-
|
428
|
-
"no-deprecated-
|
429
|
-
"no-deprecated-slot-
|
430
|
-
"no-deprecated-
|
431
|
-
"no-deprecated-v-
|
432
|
-
"no-deprecated-v-
|
433
|
-
"no-deprecated-v-on-
|
434
|
-
"no-deprecated-
|
435
|
-
"no-
|
436
|
-
"no-dupe-
|
437
|
-
"no-
|
438
|
-
"no-
|
439
|
-
"no-
|
440
|
-
"no-
|
441
|
-
"no-
|
442
|
-
"no-
|
443
|
-
"no-
|
444
|
-
"no-
|
445
|
-
"no-reserved-
|
446
|
-
"no-reserved-
|
447
|
-
"no-
|
448
|
-
"no-
|
449
|
-
"no-
|
450
|
-
"no-
|
451
|
-
"no-
|
452
|
-
"no-unused-
|
453
|
-
"no-
|
454
|
-
"no-use-
|
455
|
-
"no-
|
456
|
-
"no-
|
457
|
-
"no-v-
|
458
|
-
"no-
|
459
|
-
"
|
460
|
-
"
|
461
|
-
"require-
|
462
|
-
"require-
|
463
|
-
"require-
|
464
|
-
"require-
|
465
|
-
"require-
|
466
|
-
"
|
467
|
-
"
|
468
|
-
"
|
469
|
-
"valid-
|
470
|
-
"valid-define-
|
471
|
-
"valid-
|
472
|
-
"valid-
|
473
|
-
"valid-
|
474
|
-
"valid-v-
|
475
|
-
"valid-v-
|
476
|
-
"valid-v-else": "
|
477
|
-
"valid-v-
|
478
|
-
"valid-v-
|
479
|
-
"valid-v-
|
480
|
-
"valid-v-
|
481
|
-
"valid-v-
|
482
|
-
"valid-v-
|
483
|
-
"valid-v-
|
484
|
-
"valid-v-
|
485
|
-
"valid-v-
|
486
|
-
"valid-v-
|
487
|
-
"
|
488
|
-
"
|
489
|
-
"
|
219
|
+
//#region src/rules/vue.ts
|
220
|
+
var vue_default = {
|
221
|
+
"vue/no-arrow-functions-in-watch": "error",
|
222
|
+
"vue/no-async-in-computed-properties": "error",
|
223
|
+
"vue/no-child-content": "error",
|
224
|
+
"vue/no-computed-properties-in-data": "error",
|
225
|
+
"vue/no-deprecated-data-object-declaration": "error",
|
226
|
+
"vue/no-deprecated-delete-set": "error",
|
227
|
+
"vue/no-deprecated-destroyed-lifecycle": "error",
|
228
|
+
"vue/no-deprecated-dollar-listeners-api": "error",
|
229
|
+
"vue/no-deprecated-dollar-scopedslots-api": "error",
|
230
|
+
"vue/no-deprecated-events-api": "error",
|
231
|
+
"vue/no-deprecated-filter": "error",
|
232
|
+
"vue/no-deprecated-functional-template": "error",
|
233
|
+
"vue/no-deprecated-html-element-is": "error",
|
234
|
+
"vue/no-deprecated-inline-template": "error",
|
235
|
+
"vue/no-deprecated-props-default-this": "error",
|
236
|
+
"vue/no-deprecated-router-link-tag-prop": "error",
|
237
|
+
"vue/no-deprecated-scope-attribute": "error",
|
238
|
+
"vue/no-deprecated-slot-attribute": "error",
|
239
|
+
"vue/no-deprecated-slot-scope-attribute": "error",
|
240
|
+
"vue/no-deprecated-v-bind-sync": "error",
|
241
|
+
"vue/no-deprecated-v-is": "error",
|
242
|
+
"vue/no-deprecated-v-on-native-modifier": "error",
|
243
|
+
"vue/no-deprecated-v-on-number-modifiers": "error",
|
244
|
+
"vue/no-deprecated-vue-config-keycodes": "error",
|
245
|
+
"vue/no-dupe-keys": "error",
|
246
|
+
"vue/no-dupe-v-else-if": "error",
|
247
|
+
"vue/no-duplicate-attributes": "error",
|
248
|
+
"vue/no-export-in-script-setup": "error",
|
249
|
+
"vue/no-expose-after-await": "error",
|
250
|
+
"vue/no-lifecycle-after-await": "error",
|
251
|
+
"vue/no-mutating-props": "error",
|
252
|
+
"vue/no-parsing-error": "error",
|
253
|
+
"vue/no-ref-as-operand": "error",
|
254
|
+
"vue/no-reserved-component-names": "error",
|
255
|
+
"vue/no-reserved-keys": "error",
|
256
|
+
"vue/no-reserved-props": "error",
|
257
|
+
"vue/no-shared-component-data": "error",
|
258
|
+
"vue/no-side-effects-in-computed-properties": "error",
|
259
|
+
"vue/no-template-key": "error",
|
260
|
+
"vue/no-textarea-mustache": "error",
|
261
|
+
"vue/no-unused-components": "error",
|
262
|
+
"vue/no-unused-vars": "error",
|
263
|
+
"vue/no-use-computed-property-like-method": "error",
|
264
|
+
"vue/no-use-v-if-with-v-for": "error",
|
265
|
+
"vue/no-useless-template-attributes": "error",
|
266
|
+
"vue/no-v-for-template-key-on-child": "error",
|
267
|
+
"vue/no-v-text-v-html-on-component": "error",
|
268
|
+
"vue/no-watch-after-await": "error",
|
269
|
+
"vue/prefer-import-from-vue": "error",
|
270
|
+
"vue/require-component-is": "error",
|
271
|
+
"vue/require-prop-type-constructor": "error",
|
272
|
+
"vue/require-render-return": "error",
|
273
|
+
"vue/require-slots-as-functions": "error",
|
274
|
+
"vue/require-toggle-inside-transition": "error",
|
275
|
+
"vue/require-valid-default-prop": "error",
|
276
|
+
"vue/return-in-emits-validator": "error",
|
277
|
+
"vue/use-v-on-exact": "error",
|
278
|
+
"vue/valid-attribute-name": "error",
|
279
|
+
"vue/valid-define-emits": "error",
|
280
|
+
"vue/valid-define-props": "error",
|
281
|
+
"vue/valid-next-tick": "error",
|
282
|
+
"vue/valid-template-root": "error",
|
283
|
+
"vue/valid-v-bind": "error",
|
284
|
+
"vue/valid-v-cloak": "error",
|
285
|
+
"vue/valid-v-else-if": "error",
|
286
|
+
"vue/valid-v-else": "error",
|
287
|
+
"vue/valid-v-html": "error",
|
288
|
+
"vue/valid-v-if": "error",
|
289
|
+
"vue/valid-v-memo": "error",
|
290
|
+
"vue/valid-v-model": "error",
|
291
|
+
"vue/valid-v-on": "error",
|
292
|
+
"vue/valid-v-once": "error",
|
293
|
+
"vue/valid-v-pre": "error",
|
294
|
+
"vue/valid-v-show": "error",
|
295
|
+
"vue/valid-v-slot": "error",
|
296
|
+
"vue/valid-v-text": "error",
|
297
|
+
"vue/attribute-hyphenation": "error",
|
298
|
+
"vue/component-definition-name-casing": ["error", "kebab-case"],
|
299
|
+
"vue/first-attribute-linebreak": ["error", {
|
490
300
|
singleline: "beside",
|
491
301
|
multiline: "below"
|
492
302
|
}],
|
493
|
-
"html-closing-bracket-newline": ["
|
303
|
+
"vue/html-closing-bracket-newline": ["error", {
|
494
304
|
singleline: "never",
|
495
305
|
multiline: "always"
|
496
306
|
}],
|
497
|
-
"html-end-tags": "
|
498
|
-
"html-indent": ["
|
499
|
-
"html-quotes": ["
|
500
|
-
"html-self-closing": ["
|
307
|
+
"vue/html-end-tags": "error",
|
308
|
+
"vue/html-indent": ["error", 4],
|
309
|
+
"vue/html-quotes": ["error", "double"],
|
310
|
+
"vue/html-self-closing": ["error", {
|
501
311
|
html: {
|
502
312
|
void: "always",
|
503
313
|
normal: "never",
|
@@ -506,26 +316,26 @@ var vue_default = prefixary("vue", {
|
|
506
316
|
svg: "always",
|
507
317
|
math: "always"
|
508
318
|
}],
|
509
|
-
"mustache-interpolation-spacing": ["
|
510
|
-
"no-multi-spaces": "
|
511
|
-
"no-spaces-around-equal-signs-in-attribute": "
|
512
|
-
"no-template-shadow": "
|
513
|
-
"one-component-per-file": "
|
514
|
-
"prop-name-casing": ["
|
515
|
-
"require-prop-types": "
|
516
|
-
"v-bind-style": [
|
517
|
-
"
|
319
|
+
"vue/mustache-interpolation-spacing": ["error", "always"],
|
320
|
+
"vue/no-multi-spaces": "error",
|
321
|
+
"vue/no-spaces-around-equal-signs-in-attribute": "error",
|
322
|
+
"vue/no-template-shadow": "error",
|
323
|
+
"vue/one-component-per-file": "error",
|
324
|
+
"vue/prop-name-casing": ["error", "camelCase"],
|
325
|
+
"vue/require-prop-types": "error",
|
326
|
+
"vue/v-bind-style": [
|
327
|
+
"error",
|
518
328
|
"shorthand",
|
519
329
|
{ sameNameShorthand: "always" }
|
520
330
|
],
|
521
|
-
"v-on-event-hyphenation": ["
|
522
|
-
"v-on-style": ["
|
523
|
-
"v-slot-style": ["
|
331
|
+
"vue/v-on-event-hyphenation": ["error", "always"],
|
332
|
+
"vue/v-on-style": ["error", "shorthand"],
|
333
|
+
"vue/v-slot-style": ["error", {
|
524
334
|
atComponent: "v-slot",
|
525
335
|
default: "shorthand",
|
526
336
|
named: "shorthand"
|
527
337
|
}],
|
528
|
-
"attributes-order": ["
|
338
|
+
"vue/attributes-order": ["error", { order: [
|
529
339
|
"LIST_RENDERING",
|
530
340
|
"CONDITIONALS",
|
531
341
|
"RENDER_MODIFIERS",
|
@@ -543,30 +353,30 @@ var vue_default = prefixary("vue", {
|
|
543
353
|
"EVENTS",
|
544
354
|
"CONTENT"
|
545
355
|
] }],
|
546
|
-
"no-lone-template": "
|
547
|
-
"no-multiple-slot-args": "
|
548
|
-
"order-in-components": "
|
549
|
-
"this-in-template": ["
|
550
|
-
"block-order": ["
|
356
|
+
"vue/no-lone-template": "error",
|
357
|
+
"vue/no-multiple-slot-args": "error",
|
358
|
+
"vue/order-in-components": "error",
|
359
|
+
"vue/this-in-template": ["error", "never"],
|
360
|
+
"vue/block-order": ["error", { order: [
|
551
361
|
"script",
|
552
362
|
"template",
|
553
363
|
"style"
|
554
364
|
] }],
|
555
|
-
"block-tag-newline": ["
|
365
|
+
"vue/block-tag-newline": ["error", {
|
556
366
|
singleline: "always",
|
557
367
|
multiline: "always"
|
558
368
|
}],
|
559
|
-
"comma-dangle": ["
|
560
|
-
"component-api-style": ["
|
561
|
-
"component-name-in-template-casing": [
|
562
|
-
"
|
369
|
+
"vue/comma-dangle": ["error", "never"],
|
370
|
+
"vue/component-api-style": ["error", ["script-setup", "composition"]],
|
371
|
+
"vue/component-name-in-template-casing": [
|
372
|
+
"error",
|
563
373
|
"kebab-case",
|
564
374
|
{ registeredComponentsOnly: false }
|
565
375
|
],
|
566
|
-
"component-options-name-casing": ["
|
567
|
-
"custom-event-name-casing": ["
|
568
|
-
"define-emits-declaration": ["
|
569
|
-
"define-macros-order": ["
|
376
|
+
"vue/component-options-name-casing": ["error", "PascalCase"],
|
377
|
+
"vue/custom-event-name-casing": ["error", "camelCase"],
|
378
|
+
"vue/define-emits-declaration": ["error", "type-literal"],
|
379
|
+
"vue/define-macros-order": ["error", {
|
570
380
|
order: [
|
571
381
|
"defineOptions",
|
572
382
|
"defineProps",
|
@@ -576,63 +386,49 @@ var vue_default = prefixary("vue", {
|
|
576
386
|
],
|
577
387
|
defineExposeLast: true
|
578
388
|
}],
|
579
|
-
"define-props-declaration": ["
|
580
|
-
"html-comment-content-newline": ["
|
389
|
+
"vue/define-props-declaration": ["error", "type-based"],
|
390
|
+
"vue/html-comment-content-newline": ["error", {
|
581
391
|
singleline: "never",
|
582
392
|
multiline: "always"
|
583
393
|
}],
|
584
|
-
"html-comment-content-spacing": ["
|
585
|
-
"html-comment-indent": ["
|
586
|
-
"no-deprecated-model-definition": "
|
587
|
-
"no-duplicate-attr-inheritance": "
|
588
|
-
"no-empty-component-block": "
|
589
|
-
"no-
|
590
|
-
"no-
|
591
|
-
"no-
|
592
|
-
"no-
|
593
|
-
"no-
|
594
|
-
"no-
|
595
|
-
"no-unused-
|
596
|
-
"no-
|
597
|
-
"no-
|
394
|
+
"vue/html-comment-content-spacing": ["error", "always"],
|
395
|
+
"vue/html-comment-indent": ["error", 4],
|
396
|
+
"vue/no-deprecated-model-definition": "error",
|
397
|
+
"vue/no-duplicate-attr-inheritance": "error",
|
398
|
+
"vue/no-empty-component-block": "error",
|
399
|
+
"vue/no-import-compiler-macros": "error",
|
400
|
+
"vue/no-multiple-objects-in-class": "error",
|
401
|
+
"vue/no-potential-component-option-typo": ["error", { presets: ["all"] }],
|
402
|
+
"vue/no-required-prop-with-default": ["error", { autofix: true }],
|
403
|
+
"vue/no-static-inline-styles": "error",
|
404
|
+
"vue/no-this-in-before-route-enter": "error",
|
405
|
+
"vue/no-unused-refs": "error",
|
406
|
+
"vue/no-unused-emit-declarations": "error",
|
407
|
+
"vue/no-use-v-else-with-v-for": "error",
|
408
|
+
"vue/no-useless-mustaches": ["error", {
|
598
409
|
ignoreIncludesComment: true,
|
599
410
|
ignoreStringEscape: true
|
600
411
|
}],
|
601
|
-
"no-useless-v-bind": ["
|
412
|
+
"vue/no-useless-v-bind": ["error", {
|
602
413
|
ignoreIncludesComment: true,
|
603
414
|
ignoreStringEscape: true
|
604
415
|
}],
|
605
|
-
"padding-line-between-blocks": ["
|
606
|
-
"prefer-define-options": "
|
607
|
-
"prefer-prop-type-boolean-first": "
|
608
|
-
"prefer-separate-static-class": "
|
609
|
-
"prefer-
|
610
|
-
"
|
611
|
-
"require-
|
612
|
-
"require-
|
613
|
-
"require-
|
614
|
-
"require-
|
615
|
-
"require-
|
616
|
-
"require-typed-
|
617
|
-
"
|
618
|
-
"
|
619
|
-
|
620
|
-
|
621
|
-
"no-empty-pattern",
|
622
|
-
"no-irregular-whitespace",
|
623
|
-
"no-loss-of-precision",
|
624
|
-
"no-sparse-arrays"
|
625
|
-
].map((rule) => [rule, recommended_default[rule]])),
|
626
|
-
...Object.fromEntries([
|
627
|
-
"camelcase",
|
628
|
-
"dot-notation",
|
629
|
-
"eqeqeq",
|
630
|
-
"no-console",
|
631
|
-
"no-restricted-syntax",
|
632
|
-
"no-useless-concat",
|
633
|
-
"object-shorthand",
|
634
|
-
"prefer-template"
|
635
|
-
].map((rule) => [rule, standard_default[rule]])),
|
416
|
+
"vue/padding-line-between-blocks": ["error", "always"],
|
417
|
+
"vue/prefer-define-options": "error",
|
418
|
+
"vue/prefer-prop-type-boolean-first": "error",
|
419
|
+
"vue/prefer-separate-static-class": "error",
|
420
|
+
"vue/prefer-use-template-ref": "error",
|
421
|
+
"vue/prefer-true-attribute-shorthand": ["error", "always"],
|
422
|
+
"vue/require-default-export": "error",
|
423
|
+
"vue/require-direct-export": "error",
|
424
|
+
"vue/require-emit-validator": "error",
|
425
|
+
"vue/require-explicit-emits": "error",
|
426
|
+
"vue/require-macro-variable-name": "error",
|
427
|
+
"vue/require-typed-object-prop": "error",
|
428
|
+
"vue/require-typed-ref": "error",
|
429
|
+
"vue/valid-define-options": "error",
|
430
|
+
"vue/v-for-delimiter-style": ["error", "in"],
|
431
|
+
...Object.fromEntries(["no-useless-concat", "prefer-template"].map((rule) => [`vue/${rule}`, javascript_default.rules[rule]])),
|
636
432
|
...Object.fromEntries([
|
637
433
|
"array-bracket-newline",
|
638
434
|
"array-bracket-spacing",
|
@@ -658,71 +454,98 @@ var vue_default = prefixary("vue", {
|
|
658
454
|
"space-infix-ops",
|
659
455
|
"space-unary-ops",
|
660
456
|
"template-curly-spacing"
|
661
|
-
].map((rule) => [rule
|
662
|
-
"no-undef-components": "off",
|
663
|
-
"require-name-property": "off",
|
664
|
-
"no-ref-object-reactivity-loss": "off",
|
665
|
-
"no-root-v-if": "off",
|
666
|
-
"no-setup-props-reactivity-loss": "off",
|
667
|
-
"no-unused-properties": "off",
|
668
|
-
"html-closing-bracket-spacing": "off",
|
669
|
-
"script-indent": "off",
|
670
|
-
"no-restricted-block": "off",
|
671
|
-
"no-restricted-call-after-await": "off",
|
672
|
-
"no-restricted-class": "off",
|
673
|
-
"no-restricted-component-names": "off",
|
674
|
-
"no-restricted-component-options": "off",
|
675
|
-
"no-restricted-custom-event": "off",
|
676
|
-
"no-restricted-html-elements": "off",
|
677
|
-
"no-restricted-props": "off",
|
678
|
-
"no-restricted-static-attribute": "off",
|
679
|
-
"no-restricted-v-bind": "off",
|
680
|
-
"no-restricted-v-on": "off",
|
681
|
-
"block-lang": "off",
|
682
|
-
"enforce-style-attribute": "off",
|
683
|
-
"max-attributes-per-line": "off",
|
684
|
-
"max-lines-per-block": "off",
|
685
|
-
"max-props": "off",
|
686
|
-
"max-template-depth": "off",
|
687
|
-
"multi-word-component-names": "off",
|
688
|
-
"multiline-html-element-content-newline": "off",
|
689
|
-
"next-tick-style": "off",
|
690
|
-
"new-line-between-multi-line-property": "off",
|
691
|
-
"no-
|
692
|
-
"no-v-
|
693
|
-
"
|
694
|
-
"padding-
|
695
|
-
"
|
696
|
-
"require-
|
697
|
-
"require-
|
698
|
-
"require-
|
699
|
-
"
|
700
|
-
"
|
701
|
-
"
|
702
|
-
"
|
703
|
-
"
|
704
|
-
"
|
705
|
-
"
|
706
|
-
"
|
707
|
-
"
|
708
|
-
"
|
709
|
-
"
|
710
|
-
"
|
711
|
-
"no-
|
712
|
-
"no-
|
713
|
-
"
|
714
|
-
"
|
715
|
-
|
457
|
+
].map((rule) => [`vue/${rule}`, stylistic_default.rules[`style/${rule}`]])),
|
458
|
+
"vue/no-undef-components": "off",
|
459
|
+
"vue/require-name-property": "off",
|
460
|
+
"vue/no-ref-object-reactivity-loss": "off",
|
461
|
+
"vue/no-root-v-if": "off",
|
462
|
+
"vue/no-setup-props-reactivity-loss": "off",
|
463
|
+
"vue/no-unused-properties": "off",
|
464
|
+
"vue/html-closing-bracket-spacing": "off",
|
465
|
+
"vue/script-indent": "off",
|
466
|
+
"vue/no-restricted-block": "off",
|
467
|
+
"vue/no-restricted-call-after-await": "off",
|
468
|
+
"vue/no-restricted-class": "off",
|
469
|
+
"vue/no-restricted-component-names": "off",
|
470
|
+
"vue/no-restricted-component-options": "off",
|
471
|
+
"vue/no-restricted-custom-event": "off",
|
472
|
+
"vue/no-restricted-html-elements": "off",
|
473
|
+
"vue/no-restricted-props": "off",
|
474
|
+
"vue/no-restricted-static-attribute": "off",
|
475
|
+
"vue/no-restricted-v-bind": "off",
|
476
|
+
"vue/no-restricted-v-on": "off",
|
477
|
+
"vue/block-lang": "off",
|
478
|
+
"vue/enforce-style-attribute": "off",
|
479
|
+
"vue/max-attributes-per-line": "off",
|
480
|
+
"vue/max-lines-per-block": "off",
|
481
|
+
"vue/max-props": "off",
|
482
|
+
"vue/max-template-depth": "off",
|
483
|
+
"vue/multi-word-component-names": "off",
|
484
|
+
"vue/multiline-html-element-content-newline": "off",
|
485
|
+
"vue/next-tick-style": "off",
|
486
|
+
"vue/new-line-between-multi-line-property": "off",
|
487
|
+
"vue/no-multiple-template-root": "off",
|
488
|
+
"vue/no-v-html": "off",
|
489
|
+
"vue/no-v-text": "off",
|
490
|
+
"vue/padding-line-between-tags": "off",
|
491
|
+
"vue/padding-lines-in-component-definition": "off",
|
492
|
+
"vue/require-default-prop": "off",
|
493
|
+
"vue/require-explicit-slots": "off",
|
494
|
+
"vue/require-expose": "off",
|
495
|
+
"vue/require-prop-comment": "off",
|
496
|
+
"vue/require-v-for-key": "off",
|
497
|
+
"vue/return-in-computed-property": "off",
|
498
|
+
"vue/singleline-html-element-content-newline": "off",
|
499
|
+
"vue/slot-name-casing": "off",
|
500
|
+
"vue/sort-keys": "off",
|
501
|
+
"vue/static-class-names-order": "off",
|
502
|
+
"vue/v-on-handler-style": "off",
|
503
|
+
"vue/valid-v-for": "off",
|
504
|
+
"vue/html-button-has-type": "off",
|
505
|
+
"vue/match-component-file-name": "off",
|
506
|
+
"vue/match-component-import-name": "off",
|
507
|
+
"vue/no-bare-strings-in-template": "off",
|
508
|
+
"vue/no-boolean-default": "off",
|
509
|
+
"vue/no-template-target-blank": "off",
|
510
|
+
"vue/no-undef-properties": "off",
|
511
|
+
"vue/no-unsupported-features": "off",
|
512
|
+
"vue/v-if-else-key": "off",
|
513
|
+
"vue/valid-v-is": "off"
|
514
|
+
};
|
716
515
|
|
717
516
|
//#endregion
|
718
517
|
//#region src/index.ts
|
719
|
-
|
720
|
-
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
518
|
+
const fusedProps = [
|
519
|
+
"name",
|
520
|
+
"languageOptions",
|
521
|
+
"linterOptions",
|
522
|
+
"processor",
|
523
|
+
"plugins",
|
524
|
+
"rules",
|
525
|
+
"settings"
|
526
|
+
];
|
527
|
+
const zin = (...[options = {}, ...userConfigs]) => {
|
528
|
+
const configFused = fusedProps.reduce((acc, key) => {
|
529
|
+
if (key in options) {
|
530
|
+
acc[key] = options[key];
|
531
|
+
delete options[key];
|
532
|
+
}
|
533
|
+
return acc;
|
534
|
+
}, {});
|
535
|
+
const vue = options.vue === false || typeof options.vue === "object" ? options.vue : {};
|
536
|
+
return antfu({
|
537
|
+
pnpm: true,
|
538
|
+
...options,
|
539
|
+
vue: vue && {
|
540
|
+
...vue,
|
541
|
+
overrides: {
|
542
|
+
...vue_default,
|
543
|
+
...vue.overrides
|
544
|
+
}
|
545
|
+
}
|
546
|
+
}, javascript_default, misc_default, stylistic_default, configFused, ...userConfigs);
|
725
547
|
};
|
548
|
+
var src_default = zin;
|
726
549
|
|
727
550
|
//#endregion
|
728
|
-
export { src_default as default };
|
551
|
+
export { src_default as default, zin };
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zinkawaii/eslint-config",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.
|
4
|
+
"version": "0.4.1",
|
5
5
|
"description": "Utakata na Shiawase",
|
6
6
|
"author": "KazariEX",
|
7
7
|
"license": "MIT",
|
@@ -15,12 +15,14 @@
|
|
15
15
|
"files": [
|
16
16
|
"dist"
|
17
17
|
],
|
18
|
+
"dependencies": {
|
19
|
+
"@antfu/eslint-config": "^5.2.0"
|
20
|
+
},
|
18
21
|
"devDependencies": {
|
19
|
-
"@antfu/eslint-config": "^5.2.0",
|
20
22
|
"@zinkawaii/tsconfig": "^0.0.2",
|
21
23
|
"bumpp": "^10.2.2",
|
22
24
|
"eslint": "^9.33.0",
|
23
|
-
"tsdown": "^0.
|
25
|
+
"tsdown": "^0.14.0"
|
24
26
|
},
|
25
27
|
"scripts": {
|
26
28
|
"build": "tsdown",
|