@zinkawaii/eslint-config 0.4.2 → 0.4.4
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.mjs +21 -13
- package/package.json +11 -8
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import antfu from "@antfu/eslint-config";
|
|
2
|
-
|
|
3
2
|
//#region src/configs/javascript.ts
|
|
4
3
|
var javascript_default = {
|
|
5
4
|
name: "zin/javascript/rules",
|
|
@@ -31,7 +30,6 @@ var javascript_default = {
|
|
|
31
30
|
"symbol-description": "off"
|
|
32
31
|
}
|
|
33
32
|
};
|
|
34
|
-
|
|
35
33
|
//#endregion
|
|
36
34
|
//#region src/configs/misc.ts
|
|
37
35
|
var misc_default = {
|
|
@@ -41,6 +39,7 @@ var misc_default = {
|
|
|
41
39
|
"antfu/if-newline": "off",
|
|
42
40
|
"antfu/no-top-level-await": "off",
|
|
43
41
|
"antfu/top-level-function": "off",
|
|
42
|
+
"e18e/prefer-static-regex": "off",
|
|
44
43
|
"import/consistent-type-specifier-style": "off",
|
|
45
44
|
"node/prefer-global/process": "off",
|
|
46
45
|
"perfectionist/sort-imports": ["warn", {
|
|
@@ -77,7 +76,6 @@ var misc_default = {
|
|
|
77
76
|
"yaml/quotes": ["warn", { prefer: "double" }]
|
|
78
77
|
}
|
|
79
78
|
};
|
|
80
|
-
|
|
81
79
|
//#endregion
|
|
82
80
|
//#region src/configs/stylistic.ts
|
|
83
81
|
var stylistic_default = {
|
|
@@ -107,7 +105,11 @@ var stylistic_default = {
|
|
|
107
105
|
}],
|
|
108
106
|
"style/implicit-arrow-linebreak": "warn",
|
|
109
107
|
"style/indent-binary-ops": "off",
|
|
110
|
-
"style/indent":
|
|
108
|
+
"style/indent": [
|
|
109
|
+
"warn",
|
|
110
|
+
2,
|
|
111
|
+
{ SwitchCase: 1 }
|
|
112
|
+
],
|
|
111
113
|
"style/key-spacing": "warn",
|
|
112
114
|
"style/keyword-spacing": "warn",
|
|
113
115
|
"style/line-comment-position": "off",
|
|
@@ -181,7 +183,6 @@ var stylistic_default = {
|
|
|
181
183
|
"style/yield-star-spacing": "warn"
|
|
182
184
|
}
|
|
183
185
|
};
|
|
184
|
-
|
|
185
186
|
//#endregion
|
|
186
187
|
//#region src/rules/vue.ts
|
|
187
188
|
var vue_default = {
|
|
@@ -272,7 +273,7 @@ var vue_default = {
|
|
|
272
273
|
multiline: "always"
|
|
273
274
|
}],
|
|
274
275
|
"vue/html-end-tags": "error",
|
|
275
|
-
"vue/html-indent": ["error",
|
|
276
|
+
"vue/html-indent": ["error", 2],
|
|
276
277
|
"vue/html-quotes": ["error", "double"],
|
|
277
278
|
"vue/html-self-closing": ["error", {
|
|
278
279
|
html: {
|
|
@@ -359,7 +360,7 @@ var vue_default = {
|
|
|
359
360
|
multiline: "always"
|
|
360
361
|
}],
|
|
361
362
|
"vue/html-comment-content-spacing": ["error", "always"],
|
|
362
|
-
"vue/html-comment-indent": ["error",
|
|
363
|
+
"vue/html-comment-indent": ["error", 2],
|
|
363
364
|
"vue/no-deprecated-model-definition": "error",
|
|
364
365
|
"vue/no-duplicate-attr-inheritance": "error",
|
|
365
366
|
"vue/no-empty-component-block": "error",
|
|
@@ -393,6 +394,14 @@ var vue_default = {
|
|
|
393
394
|
"vue/require-macro-variable-name": "error",
|
|
394
395
|
"vue/require-typed-object-prop": "error",
|
|
395
396
|
"vue/require-typed-ref": "error",
|
|
397
|
+
"vue/script-indent": [
|
|
398
|
+
"warn",
|
|
399
|
+
2,
|
|
400
|
+
{
|
|
401
|
+
baseIndent: 1,
|
|
402
|
+
switchCase: 1
|
|
403
|
+
}
|
|
404
|
+
],
|
|
396
405
|
"vue/valid-define-options": "error",
|
|
397
406
|
"vue/v-for-delimiter-style": ["error", "in"],
|
|
398
407
|
...Object.fromEntries(["no-useless-concat", "prefer-template"].map((rule) => [`vue/${rule}`, javascript_default.rules[rule]])),
|
|
@@ -429,7 +438,6 @@ var vue_default = {
|
|
|
429
438
|
"vue/no-setup-props-reactivity-loss": "off",
|
|
430
439
|
"vue/no-unused-properties": "off",
|
|
431
440
|
"vue/html-closing-bracket-spacing": "off",
|
|
432
|
-
"vue/script-indent": "off",
|
|
433
441
|
"vue/no-restricted-block": "off",
|
|
434
442
|
"vue/no-restricted-call-after-await": "off",
|
|
435
443
|
"vue/no-restricted-class": "off",
|
|
@@ -479,7 +487,6 @@ var vue_default = {
|
|
|
479
487
|
"vue/v-if-else-key": "off",
|
|
480
488
|
"vue/valid-v-is": "off"
|
|
481
489
|
};
|
|
482
|
-
|
|
483
490
|
//#endregion
|
|
484
491
|
//#region src/index.ts
|
|
485
492
|
const fusedProps = [
|
|
@@ -510,9 +517,10 @@ const zin = (options = {}, ...userConfigs) => {
|
|
|
510
517
|
...vue.overrides
|
|
511
518
|
}
|
|
512
519
|
}
|
|
513
|
-
}, javascript_default, misc_default, stylistic_default, configFused, ...userConfigs)
|
|
520
|
+
}, javascript_default, misc_default, stylistic_default, configFused, ...userConfigs).append({
|
|
521
|
+
files: ["*.vue"],
|
|
522
|
+
rules: { "style/indent": "off" }
|
|
523
|
+
});
|
|
514
524
|
};
|
|
515
|
-
var src_default = zin;
|
|
516
|
-
|
|
517
525
|
//#endregion
|
|
518
|
-
export {
|
|
526
|
+
export { zin as default, zin };
|
package/package.json
CHANGED
|
@@ -1,27 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinkawaii/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.4",
|
|
5
5
|
"description": "Utakata na Shiawase",
|
|
6
6
|
"author": "KazariEX",
|
|
7
7
|
"license": "MIT",
|
|
8
|
-
"repository":
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "zinkawaii/eslint-config"
|
|
11
|
+
},
|
|
9
12
|
"exports": {
|
|
10
13
|
".": "./dist/index.mjs",
|
|
11
14
|
"./package.json": "./package.json"
|
|
12
15
|
},
|
|
13
|
-
"types": "./dist/index.d.
|
|
16
|
+
"types": "./dist/index.d.mts",
|
|
14
17
|
"files": [
|
|
15
18
|
"dist"
|
|
16
19
|
],
|
|
17
20
|
"dependencies": {
|
|
18
|
-
"@antfu/eslint-config": "^
|
|
21
|
+
"@antfu/eslint-config": "^9.0.0"
|
|
19
22
|
},
|
|
20
23
|
"devDependencies": {
|
|
21
|
-
"@zinkawaii/tsconfig": "^0.0
|
|
22
|
-
"bumpp": "^
|
|
23
|
-
"eslint": "^
|
|
24
|
-
"tsdown": "^0.
|
|
24
|
+
"@zinkawaii/tsconfig": "^0.1.0",
|
|
25
|
+
"bumpp": "^11.1.0",
|
|
26
|
+
"eslint": "^10.5.0",
|
|
27
|
+
"tsdown": "^0.22.2"
|
|
25
28
|
},
|
|
26
29
|
"scripts": {
|
|
27
30
|
"build": "tsdown",
|