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