@zinkawaii/eslint-config 0.2.1 → 0.2.3

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