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