@zinkawaii/eslint-config 0.1.3 → 0.1.5
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 +15 -6
- package/package.json +9 -9
- package/dist/index.cjs +0 -524
package/dist/index.js
CHANGED
@@ -127,7 +127,6 @@ var standard_default = prefixary({
|
|
127
127
|
"max-nested-callbacks": "off",
|
128
128
|
"max-params": "off",
|
129
129
|
"max-statements": "off",
|
130
|
-
"multiline-comment-style": "warn",
|
131
130
|
"new-cap": "warn",
|
132
131
|
"no-alert": "warn",
|
133
132
|
"no-array-constructor": "warn",
|
@@ -210,7 +209,7 @@ var standard_default = prefixary({
|
|
210
209
|
"no-warning-comments": "off",
|
211
210
|
"object-shorthand": ["warn", "methods"],
|
212
211
|
"one-var": ["warn", {
|
213
|
-
|
212
|
+
initialized: "never"
|
214
213
|
}],
|
215
214
|
"operator-assignment": ["warn", "always"],
|
216
215
|
"prefer-arrow-callback": ["warn", {
|
@@ -251,6 +250,8 @@ var standard_default = prefixary({
|
|
251
250
|
|
252
251
|
// src/lib/stylistic.ts
|
253
252
|
var stylistic_default = prefixary("style", {
|
253
|
+
"array-bracket-newline": ["warn", "consistent"],
|
254
|
+
"array-bracket-spacing": ["warn", "never"],
|
254
255
|
"array-element-newline": ["warn", "consistent"],
|
255
256
|
"arrow-parens": ["warn", "always"],
|
256
257
|
"arrow-spacing": ["warn", {
|
@@ -271,9 +272,6 @@ var stylistic_default = prefixary("style", {
|
|
271
272
|
"function-call-argument-newline": ["warn", "consistent"],
|
272
273
|
"function-call-spacing": ["warn", "never"],
|
273
274
|
"function-paren-newline": ["warn", "consistent"],
|
274
|
-
"implicit-arrow-linebreak": ["warn", "beside"],
|
275
|
-
"indent": "off",
|
276
|
-
"indent-binary-ops": "off",
|
277
275
|
"generator-star-spacing": ["warn", {
|
278
276
|
named: {
|
279
277
|
before: false,
|
@@ -288,7 +286,9 @@ var stylistic_default = prefixary("style", {
|
|
288
286
|
after: true
|
289
287
|
}
|
290
288
|
}],
|
291
|
-
"
|
289
|
+
"implicit-arrow-linebreak": ["warn", "beside"],
|
290
|
+
"indent": "off",
|
291
|
+
"indent-binary-ops": "off",
|
292
292
|
"key-spacing": ["warn", {
|
293
293
|
beforeColon: false,
|
294
294
|
afterColon: true,
|
@@ -298,18 +298,24 @@ var stylistic_default = prefixary("style", {
|
|
298
298
|
before: true,
|
299
299
|
after: true
|
300
300
|
}],
|
301
|
+
"line-comment-position": "off",
|
301
302
|
"linebreak-style": ["warn", "unix"],
|
303
|
+
"lines-around-comment": "off",
|
302
304
|
"lines-between-class-members": ["warn", "always", {
|
303
305
|
exceptAfterSingleLine: true
|
304
306
|
}],
|
307
|
+
"max-len": "off",
|
308
|
+
"max-statements-per-line": "off",
|
305
309
|
"member-delimiter-style": ["warn", {
|
306
310
|
multiline: {
|
307
311
|
delimiter: "semi",
|
308
312
|
requireLast: true
|
309
313
|
}
|
310
314
|
}],
|
315
|
+
"multiline-comment-style": "off",
|
311
316
|
"multiline-ternary": "off",
|
312
317
|
"new-parens": "warn",
|
318
|
+
"newline-per-chained-call": "off",
|
313
319
|
"no-confusing-arrow": "warn",
|
314
320
|
"no-extra-parens": ["warn", "functions"],
|
315
321
|
"no-extra-semi": "warn",
|
@@ -331,8 +337,10 @@ var stylistic_default = prefixary("style", {
|
|
331
337
|
"object-property-newline": ["warn", {
|
332
338
|
allowAllPropertiesOnSameLine: true
|
333
339
|
}],
|
340
|
+
"one-var-declaration-per-line": "off",
|
334
341
|
"operator-linebreak": "off",
|
335
342
|
"padded-blocks": ["warn", "never"],
|
343
|
+
"padding-line-between-statements": "off",
|
336
344
|
"quote-props": ["warn", "as-needed"],
|
337
345
|
"quotes": ["warn", "double", {
|
338
346
|
allowTemplateLiterals: true
|
@@ -374,6 +382,7 @@ var stylistic_default = prefixary("style", {
|
|
374
382
|
"wrap-iife": ["warn", "inside", {
|
375
383
|
functionPrototypeMethods: true
|
376
384
|
}],
|
385
|
+
"wrap-regex": "off",
|
377
386
|
"yield-star-spacing": ["warn", "after"]
|
378
387
|
});
|
379
388
|
|
package/package.json
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zinkawaii/eslint-config",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.5",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "KazariEX",
|
6
6
|
"repository": "KazariEX/eslint-config",
|
7
7
|
"type": "module",
|
8
8
|
"files": [
|
9
|
-
"
|
10
|
-
"index.d.ts",
|
11
|
-
"LICENSE"
|
9
|
+
"index.d.ts"
|
12
10
|
],
|
13
11
|
"main": "./dist/index.js",
|
14
12
|
"types": "./index.d.ts",
|
15
13
|
"exports": {
|
16
14
|
".": {
|
15
|
+
"types": "./index.d.ts",
|
17
16
|
"import": "./dist/index.js",
|
18
|
-
"require": "./dist/index.cjs"
|
19
|
-
"types": "./index.d.ts"
|
17
|
+
"require": "./dist/index.cjs"
|
20
18
|
}
|
21
19
|
},
|
22
20
|
"devDependencies": {
|
23
|
-
"@antfu/eslint-config": "^2.
|
24
|
-
"
|
21
|
+
"@antfu/eslint-config": "^2.27.1",
|
22
|
+
"eslint": "^9.9.1",
|
23
|
+
"tsup": "^8.2.4"
|
25
24
|
},
|
26
25
|
"scripts": {
|
27
26
|
"build": "tsup",
|
28
|
-
"watch": "tsup --watch"
|
27
|
+
"watch": "tsup --watch",
|
28
|
+
"eslint": "eslint ."
|
29
29
|
}
|
30
30
|
}
|
package/dist/index.cjs
DELETED
@@ -1,524 +0,0 @@
|
|
1
|
-
var __defProp = Object.defineProperty;
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
5
|
-
var __export = (target, all) => {
|
6
|
-
for (var name in all)
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
8
|
-
};
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
11
|
-
for (let key of __getOwnPropNames(from))
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
14
|
-
}
|
15
|
-
return to;
|
16
|
-
};
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
18
|
-
|
19
|
-
// src/index.ts
|
20
|
-
var src_exports = {};
|
21
|
-
__export(src_exports, {
|
22
|
-
default: () => src_default
|
23
|
-
});
|
24
|
-
module.exports = __toCommonJS(src_exports);
|
25
|
-
|
26
|
-
// src/utils.ts
|
27
|
-
function prefixary(prefix, rules) {
|
28
|
-
return typeof prefix === "object" ? prefix : Object.fromEntries(
|
29
|
-
Object.entries(rules).map(([key, value]) => {
|
30
|
-
return [`${prefix}/${key}`, value];
|
31
|
-
})
|
32
|
-
);
|
33
|
-
}
|
34
|
-
|
35
|
-
// src/lib/patch.ts
|
36
|
-
var patch_default = prefixary({
|
37
|
-
"antfu/curly": "off",
|
38
|
-
"antfu/if-newline": "off",
|
39
|
-
"antfu/no-import-dist": "off",
|
40
|
-
"antfu/top-level-function": "off",
|
41
|
-
"node/prefer-global/process": "off",
|
42
|
-
"ts/no-unused-expressions": "off",
|
43
|
-
"unused-imports/no-unused-vars": "off"
|
44
|
-
});
|
45
|
-
|
46
|
-
// src/lib/recommended.ts
|
47
|
-
var recommended_default = prefixary({
|
48
|
-
"constructor-super": "warn",
|
49
|
-
"for-direction": "warn",
|
50
|
-
"getter-return": "warn",
|
51
|
-
"no-async-promise-executor": "warn",
|
52
|
-
"no-case-declarations": "warn",
|
53
|
-
"no-class-assign": "warn",
|
54
|
-
"no-compare-neg-zero": "warn",
|
55
|
-
"no-cond-assign": "off",
|
56
|
-
"no-const-assign": "warn",
|
57
|
-
"no-constant-binary-expression": "warn",
|
58
|
-
"no-constant-condition": ["warn", {
|
59
|
-
checkLoops: false
|
60
|
-
}],
|
61
|
-
"no-control-regex": "warn",
|
62
|
-
"no-debugger": "warn",
|
63
|
-
"no-delete-var": "warn",
|
64
|
-
"no-dupe-args": "warn",
|
65
|
-
"no-dupe-class-members": "warn",
|
66
|
-
"no-dupe-else-if": "warn",
|
67
|
-
"no-dupe-keys": "warn",
|
68
|
-
"no-duplicate-case": "warn",
|
69
|
-
"no-empty": "warn",
|
70
|
-
"no-empty-character-class": "warn",
|
71
|
-
"no-empty-static-block": "warn",
|
72
|
-
"no-empty-pattern": "warn",
|
73
|
-
"no-ex-assign": "warn",
|
74
|
-
"no-extra-boolean-cast": "warn",
|
75
|
-
"no-fallthrough": "off",
|
76
|
-
"no-func-assign": "warn",
|
77
|
-
"no-global-assign": "warn",
|
78
|
-
"no-import-assign": "warn",
|
79
|
-
"no-invalid-regexp": "warn",
|
80
|
-
"no-irregular-whitespace": "warn",
|
81
|
-
"no-loss-of-precision": "warn",
|
82
|
-
"no-misleading-character-class": "warn",
|
83
|
-
"no-new-native-nonconstructor": "warn",
|
84
|
-
"no-nonoctal-decimal-escape": "warn",
|
85
|
-
"no-obj-calls": "warn",
|
86
|
-
"no-octal": "warn",
|
87
|
-
"no-prototype-builtins": "warn",
|
88
|
-
"no-redeclare": "warn",
|
89
|
-
"no-regex-spaces": "warn",
|
90
|
-
"no-self-assign": "warn",
|
91
|
-
"no-setter-return": "warn",
|
92
|
-
"no-shadow-restricted-names": "warn",
|
93
|
-
"no-sparse-arrays": "warn",
|
94
|
-
"no-this-before-super": "warn",
|
95
|
-
"no-undef": "off",
|
96
|
-
"no-unexpected-multiline": "warn",
|
97
|
-
"no-unreachable": "warn",
|
98
|
-
"no-unsafe-finally": "warn",
|
99
|
-
"no-unsafe-negation": ["warn", {
|
100
|
-
enforceForOrderingRelations: true
|
101
|
-
}],
|
102
|
-
"no-unsafe-optional-chaining": "warn",
|
103
|
-
"no-unused-labels": "warn",
|
104
|
-
"no-unused-private-class-members": "warn",
|
105
|
-
"no-unused-vars": "off",
|
106
|
-
"no-useless-backreference": "warn",
|
107
|
-
"no-useless-catch": "warn",
|
108
|
-
"no-useless-escape": "warn",
|
109
|
-
"no-with": "warn",
|
110
|
-
"require-yield": "warn",
|
111
|
-
"use-isnan": ["warn", {
|
112
|
-
enforceForIndexOf: true
|
113
|
-
}],
|
114
|
-
"valid-typeof": "warn"
|
115
|
-
});
|
116
|
-
|
117
|
-
// src/lib/standard.ts
|
118
|
-
var standard_default = prefixary({
|
119
|
-
"accessor-pairs": "warn",
|
120
|
-
"array-callback-return": "warn",
|
121
|
-
"arrow-body-style": "off",
|
122
|
-
"block-scoped-var": "warn",
|
123
|
-
"camelcase": "off",
|
124
|
-
"capitalized-comments": "off",
|
125
|
-
"class-methods-use-this": "off",
|
126
|
-
"complexity": "off",
|
127
|
-
"consistent-return": "off",
|
128
|
-
"curly": ["warn", "multi-line"],
|
129
|
-
"default-case": "off",
|
130
|
-
"default-case-last": "warn",
|
131
|
-
"default-param-last": "warn",
|
132
|
-
"dot-notation": ["warn", {
|
133
|
-
allowPattern: "^[a-z]+(_[a-z]+)+$"
|
134
|
-
}],
|
135
|
-
"eqeqeq": ["warn", "smart"],
|
136
|
-
"func-name-matching": "off",
|
137
|
-
"func-names": "off",
|
138
|
-
"func-style": ["warn", "declaration", {
|
139
|
-
allowArrowFunctions: true
|
140
|
-
}],
|
141
|
-
"grouped-accessor-pairs": "off",
|
142
|
-
"guard-for-in": "off",
|
143
|
-
"id-denylist": "off",
|
144
|
-
"id-length": "off",
|
145
|
-
"id-match": "off",
|
146
|
-
"init-declarations": "off",
|
147
|
-
"logical-assignment-operators": "warn",
|
148
|
-
"max-classes-per-file": "off",
|
149
|
-
"max-depth": "off",
|
150
|
-
"max-lines": "off",
|
151
|
-
"max-lines-per-function": "off",
|
152
|
-
"max-nested-callbacks": "off",
|
153
|
-
"max-params": "off",
|
154
|
-
"max-statements": "off",
|
155
|
-
"multiline-comment-style": "warn",
|
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": ["warn", {
|
188
|
-
ignoreNonDeclaration: true
|
189
|
-
}],
|
190
|
-
"no-multi-str": "warn",
|
191
|
-
"no-negated-condition": "off",
|
192
|
-
"no-nested-ternary": "off",
|
193
|
-
"no-new": "warn",
|
194
|
-
"no-new-func": "warn",
|
195
|
-
"no-new-wrappers": "warn",
|
196
|
-
"no-object-constructor": "warn",
|
197
|
-
"no-octal-escape": "warn",
|
198
|
-
"no-param-reassign": "off",
|
199
|
-
"no-plusplus": "off",
|
200
|
-
"no-promise-executor-return": "warn",
|
201
|
-
"no-proto": "warn",
|
202
|
-
"no-restricted-exports": "off",
|
203
|
-
"no-restricted-globals": "off",
|
204
|
-
"no-restricted-imports": "off",
|
205
|
-
"no-restricted-properties": "off",
|
206
|
-
"no-restricted-syntax": "off",
|
207
|
-
"no-return-assign": "warn",
|
208
|
-
"no-script-url": "off",
|
209
|
-
"no-self-compare": "warn",
|
210
|
-
"no-sequences": "off",
|
211
|
-
"no-shadow": "off",
|
212
|
-
"no-template-curly-in-string": "off",
|
213
|
-
"no-ternary": "off",
|
214
|
-
"no-throw-literal": "off",
|
215
|
-
"no-undef-init": "warn",
|
216
|
-
"no-undefined": "warn",
|
217
|
-
"no-underscore-dangle": "off",
|
218
|
-
"no-unmodified-loop-condition": "warn",
|
219
|
-
"no-unneeded-ternary": ["warn", {
|
220
|
-
defaultAssignment: false
|
221
|
-
}],
|
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", {
|
238
|
-
uninitialized: "consecutive"
|
239
|
-
}],
|
240
|
-
"operator-assignment": ["warn", "always"],
|
241
|
-
"prefer-arrow-callback": ["warn", {
|
242
|
-
allowNamedFunctions: false,
|
243
|
-
allowUnboundThis: true
|
244
|
-
}],
|
245
|
-
"prefer-const": ["warn", {
|
246
|
-
destructuring: "all",
|
247
|
-
ignoreReadBeforeAssign: false
|
248
|
-
}],
|
249
|
-
"prefer-destructuring": "off",
|
250
|
-
"prefer-exponentiation-operator": "warn",
|
251
|
-
"prefer-named-capture-group": "off",
|
252
|
-
"prefer-numeric-literals": "warn",
|
253
|
-
"prefer-object-has-own": "warn",
|
254
|
-
"prefer-object-spread": "warn",
|
255
|
-
"prefer-promise-reject-errors": "warn",
|
256
|
-
"prefer-regex-literals": ["warn", {
|
257
|
-
disallowRedundantWrapping: true
|
258
|
-
}],
|
259
|
-
"prefer-rest-params": "warn",
|
260
|
-
"prefer-spread": "warn",
|
261
|
-
"prefer-template": "off",
|
262
|
-
"radix": "off",
|
263
|
-
"require-atomic-updates": "off",
|
264
|
-
"require-await": "off",
|
265
|
-
"require-unicode-regexp": "off",
|
266
|
-
"sort-imports": "warn",
|
267
|
-
"sort-keys": "off",
|
268
|
-
"sort-vars": "off",
|
269
|
-
"strict": "off",
|
270
|
-
"symbol-description": "off",
|
271
|
-
"vars-on-top": "warn",
|
272
|
-
"yoda": ["warn", "never", {
|
273
|
-
exceptRange: true
|
274
|
-
}]
|
275
|
-
});
|
276
|
-
|
277
|
-
// src/lib/stylistic.ts
|
278
|
-
var stylistic_default = prefixary("style", {
|
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
|
-
"implicit-arrow-linebreak": ["warn", "beside"],
|
300
|
-
"indent": "off",
|
301
|
-
"indent-binary-ops": "off",
|
302
|
-
"generator-star-spacing": ["warn", {
|
303
|
-
named: {
|
304
|
-
before: false,
|
305
|
-
after: true
|
306
|
-
},
|
307
|
-
anonymous: {
|
308
|
-
before: true,
|
309
|
-
after: false
|
310
|
-
},
|
311
|
-
method: {
|
312
|
-
before: true,
|
313
|
-
after: true
|
314
|
-
}
|
315
|
-
}],
|
316
|
-
"jsx-quotes": ["warn", "prefer-double"],
|
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
|
-
"linebreak-style": ["warn", "unix"],
|
327
|
-
"lines-between-class-members": ["warn", "always", {
|
328
|
-
exceptAfterSingleLine: true
|
329
|
-
}],
|
330
|
-
"member-delimiter-style": ["warn", {
|
331
|
-
multiline: {
|
332
|
-
delimiter: "semi",
|
333
|
-
requireLast: true
|
334
|
-
}
|
335
|
-
}],
|
336
|
-
"multiline-ternary": "off",
|
337
|
-
"new-parens": "warn",
|
338
|
-
"no-confusing-arrow": "warn",
|
339
|
-
"no-extra-parens": ["warn", "functions"],
|
340
|
-
"no-extra-semi": "warn",
|
341
|
-
"no-floating-decimal": "warn",
|
342
|
-
"no-mixed-operators": "off",
|
343
|
-
"no-mixed-spaces-and-tabs": "warn",
|
344
|
-
"no-multi-spaces": ["warn", {
|
345
|
-
ignoreEOLComments: true
|
346
|
-
}],
|
347
|
-
"no-multiple-empty-lines": ["warn", {
|
348
|
-
max: 1
|
349
|
-
}],
|
350
|
-
"no-tabs": "warn",
|
351
|
-
"no-trailing-spaces": "warn",
|
352
|
-
"no-whitespace-before-property": "warn",
|
353
|
-
"nonblock-statement-body-position": ["warn", "beside"],
|
354
|
-
"object-curly-newline": "warn",
|
355
|
-
"object-curly-spacing": ["warn", "always"],
|
356
|
-
"object-property-newline": ["warn", {
|
357
|
-
allowAllPropertiesOnSameLine: true
|
358
|
-
}],
|
359
|
-
"operator-linebreak": "off",
|
360
|
-
"padded-blocks": ["warn", "never"],
|
361
|
-
"quote-props": ["warn", "as-needed"],
|
362
|
-
"quotes": ["warn", "double", {
|
363
|
-
allowTemplateLiterals: true
|
364
|
-
}],
|
365
|
-
"rest-spread-spacing": ["warn", "never"],
|
366
|
-
"semi": ["warn", "always"],
|
367
|
-
"semi-spacing": ["warn", {
|
368
|
-
before: false,
|
369
|
-
after: true
|
370
|
-
}],
|
371
|
-
"semi-style": ["warn", "last"],
|
372
|
-
"space-before-blocks": ["warn", "always"],
|
373
|
-
"space-before-function-paren": ["warn", {
|
374
|
-
named: "never",
|
375
|
-
anonymous: "never",
|
376
|
-
asyncArrow: "always"
|
377
|
-
}],
|
378
|
-
"space-in-parens": ["warn", "never"],
|
379
|
-
"space-infix-ops": "warn",
|
380
|
-
"space-unary-ops": "warn",
|
381
|
-
"spaced-comment": "off",
|
382
|
-
"switch-colon-spacing": ["warn", {
|
383
|
-
before: false,
|
384
|
-
after: true
|
385
|
-
}],
|
386
|
-
"template-curly-spacing": ["warn", "never"],
|
387
|
-
"template-tag-spacing": ["warn", "never"],
|
388
|
-
"type-annotation-spacing": ["warn", {
|
389
|
-
before: false,
|
390
|
-
after: true,
|
391
|
-
overrides: {
|
392
|
-
arrow: {
|
393
|
-
before: true
|
394
|
-
}
|
395
|
-
}
|
396
|
-
}],
|
397
|
-
"type-generic-spacing": "warn",
|
398
|
-
"type-named-tuple-spacing": "warn",
|
399
|
-
"wrap-iife": ["warn", "inside", {
|
400
|
-
functionPrototypeMethods: true
|
401
|
-
}],
|
402
|
-
"yield-star-spacing": ["warn", "after"]
|
403
|
-
});
|
404
|
-
|
405
|
-
// src/lib/vue.ts
|
406
|
-
var vue_default = prefixary("vue", {
|
407
|
-
"attribute-hyphenation": "warn",
|
408
|
-
"attributes-order": ["warn", {
|
409
|
-
order: [
|
410
|
-
"LIST_RENDERING",
|
411
|
-
"CONDITIONALS",
|
412
|
-
"RENDER_MODIFIERS",
|
413
|
-
"OTHER_DIRECTIVES",
|
414
|
-
"SLOT",
|
415
|
-
"DEFINITION",
|
416
|
-
"UNIQUE",
|
417
|
-
"GLOBAL",
|
418
|
-
["ATTR_DYNAMIC", "ATTR_STATIC", "ATTR_SHORTHAND_BOOL"],
|
419
|
-
"TWO_WAY_BINDING",
|
420
|
-
"EVENTS",
|
421
|
-
"CONTENT"
|
422
|
-
]
|
423
|
-
}],
|
424
|
-
"comma-dangle": ["warn", "never"],
|
425
|
-
"component-definition-name-casing": ["warn", "kebab-case"],
|
426
|
-
"component-name-in-template-casing": ["warn", "kebab-case"],
|
427
|
-
"first-attribute-linebreak": ["warn", {
|
428
|
-
singleline: "beside",
|
429
|
-
multiline: "below"
|
430
|
-
}],
|
431
|
-
"html-closing-bracket-newline": ["warn", {
|
432
|
-
singleline: "never",
|
433
|
-
multiline: "always"
|
434
|
-
}],
|
435
|
-
"html-closing-bracket-spacing": "off",
|
436
|
-
"html-indent": "off",
|
437
|
-
"html-quotes": ["warn", "double"],
|
438
|
-
"html-self-closing": ["warn", {
|
439
|
-
html: {
|
440
|
-
void: "always",
|
441
|
-
normal: "never",
|
442
|
-
component: "always"
|
443
|
-
},
|
444
|
-
svg: "always",
|
445
|
-
math: "always"
|
446
|
-
}],
|
447
|
-
"multiline-html-element-content-newline": "off",
|
448
|
-
"mustache-interpolation-spacing": ["warn", "always"],
|
449
|
-
"no-dupe-keys": "warn",
|
450
|
-
"no-dupe-v-else-if": "warn",
|
451
|
-
"no-duplicate-attributes": "warn",
|
452
|
-
"no-export-in-script-setup": "warn",
|
453
|
-
"no-expose-after-await": "warn",
|
454
|
-
"no-lifecycle-after-await": "warn",
|
455
|
-
"no-lone-template": "warn",
|
456
|
-
"no-mutating-props": "warn",
|
457
|
-
"no-multiple-slot-args": "warn",
|
458
|
-
"no-multi-spaces": "warn",
|
459
|
-
"no-ref-as-operand": "warn",
|
460
|
-
"no-reserved-component-names": "warn",
|
461
|
-
"no-reserved-keys": "warn",
|
462
|
-
"no-reserved-props": "warn",
|
463
|
-
"no-side-effects-in-computed-properties": "warn",
|
464
|
-
"no-spaces-around-equal-signs-in-attribute": "warn",
|
465
|
-
"no-template-key": "warn",
|
466
|
-
"no-template-shadow": "warn",
|
467
|
-
"no-textarea-mustache": "warn",
|
468
|
-
"no-unused-vars": "warn",
|
469
|
-
"no-use-computed-property-like-method": "warn",
|
470
|
-
"no-use-v-if-with-v-for": "warn",
|
471
|
-
"no-useless-template-attributes": "warn",
|
472
|
-
"no-v-for-template-key-on-child": "warn",
|
473
|
-
"no-v-text-v-html-on-component": "warn",
|
474
|
-
"no-watch-after-await": "warn",
|
475
|
-
"one-component-per-file": "warn",
|
476
|
-
"operator-linebreak": "off",
|
477
|
-
"prefer-import-from-vue": "warn",
|
478
|
-
"prefer-template": "warn",
|
479
|
-
"prop-name-casing": ["warn", "camelCase"],
|
480
|
-
"require-component-is": "warn",
|
481
|
-
"require-explicit-emits": "warn",
|
482
|
-
"require-prop-type-constructor": "warn",
|
483
|
-
"require-render-return": "warn",
|
484
|
-
"require-slots-as-functions": "warn",
|
485
|
-
"require-toggle-inside-transition": "warn",
|
486
|
-
"require-valid-default-prop": "warn",
|
487
|
-
"require-v-for-key": "off",
|
488
|
-
"return-in-computed-property": "warn",
|
489
|
-
"return-in-emits-validator": "warn",
|
490
|
-
"singleline-html-element-content-newline": "off",
|
491
|
-
"this-in-template": ["warn", "never"],
|
492
|
-
"use-v-on-exact": "warn",
|
493
|
-
"valid-attribute-name": "warn",
|
494
|
-
"valid-define-emits": "warn",
|
495
|
-
"valid-define-props": "warn",
|
496
|
-
"valid-next-tick": "warn",
|
497
|
-
"valid-template-root": "off",
|
498
|
-
"valid-v-bind": "warn",
|
499
|
-
"valid-v-cloak": "warn",
|
500
|
-
"valid-v-else-if": "warn",
|
501
|
-
"valid-v-else": "warn",
|
502
|
-
"valid-v-for": "off",
|
503
|
-
"valid-v-html": "warn",
|
504
|
-
"valid-v-if": "warn",
|
505
|
-
"valid-v-memo": "warn",
|
506
|
-
"valid-v-model": "warn",
|
507
|
-
"valid-v-on": "warn",
|
508
|
-
"valid-v-once": "warn",
|
509
|
-
"valid-v-pre": "warn",
|
510
|
-
"valid-v-show": "warn",
|
511
|
-
"valid-v-slot": "warn",
|
512
|
-
"valid-v-text": "warn",
|
513
|
-
"v-bind-style": ["warn", "shorthand"],
|
514
|
-
"v-on-style": ["warn", "shorthand"]
|
515
|
-
});
|
516
|
-
|
517
|
-
// src/index.ts
|
518
|
-
var src_default = {
|
519
|
-
patch: patch_default,
|
520
|
-
recommended: recommended_default,
|
521
|
-
standard: standard_default,
|
522
|
-
stylistic: stylistic_default,
|
523
|
-
vue: vue_default
|
524
|
-
};
|