@zinkawaii/eslint-config 0.1.9 → 0.2.0

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