@zinkawaii/eslint-config 0.4.0 → 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 +1 -1
- package/dist/index.js +179 -378
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -4,215 +4,31 @@ import antfu from "@antfu/eslint-config";
|
|
4
4
|
var javascript_default = {
|
5
5
|
name: "zin/javascript/rules",
|
6
6
|
rules: {
|
7
|
-
"constructor-super": "warn",
|
8
|
-
"for-direction": "warn",
|
9
|
-
"getter-return": "warn",
|
10
|
-
"no-async-promise-executor": "warn",
|
11
|
-
"no-case-declarations": "warn",
|
12
|
-
"no-class-assign": "warn",
|
13
|
-
"no-compare-neg-zero": "warn",
|
14
7
|
"no-cond-assign": "off",
|
15
|
-
"no-const-assign": "warn",
|
16
|
-
"no-constant-binary-expression": "warn",
|
17
|
-
"no-constant-condition": ["warn", { checkLoops: false }],
|
18
|
-
"no-control-regex": "warn",
|
19
|
-
"no-debugger": "warn",
|
20
|
-
"no-delete-var": "warn",
|
21
|
-
"no-dupe-args": "warn",
|
22
|
-
"no-dupe-class-members": "off",
|
23
|
-
"no-dupe-else-if": "warn",
|
24
|
-
"no-dupe-keys": "warn",
|
25
|
-
"no-duplicate-case": "warn",
|
26
|
-
"no-empty": "warn",
|
27
|
-
"no-empty-character-class": "warn",
|
28
|
-
"no-empty-pattern": "warn",
|
29
|
-
"no-empty-static-block": "warn",
|
30
|
-
"no-ex-assign": "warn",
|
31
|
-
"no-extra-boolean-cast": "warn",
|
32
8
|
"no-fallthrough": "off",
|
33
|
-
"
|
34
|
-
"
|
35
|
-
"
|
36
|
-
"no-invalid-regexp": "warn",
|
37
|
-
"no-irregular-whitespace": "warn",
|
38
|
-
"no-loss-of-precision": "warn",
|
39
|
-
"no-misleading-character-class": "warn",
|
40
|
-
"no-new-native-nonconstructor": "warn",
|
41
|
-
"no-nonoctal-decimal-escape": "warn",
|
42
|
-
"no-obj-calls": "warn",
|
43
|
-
"no-octal": "warn",
|
44
|
-
"no-prototype-builtins": "warn",
|
45
|
-
"no-redeclare": "off",
|
46
|
-
"no-regex-spaces": "warn",
|
47
|
-
"no-self-assign": "warn",
|
48
|
-
"no-setter-return": "warn",
|
49
|
-
"no-shadow-restricted-names": "warn",
|
50
|
-
"no-sparse-arrays": "warn",
|
51
|
-
"no-this-before-super": "warn",
|
52
|
-
"no-undef": "off",
|
53
|
-
"no-unexpected-multiline": "warn",
|
54
|
-
"no-unreachable": "warn",
|
55
|
-
"no-unsafe-finally": "warn",
|
56
|
-
"no-unsafe-negation": ["warn", { enforceForOrderingRelations: true }],
|
57
|
-
"no-unsafe-optional-chaining": "warn",
|
58
|
-
"no-unused-labels": "warn",
|
59
|
-
"no-unused-private-class-members": "warn",
|
60
|
-
"no-unused-vars": "off",
|
61
|
-
"no-useless-backreference": "warn",
|
62
|
-
"no-useless-catch": "warn",
|
63
|
-
"no-useless-escape": "warn",
|
64
|
-
"no-with": "warn",
|
65
|
-
"require-yield": "warn",
|
66
|
-
"use-isnan": ["warn", { enforceForIndexOf: true }],
|
67
|
-
"valid-typeof": "warn",
|
68
|
-
"accessor-pairs": "warn",
|
69
|
-
"array-callback-return": "warn",
|
70
|
-
"arrow-body-style": "off",
|
71
|
-
"block-scoped-var": "warn",
|
72
|
-
"camelcase": "off",
|
73
|
-
"capitalized-comments": "off",
|
74
|
-
"class-methods-use-this": "off",
|
75
|
-
"complexity": "off",
|
76
|
-
"consistent-return": "off",
|
77
|
-
"curly": ["warn", "multi-line"],
|
78
|
-
"default-case": "off",
|
79
|
-
"default-case-last": "warn",
|
80
|
-
"default-param-last": "warn",
|
81
|
-
"dot-notation": ["warn", { allowPattern: "^[a-z]+(_[a-z]+)+$" }],
|
82
|
-
"eqeqeq": ["warn", "smart"],
|
83
|
-
"func-name-matching": "off",
|
84
|
-
"func-names": "off",
|
9
|
+
"require-yield": "error",
|
10
|
+
"curly": ["error", "multi-line"],
|
11
|
+
"default-param-last": "error",
|
85
12
|
"func-style": [
|
86
|
-
"
|
13
|
+
"error",
|
87
14
|
"declaration",
|
88
15
|
{ allowArrowFunctions: true }
|
89
16
|
],
|
90
|
-
"
|
91
|
-
"guard-for-in": "off",
|
92
|
-
"id-denylist": "off",
|
93
|
-
"id-length": "off",
|
94
|
-
"id-match": "off",
|
95
|
-
"init-declarations": "off",
|
96
|
-
"logical-assignment-operators": "warn",
|
97
|
-
"max-classes-per-file": "off",
|
98
|
-
"max-depth": "off",
|
99
|
-
"max-lines": "off",
|
100
|
-
"max-lines-per-function": "off",
|
101
|
-
"max-nested-callbacks": "off",
|
102
|
-
"max-params": "off",
|
103
|
-
"max-statements": "off",
|
104
|
-
"new-cap": "warn",
|
105
|
-
"no-alert": "warn",
|
106
|
-
"no-array-constructor": "warn",
|
107
|
-
"no-await-in-loop": "off",
|
108
|
-
"no-bitwise": "off",
|
109
|
-
"no-caller": "off",
|
17
|
+
"logical-assignment-operators": "error",
|
110
18
|
"no-console": "off",
|
111
|
-
"no-constructor-return": "
|
112
|
-
"no-continue": "off",
|
113
|
-
"no-div-regex": "off",
|
114
|
-
"no-duplicate-imports": "warn",
|
115
|
-
"no-else-return": "off",
|
116
|
-
"no-empty-function": "off",
|
117
|
-
"no-eq-null": "off",
|
118
|
-
"no-eval": "warn",
|
119
|
-
"no-extend-native": "warn",
|
120
|
-
"no-extra-bind": "warn",
|
121
|
-
"no-extra-label": "off",
|
122
|
-
"no-implicit-coercion": "off",
|
123
|
-
"no-implicit-globals": "off",
|
124
|
-
"no-implied-eval": "warn",
|
125
|
-
"no-inline-comments": "off",
|
126
|
-
"no-inner-declarations": "off",
|
127
|
-
"no-invalid-this": "off",
|
128
|
-
"no-iterator": "warn",
|
129
|
-
"no-label-var": "off",
|
19
|
+
"no-constructor-return": "error",
|
130
20
|
"no-labels": "off",
|
131
|
-
"no-
|
132
|
-
"no-
|
133
|
-
"no-loop-func": "warn",
|
134
|
-
"no-magic-numbers": "off",
|
135
|
-
"no-multi-assign": "off",
|
136
|
-
"no-multi-str": "warn",
|
137
|
-
"no-negated-condition": "off",
|
138
|
-
"no-nested-ternary": "off",
|
139
|
-
"no-new": "warn",
|
140
|
-
"no-new-func": "warn",
|
141
|
-
"no-new-wrappers": "warn",
|
142
|
-
"no-object-constructor": "warn",
|
143
|
-
"no-octal-escape": "warn",
|
144
|
-
"no-param-reassign": "off",
|
145
|
-
"no-plusplus": "off",
|
146
|
-
"no-promise-executor-return": "warn",
|
147
|
-
"no-proto": "warn",
|
148
|
-
"no-restricted-exports": "off",
|
149
|
-
"no-restricted-globals": "off",
|
150
|
-
"no-restricted-imports": "off",
|
151
|
-
"no-restricted-properties": "off",
|
152
|
-
"no-restricted-syntax": "off",
|
153
|
-
"no-return-assign": "warn",
|
154
|
-
"no-script-url": "off",
|
155
|
-
"no-self-compare": "warn",
|
21
|
+
"no-lonely-if": "error",
|
22
|
+
"no-loop-func": "error",
|
156
23
|
"no-sequences": "off",
|
157
|
-
"no-
|
158
|
-
"no-
|
159
|
-
"
|
160
|
-
"
|
161
|
-
"
|
162
|
-
"
|
163
|
-
"no-underscore-dangle": "off",
|
164
|
-
"no-unmodified-loop-condition": "warn",
|
165
|
-
"no-unneeded-ternary": ["warn", { defaultAssignment: false }],
|
166
|
-
"no-unreachable-loop": "warn",
|
167
|
-
"no-unused-expressions": "off",
|
168
|
-
"no-use-before-define": "off",
|
169
|
-
"no-useless-assignment": "off",
|
170
|
-
"no-useless-call": "warn",
|
171
|
-
"no-useless-computed-key": "warn",
|
172
|
-
"no-useless-concat": "warn",
|
173
|
-
"no-useless-constructor": "warn",
|
174
|
-
"no-useless-rename": "warn",
|
175
|
-
"no-useless-return": "warn",
|
176
|
-
"no-var": "warn",
|
177
|
-
"no-void": "off",
|
178
|
-
"no-warning-comments": "off",
|
179
|
-
"object-shorthand": ["warn", "methods"],
|
180
|
-
"one-var": ["warn", { initialized: "never" }],
|
181
|
-
"operator-assignment": ["warn", "always"],
|
182
|
-
"prefer-arrow-callback": ["warn", {
|
183
|
-
allowNamedFunctions: false,
|
184
|
-
allowUnboundThis: true
|
185
|
-
}],
|
186
|
-
"prefer-const": ["warn", {
|
187
|
-
destructuring: "all",
|
188
|
-
ignoreReadBeforeAssign: false
|
189
|
-
}],
|
190
|
-
"prefer-destructuring": "off",
|
191
|
-
"prefer-exponentiation-operator": "warn",
|
192
|
-
"prefer-named-capture-group": "off",
|
193
|
-
"prefer-numeric-literals": "warn",
|
194
|
-
"prefer-object-has-own": "warn",
|
195
|
-
"prefer-object-spread": "warn",
|
196
|
-
"prefer-promise-reject-errors": "warn",
|
197
|
-
"prefer-regex-literals": ["warn", { disallowRedundantWrapping: true }],
|
198
|
-
"prefer-rest-params": "warn",
|
199
|
-
"prefer-spread": "warn",
|
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",
|
200
30
|
"prefer-template": "off",
|
201
|
-
"
|
202
|
-
"require-atomic-updates": "off",
|
203
|
-
"require-await": "off",
|
204
|
-
"require-unicode-regexp": "off",
|
205
|
-
"sort-imports": "off",
|
206
|
-
"sort-keys": "off",
|
207
|
-
"sort-vars": "off",
|
208
|
-
"strict": "off",
|
209
|
-
"symbol-description": "off",
|
210
|
-
"vars-on-top": "warn",
|
211
|
-
"yoda": [
|
212
|
-
"warn",
|
213
|
-
"never",
|
214
|
-
{ exceptRange: true }
|
215
|
-
]
|
31
|
+
"symbol-description": "off"
|
216
32
|
}
|
217
33
|
};
|
218
34
|
|
@@ -402,96 +218,96 @@ var stylistic_default = {
|
|
402
218
|
//#endregion
|
403
219
|
//#region src/rules/vue.ts
|
404
220
|
var vue_default = {
|
405
|
-
"vue/no-arrow-functions-in-watch": "
|
406
|
-
"vue/no-async-in-computed-properties": "
|
407
|
-
"vue/no-child-content": "
|
408
|
-
"vue/no-computed-properties-in-data": "
|
409
|
-
"vue/no-deprecated-data-object-declaration": "
|
410
|
-
"vue/no-deprecated-delete-set": "
|
411
|
-
"vue/no-deprecated-destroyed-lifecycle": "
|
412
|
-
"vue/no-deprecated-dollar-listeners-api": "
|
413
|
-
"vue/no-deprecated-dollar-scopedslots-api": "
|
414
|
-
"vue/no-deprecated-events-api": "
|
415
|
-
"vue/no-deprecated-filter": "
|
416
|
-
"vue/no-deprecated-functional-template": "
|
417
|
-
"vue/no-deprecated-html-element-is": "
|
418
|
-
"vue/no-deprecated-inline-template": "
|
419
|
-
"vue/no-deprecated-props-default-this": "
|
420
|
-
"vue/no-deprecated-router-link-tag-prop": "
|
421
|
-
"vue/no-deprecated-scope-attribute": "
|
422
|
-
"vue/no-deprecated-slot-attribute": "
|
423
|
-
"vue/no-deprecated-slot-scope-attribute": "
|
424
|
-
"vue/no-deprecated-v-bind-sync": "
|
425
|
-
"vue/no-deprecated-v-is": "
|
426
|
-
"vue/no-deprecated-v-on-native-modifier": "
|
427
|
-
"vue/no-deprecated-v-on-number-modifiers": "
|
428
|
-
"vue/no-deprecated-vue-config-keycodes": "
|
429
|
-
"vue/no-dupe-keys": "
|
430
|
-
"vue/no-dupe-v-else-if": "
|
431
|
-
"vue/no-duplicate-attributes": "
|
432
|
-
"vue/no-export-in-script-setup": "
|
433
|
-
"vue/no-expose-after-await": "
|
434
|
-
"vue/no-lifecycle-after-await": "
|
435
|
-
"vue/no-mutating-props": "
|
436
|
-
"vue/no-parsing-error": "
|
437
|
-
"vue/no-ref-as-operand": "
|
438
|
-
"vue/no-reserved-component-names": "
|
439
|
-
"vue/no-reserved-keys": "
|
440
|
-
"vue/no-reserved-props": "
|
441
|
-
"vue/no-shared-component-data": "
|
442
|
-
"vue/no-side-effects-in-computed-properties": "
|
443
|
-
"vue/no-template-key": "
|
444
|
-
"vue/no-textarea-mustache": "
|
445
|
-
"vue/no-unused-components": "
|
446
|
-
"vue/no-unused-vars": "
|
447
|
-
"vue/no-use-computed-property-like-method": "
|
448
|
-
"vue/no-use-v-if-with-v-for": "
|
449
|
-
"vue/no-useless-template-attributes": "
|
450
|
-
"vue/no-v-for-template-key-on-child": "
|
451
|
-
"vue/no-v-text-v-html-on-component": "
|
452
|
-
"vue/no-watch-after-await": "
|
453
|
-
"vue/prefer-import-from-vue": "
|
454
|
-
"vue/require-component-is": "
|
455
|
-
"vue/require-prop-type-constructor": "
|
456
|
-
"vue/require-render-return": "
|
457
|
-
"vue/require-slots-as-functions": "
|
458
|
-
"vue/require-toggle-inside-transition": "
|
459
|
-
"vue/require-valid-default-prop": "
|
460
|
-
"vue/return-in-emits-validator": "
|
461
|
-
"vue/use-v-on-exact": "
|
462
|
-
"vue/valid-attribute-name": "
|
463
|
-
"vue/valid-define-emits": "
|
464
|
-
"vue/valid-define-props": "
|
465
|
-
"vue/valid-next-tick": "
|
466
|
-
"vue/valid-template-root": "
|
467
|
-
"vue/valid-v-bind": "
|
468
|
-
"vue/valid-v-cloak": "
|
469
|
-
"vue/valid-v-else-if": "
|
470
|
-
"vue/valid-v-else": "
|
471
|
-
"vue/valid-v-html": "
|
472
|
-
"vue/valid-v-if": "
|
473
|
-
"vue/valid-v-memo": "
|
474
|
-
"vue/valid-v-model": "
|
475
|
-
"vue/valid-v-on": "
|
476
|
-
"vue/valid-v-once": "
|
477
|
-
"vue/valid-v-pre": "
|
478
|
-
"vue/valid-v-show": "
|
479
|
-
"vue/valid-v-slot": "
|
480
|
-
"vue/valid-v-text": "
|
481
|
-
"vue/attribute-hyphenation": "
|
482
|
-
"vue/component-definition-name-casing": ["
|
483
|
-
"vue/first-attribute-linebreak": ["
|
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", {
|
484
300
|
singleline: "beside",
|
485
301
|
multiline: "below"
|
486
302
|
}],
|
487
|
-
"vue/html-closing-bracket-newline": ["
|
303
|
+
"vue/html-closing-bracket-newline": ["error", {
|
488
304
|
singleline: "never",
|
489
305
|
multiline: "always"
|
490
306
|
}],
|
491
|
-
"vue/html-end-tags": "
|
492
|
-
"vue/html-indent": ["
|
493
|
-
"vue/html-quotes": ["
|
494
|
-
"vue/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", {
|
495
311
|
html: {
|
496
312
|
void: "always",
|
497
313
|
normal: "never",
|
@@ -500,134 +316,119 @@ var vue_default = {
|
|
500
316
|
svg: "always",
|
501
317
|
math: "always"
|
502
318
|
}],
|
503
|
-
"vue/mustache-interpolation-spacing": ["
|
504
|
-
"vue/no-multi-spaces": "
|
505
|
-
"vue/no-spaces-around-equal-signs-in-attribute": "
|
506
|
-
"vue/no-template-shadow": "
|
507
|
-
"vue/one-component-per-file": "
|
508
|
-
"vue/prop-name-casing": ["
|
509
|
-
"vue/require-prop-types": "
|
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",
|
510
326
|
"vue/v-bind-style": [
|
511
|
-
"
|
327
|
+
"error",
|
512
328
|
"shorthand",
|
513
329
|
{ sameNameShorthand: "always" }
|
514
330
|
],
|
515
|
-
"vue/v-on-event-hyphenation": ["
|
516
|
-
"vue/v-on-style": ["
|
517
|
-
"vue/v-slot-style": ["
|
331
|
+
"vue/v-on-event-hyphenation": ["error", "always"],
|
332
|
+
"vue/v-on-style": ["error", "shorthand"],
|
333
|
+
"vue/v-slot-style": ["error", {
|
518
334
|
atComponent: "v-slot",
|
519
335
|
default: "shorthand",
|
520
336
|
named: "shorthand"
|
521
337
|
}],
|
522
|
-
"vue/attributes-order": ["
|
523
|
-
"
|
524
|
-
"
|
525
|
-
"
|
526
|
-
"
|
527
|
-
"
|
528
|
-
"
|
529
|
-
"
|
530
|
-
"
|
338
|
+
"vue/attributes-order": ["error", { order: [
|
339
|
+
"LIST_RENDERING",
|
340
|
+
"CONDITIONALS",
|
341
|
+
"RENDER_MODIFIERS",
|
342
|
+
"OTHER_DIRECTIVES",
|
343
|
+
"SLOT",
|
344
|
+
"DEFINITION",
|
345
|
+
"UNIQUE",
|
346
|
+
"GLOBAL",
|
531
347
|
[
|
532
348
|
"ATTR_DYNAMIC",
|
533
349
|
"ATTR_STATIC",
|
534
350
|
"ATTR_SHORTHAND_BOOL"
|
535
351
|
],
|
536
|
-
"
|
537
|
-
"
|
538
|
-
"
|
352
|
+
"TWO_WAY_BINDING",
|
353
|
+
"EVENTS",
|
354
|
+
"CONTENT"
|
539
355
|
] }],
|
540
|
-
"vue/no-lone-template": "
|
541
|
-
"vue/no-multiple-slot-args": "
|
542
|
-
"vue/order-in-components": "
|
543
|
-
"vue/this-in-template": ["
|
544
|
-
"vue/block-order": ["
|
545
|
-
"
|
546
|
-
"
|
547
|
-
"
|
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: [
|
361
|
+
"script",
|
362
|
+
"template",
|
363
|
+
"style"
|
548
364
|
] }],
|
549
|
-
"vue/block-tag-newline": ["
|
365
|
+
"vue/block-tag-newline": ["error", {
|
550
366
|
singleline: "always",
|
551
367
|
multiline: "always"
|
552
368
|
}],
|
553
|
-
"vue/comma-dangle": ["
|
554
|
-
"vue/component-api-style": ["
|
369
|
+
"vue/comma-dangle": ["error", "never"],
|
370
|
+
"vue/component-api-style": ["error", ["script-setup", "composition"]],
|
555
371
|
"vue/component-name-in-template-casing": [
|
556
|
-
"
|
372
|
+
"error",
|
557
373
|
"kebab-case",
|
558
374
|
{ registeredComponentsOnly: false }
|
559
375
|
],
|
560
|
-
"vue/component-options-name-casing": ["
|
561
|
-
"vue/custom-event-name-casing": ["
|
562
|
-
"vue/define-emits-declaration": ["
|
563
|
-
"vue/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", {
|
564
380
|
order: [
|
565
|
-
"
|
566
|
-
"
|
567
|
-
"
|
568
|
-
"
|
569
|
-
"
|
381
|
+
"defineOptions",
|
382
|
+
"defineProps",
|
383
|
+
"defineModel",
|
384
|
+
"defineEmits",
|
385
|
+
"defineSlots"
|
570
386
|
],
|
571
387
|
defineExposeLast: true
|
572
388
|
}],
|
573
|
-
"vue/define-props-declaration": ["
|
574
|
-
"vue/html-comment-content-newline": ["
|
389
|
+
"vue/define-props-declaration": ["error", "type-based"],
|
390
|
+
"vue/html-comment-content-newline": ["error", {
|
575
391
|
singleline: "never",
|
576
392
|
multiline: "always"
|
577
393
|
}],
|
578
|
-
"vue/html-comment-content-spacing": ["
|
579
|
-
"vue/html-comment-indent": ["
|
580
|
-
"vue/no-deprecated-model-definition": "
|
581
|
-
"vue/no-duplicate-attr-inheritance": "
|
582
|
-
"vue/no-empty-component-block": "
|
583
|
-
"vue/no-import-compiler-macros": "
|
584
|
-
"vue/no-multiple-objects-in-class": "
|
585
|
-
"vue/no-potential-component-option-typo": ["
|
586
|
-
"vue/no-required-prop-with-default": ["
|
587
|
-
"vue/no-static-inline-styles": "
|
588
|
-
"vue/no-this-in-before-route-enter": "
|
589
|
-
"vue/no-unused-refs": "
|
590
|
-
"vue/no-unused-emit-declarations": "
|
591
|
-
"vue/no-use-v-else-with-v-for": "
|
592
|
-
"vue/no-useless-mustaches": ["
|
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", {
|
593
409
|
ignoreIncludesComment: true,
|
594
410
|
ignoreStringEscape: true
|
595
411
|
}],
|
596
|
-
"vue/no-useless-v-bind": ["
|
412
|
+
"vue/no-useless-v-bind": ["error", {
|
597
413
|
ignoreIncludesComment: true,
|
598
414
|
ignoreStringEscape: true
|
599
415
|
}],
|
600
|
-
"vue/padding-line-between-blocks": ["
|
601
|
-
"vue/prefer-define-options": "
|
602
|
-
"vue/prefer-prop-type-boolean-first": "
|
603
|
-
"vue/prefer-separate-static-class": "
|
604
|
-
"vue/prefer-use-template-ref": "
|
605
|
-
"vue/prefer-true-attribute-shorthand": ["
|
606
|
-
"vue/require-default-export": "
|
607
|
-
"vue/require-direct-export": "
|
608
|
-
"vue/require-emit-validator": "
|
609
|
-
"vue/require-explicit-emits": "
|
610
|
-
"vue/require-macro-variable-name": "
|
611
|
-
"vue/require-typed-object-prop": "
|
612
|
-
"vue/require-typed-ref": "
|
613
|
-
"vue/valid-define-options": "
|
614
|
-
"vue/v-for-delimiter-style": ["
|
615
|
-
...Object.fromEntries([
|
616
|
-
"camelcase",
|
617
|
-
"dot-notation",
|
618
|
-
"eqeqeq",
|
619
|
-
"no-console",
|
620
|
-
"no-constant-condition",
|
621
|
-
"no-empty-pattern",
|
622
|
-
"no-implicit-coercion",
|
623
|
-
"no-irregular-whitespace",
|
624
|
-
"no-loss-of-precision",
|
625
|
-
"no-restricted-syntax",
|
626
|
-
"no-sparse-arrays",
|
627
|
-
"no-useless-concat",
|
628
|
-
"object-shorthand",
|
629
|
-
"prefer-template"
|
630
|
-
].map((rule) => [`vue/${rule}`, javascript_default.rules[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]])),
|
631
432
|
...Object.fromEntries([
|
632
433
|
"array-bracket-newline",
|
633
434
|
"array-bracket-spacing",
|
@@ -723,7 +524,7 @@ const fusedProps = [
|
|
723
524
|
"rules",
|
724
525
|
"settings"
|
725
526
|
];
|
726
|
-
|
527
|
+
const zin = (...[options = {}, ...userConfigs]) => {
|
727
528
|
const configFused = fusedProps.reduce((acc, key) => {
|
728
529
|
if (key in options) {
|
729
530
|
acc[key] = options[key];
|
@@ -743,7 +544,7 @@ function zin(...[options = {}, ...userConfigs]) {
|
|
743
544
|
}
|
744
545
|
}
|
745
546
|
}, javascript_default, misc_default, stylistic_default, configFused, ...userConfigs);
|
746
|
-
}
|
547
|
+
};
|
747
548
|
var src_default = zin;
|
748
549
|
|
749
550
|
//#endregion
|