@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import antfu from "@antfu/eslint-config";
2
2
 
3
3
  //#region src/index.d.ts
4
- declare function zin(...[options, ...userConfigs]: Parameters<typeof antfu>): ReturnType<typeof antfu>;
4
+ declare const zin: typeof antfu;
5
5
  //#endregion
6
6
  export { zin as default, zin };
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
- "no-func-assign": "warn",
34
- "no-global-assign": "warn",
35
- "no-import-assign": "warn",
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
- "warn",
13
+ "error",
87
14
  "declaration",
88
15
  { allowArrowFunctions: true }
89
16
  ],
90
- "grouped-accessor-pairs": "off",
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": "warn",
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-lone-blocks": "warn",
132
- "no-lonely-if": "warn",
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-shadow": "off",
158
- "no-template-curly-in-string": "off",
159
- "no-ternary": "off",
160
- "no-throw-literal": "off",
161
- "no-undef-init": "warn",
162
- "no-undefined": "warn",
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
- "radix": "off",
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": "warn",
406
- "vue/no-async-in-computed-properties": "warn",
407
- "vue/no-child-content": "warn",
408
- "vue/no-computed-properties-in-data": "warn",
409
- "vue/no-deprecated-data-object-declaration": "warn",
410
- "vue/no-deprecated-delete-set": "warn",
411
- "vue/no-deprecated-destroyed-lifecycle": "warn",
412
- "vue/no-deprecated-dollar-listeners-api": "warn",
413
- "vue/no-deprecated-dollar-scopedslots-api": "warn",
414
- "vue/no-deprecated-events-api": "warn",
415
- "vue/no-deprecated-filter": "warn",
416
- "vue/no-deprecated-functional-template": "warn",
417
- "vue/no-deprecated-html-element-is": "warn",
418
- "vue/no-deprecated-inline-template": "warn",
419
- "vue/no-deprecated-props-default-this": "warn",
420
- "vue/no-deprecated-router-link-tag-prop": "warn",
421
- "vue/no-deprecated-scope-attribute": "warn",
422
- "vue/no-deprecated-slot-attribute": "warn",
423
- "vue/no-deprecated-slot-scope-attribute": "warn",
424
- "vue/no-deprecated-v-bind-sync": "warn",
425
- "vue/no-deprecated-v-is": "warn",
426
- "vue/no-deprecated-v-on-native-modifier": "warn",
427
- "vue/no-deprecated-v-on-number-modifiers": "warn",
428
- "vue/no-deprecated-vue-config-keycodes": "warn",
429
- "vue/no-dupe-keys": "warn",
430
- "vue/no-dupe-v-else-if": "warn",
431
- "vue/no-duplicate-attributes": "warn",
432
- "vue/no-export-in-script-setup": "warn",
433
- "vue/no-expose-after-await": "warn",
434
- "vue/no-lifecycle-after-await": "warn",
435
- "vue/no-mutating-props": "warn",
436
- "vue/no-parsing-error": "warn",
437
- "vue/no-ref-as-operand": "warn",
438
- "vue/no-reserved-component-names": "warn",
439
- "vue/no-reserved-keys": "warn",
440
- "vue/no-reserved-props": "warn",
441
- "vue/no-shared-component-data": "warn",
442
- "vue/no-side-effects-in-computed-properties": "warn",
443
- "vue/no-template-key": "warn",
444
- "vue/no-textarea-mustache": "warn",
445
- "vue/no-unused-components": "warn",
446
- "vue/no-unused-vars": "warn",
447
- "vue/no-use-computed-property-like-method": "warn",
448
- "vue/no-use-v-if-with-v-for": "warn",
449
- "vue/no-useless-template-attributes": "warn",
450
- "vue/no-v-for-template-key-on-child": "warn",
451
- "vue/no-v-text-v-html-on-component": "warn",
452
- "vue/no-watch-after-await": "warn",
453
- "vue/prefer-import-from-vue": "warn",
454
- "vue/require-component-is": "warn",
455
- "vue/require-prop-type-constructor": "warn",
456
- "vue/require-render-return": "warn",
457
- "vue/require-slots-as-functions": "warn",
458
- "vue/require-toggle-inside-transition": "warn",
459
- "vue/require-valid-default-prop": "warn",
460
- "vue/return-in-emits-validator": "warn",
461
- "vue/use-v-on-exact": "warn",
462
- "vue/valid-attribute-name": "warn",
463
- "vue/valid-define-emits": "warn",
464
- "vue/valid-define-props": "warn",
465
- "vue/valid-next-tick": "warn",
466
- "vue/valid-template-root": "warn",
467
- "vue/valid-v-bind": "warn",
468
- "vue/valid-v-cloak": "warn",
469
- "vue/valid-v-else-if": "warn",
470
- "vue/valid-v-else": "warn",
471
- "vue/valid-v-html": "warn",
472
- "vue/valid-v-if": "warn",
473
- "vue/valid-v-memo": "warn",
474
- "vue/valid-v-model": "warn",
475
- "vue/valid-v-on": "warn",
476
- "vue/valid-v-once": "warn",
477
- "vue/valid-v-pre": "warn",
478
- "vue/valid-v-show": "warn",
479
- "vue/valid-v-slot": "warn",
480
- "vue/valid-v-text": "warn",
481
- "vue/attribute-hyphenation": "warn",
482
- "vue/component-definition-name-casing": ["warn", "kebab-case"],
483
- "vue/first-attribute-linebreak": ["warn", {
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": ["warn", {
303
+ "vue/html-closing-bracket-newline": ["error", {
488
304
  singleline: "never",
489
305
  multiline: "always"
490
306
  }],
491
- "vue/html-end-tags": "warn",
492
- "vue/html-indent": ["warn", 4],
493
- "vue/html-quotes": ["warn", "double"],
494
- "vue/html-self-closing": ["warn", {
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": ["warn", "always"],
504
- "vue/no-multi-spaces": "warn",
505
- "vue/no-spaces-around-equal-signs-in-attribute": "warn",
506
- "vue/no-template-shadow": "warn",
507
- "vue/one-component-per-file": "warn",
508
- "vue/prop-name-casing": ["warn", "camelCase"],
509
- "vue/require-prop-types": "warn",
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
- "warn",
327
+ "error",
512
328
  "shorthand",
513
329
  { sameNameShorthand: "always" }
514
330
  ],
515
- "vue/v-on-event-hyphenation": ["warn", "always"],
516
- "vue/v-on-style": ["warn", "shorthand"],
517
- "vue/v-slot-style": ["warn", {
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": ["warn", { order: [
523
- "vue/LIST_RENDERING",
524
- "vue/CONDITIONALS",
525
- "vue/RENDER_MODIFIERS",
526
- "vue/OTHER_DIRECTIVES",
527
- "vue/SLOT",
528
- "vue/DEFINITION",
529
- "vue/UNIQUE",
530
- "vue/GLOBAL",
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
- "vue/TWO_WAY_BINDING",
537
- "vue/EVENTS",
538
- "vue/CONTENT"
352
+ "TWO_WAY_BINDING",
353
+ "EVENTS",
354
+ "CONTENT"
539
355
  ] }],
540
- "vue/no-lone-template": "warn",
541
- "vue/no-multiple-slot-args": "warn",
542
- "vue/order-in-components": "warn",
543
- "vue/this-in-template": ["warn", "never"],
544
- "vue/block-order": ["warn", { order: [
545
- "vue/script",
546
- "vue/template",
547
- "vue/style"
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": ["warn", {
365
+ "vue/block-tag-newline": ["error", {
550
366
  singleline: "always",
551
367
  multiline: "always"
552
368
  }],
553
- "vue/comma-dangle": ["warn", "never"],
554
- "vue/component-api-style": ["warn", ["script-setup", "composition"]],
369
+ "vue/comma-dangle": ["error", "never"],
370
+ "vue/component-api-style": ["error", ["script-setup", "composition"]],
555
371
  "vue/component-name-in-template-casing": [
556
- "warn",
372
+ "error",
557
373
  "kebab-case",
558
374
  { registeredComponentsOnly: false }
559
375
  ],
560
- "vue/component-options-name-casing": ["warn", "PascalCase"],
561
- "vue/custom-event-name-casing": ["warn", "camelCase"],
562
- "vue/define-emits-declaration": ["warn", "type-literal"],
563
- "vue/define-macros-order": ["warn", {
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
- "vue/defineOptions",
566
- "vue/defineProps",
567
- "vue/defineModel",
568
- "vue/defineEmits",
569
- "vue/defineSlots"
381
+ "defineOptions",
382
+ "defineProps",
383
+ "defineModel",
384
+ "defineEmits",
385
+ "defineSlots"
570
386
  ],
571
387
  defineExposeLast: true
572
388
  }],
573
- "vue/define-props-declaration": ["warn", "type-based"],
574
- "vue/html-comment-content-newline": ["warn", {
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": ["warn", "always"],
579
- "vue/html-comment-indent": ["warn", 4],
580
- "vue/no-deprecated-model-definition": "warn",
581
- "vue/no-duplicate-attr-inheritance": "warn",
582
- "vue/no-empty-component-block": "warn",
583
- "vue/no-import-compiler-macros": "warn",
584
- "vue/no-multiple-objects-in-class": "warn",
585
- "vue/no-potential-component-option-typo": ["warn", { presets: ["all"] }],
586
- "vue/no-required-prop-with-default": ["warn", { autofix: true }],
587
- "vue/no-static-inline-styles": "warn",
588
- "vue/no-this-in-before-route-enter": "warn",
589
- "vue/no-unused-refs": "warn",
590
- "vue/no-unused-emit-declarations": "warn",
591
- "vue/no-use-v-else-with-v-for": "warn",
592
- "vue/no-useless-mustaches": ["warn", {
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": ["warn", {
412
+ "vue/no-useless-v-bind": ["error", {
597
413
  ignoreIncludesComment: true,
598
414
  ignoreStringEscape: true
599
415
  }],
600
- "vue/padding-line-between-blocks": ["warn", "always"],
601
- "vue/prefer-define-options": "warn",
602
- "vue/prefer-prop-type-boolean-first": "warn",
603
- "vue/prefer-separate-static-class": "warn",
604
- "vue/prefer-use-template-ref": "warn",
605
- "vue/prefer-true-attribute-shorthand": ["warn", "always"],
606
- "vue/require-default-export": "warn",
607
- "vue/require-direct-export": "warn",
608
- "vue/require-emit-validator": "warn",
609
- "vue/require-explicit-emits": "warn",
610
- "vue/require-macro-variable-name": "warn",
611
- "vue/require-typed-object-prop": "warn",
612
- "vue/require-typed-ref": "warn",
613
- "vue/valid-define-options": "warn",
614
- "vue/v-for-delimiter-style": ["warn", "in"],
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
- function zin(...[options = {}, ...userConfigs]) {
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zinkawaii/eslint-config",
3
3
  "type": "module",
4
- "version": "0.4.0",
4
+ "version": "0.4.1",
5
5
  "description": "Utakata na Shiawase",
6
6
  "author": "KazariEX",
7
7
  "license": "MIT",