@zinkawaii/eslint-config 0.1.0 → 0.1.2
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.cjs +3 -1
- package/dist/index.js +3 -1
- package/index.d.ts +11 -0
- package/package.json +13 -17
- package/dist/index.d.cts +0 -121
- package/dist/index.d.ts +0 -121
package/dist/index.cjs
CHANGED
@@ -34,6 +34,7 @@ function prefixary(prefix, rules) {
|
|
34
34
|
|
35
35
|
// src/lib/patch.ts
|
36
36
|
var patch_default = prefixary({
|
37
|
+
"antfu/curly": "off",
|
37
38
|
"antfu/if-newline": "off",
|
38
39
|
"antfu/no-import-dist": "off",
|
39
40
|
"antfu/top-level-function": "off",
|
@@ -177,7 +178,7 @@ var standard_default = prefixary({
|
|
177
178
|
"no-invalid-this": "off",
|
178
179
|
"no-iterator": "warn",
|
179
180
|
"no-label-var": "off",
|
180
|
-
"no-labels": "
|
181
|
+
"no-labels": "off",
|
181
182
|
"no-lone-blocks": "warn",
|
182
183
|
"no-lonely-if": "warn",
|
183
184
|
"no-loop-func": "warn",
|
@@ -421,6 +422,7 @@ var vue_default = prefixary("vue", {
|
|
421
422
|
}],
|
422
423
|
"comma-dangle": ["warn", "never"],
|
423
424
|
"component-definition-name-casing": ["warn", "kebab-case"],
|
425
|
+
"component-name-in-template-casing": ["warn", "kebab-case"],
|
424
426
|
"first-attribute-linebreak": ["warn", {
|
425
427
|
singleline: "beside",
|
426
428
|
multiline: "below"
|
package/dist/index.js
CHANGED
@@ -9,6 +9,7 @@ function prefixary(prefix, rules) {
|
|
9
9
|
|
10
10
|
// src/lib/patch.ts
|
11
11
|
var patch_default = prefixary({
|
12
|
+
"antfu/curly": "off",
|
12
13
|
"antfu/if-newline": "off",
|
13
14
|
"antfu/no-import-dist": "off",
|
14
15
|
"antfu/top-level-function": "off",
|
@@ -152,7 +153,7 @@ var standard_default = prefixary({
|
|
152
153
|
"no-invalid-this": "off",
|
153
154
|
"no-iterator": "warn",
|
154
155
|
"no-label-var": "off",
|
155
|
-
"no-labels": "
|
156
|
+
"no-labels": "off",
|
156
157
|
"no-lone-blocks": "warn",
|
157
158
|
"no-lonely-if": "warn",
|
158
159
|
"no-loop-func": "warn",
|
@@ -396,6 +397,7 @@ var vue_default = prefixary("vue", {
|
|
396
397
|
}],
|
397
398
|
"comma-dangle": ["warn", "never"],
|
398
399
|
"component-definition-name-casing": ["warn", "kebab-case"],
|
400
|
+
"component-name-in-template-casing": ["warn", "kebab-case"],
|
399
401
|
"first-attribute-linebreak": ["warn", {
|
400
402
|
singleline: "beside",
|
401
403
|
multiline: "below"
|
package/index.d.ts
ADDED
package/package.json
CHANGED
@@ -1,34 +1,30 @@
|
|
1
1
|
{
|
2
2
|
"name": "@zinkawaii/eslint-config",
|
3
|
-
"version": "0.1.
|
4
|
-
"author": "KazariEX",
|
3
|
+
"version": "0.1.2",
|
5
4
|
"license": "MIT",
|
6
|
-
"
|
7
|
-
|
8
|
-
"url": "https://github.com/KazariEX/eslint-config.git"
|
9
|
-
},
|
5
|
+
"author": "KazariEX",
|
6
|
+
"repository": "KazariEX/eslint-config",
|
10
7
|
"type": "module",
|
11
8
|
"files": [
|
12
9
|
"dist",
|
10
|
+
"index.d.ts",
|
13
11
|
"LICENSE"
|
14
12
|
],
|
15
|
-
"main": "dist/index.js",
|
16
|
-
"types": "
|
13
|
+
"main": "./dist/index.js",
|
14
|
+
"types": "./index.d.ts",
|
17
15
|
"exports": {
|
18
16
|
".": {
|
19
17
|
"import": "./dist/index.js",
|
20
|
-
"require": "./dist/index.cjs"
|
18
|
+
"require": "./dist/index.cjs",
|
19
|
+
"types": "./index.d.ts"
|
21
20
|
}
|
22
21
|
},
|
22
|
+
"devDependencies": {
|
23
|
+
"@antfu/eslint-config": "^2.22.0",
|
24
|
+
"tsup": "^8.1.0"
|
25
|
+
},
|
23
26
|
"scripts": {
|
24
27
|
"build": "tsup",
|
25
28
|
"watch": "tsup --watch"
|
26
|
-
},
|
27
|
-
"devDependencies": {
|
28
|
-
"@antfu/eslint-config": "^2.15.0",
|
29
|
-
"tsup": "^8.0.2"
|
30
|
-
},
|
31
|
-
"peerDependencies": {
|
32
|
-
"@antfu/eslint-config": "^2.15.0"
|
33
29
|
}
|
34
|
-
}
|
30
|
+
}
|
package/dist/index.d.cts
DELETED
@@ -1,121 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
patch: {
|
3
|
-
"antfu/if-newline": string;
|
4
|
-
"antfu/no-import-dist": string;
|
5
|
-
"antfu/top-level-function": string;
|
6
|
-
"node/prefer-global/process": string;
|
7
|
-
"unused-imports/no-unused-vars": string;
|
8
|
-
};
|
9
|
-
recommended: {
|
10
|
-
"constructor-super": string;
|
11
|
-
"for-direction": string;
|
12
|
-
"getter-return": string;
|
13
|
-
"no-async-promise-executor": string;
|
14
|
-
"no-class-assign": string;
|
15
|
-
"no-compare-neg-zero": string;
|
16
|
-
"no-cond-assign": string;
|
17
|
-
"no-const-assign": string;
|
18
|
-
"no-constant-binary-expression": string;
|
19
|
-
"no-constant-condition": (string | {
|
20
|
-
checkLoops: boolean;
|
21
|
-
})[];
|
22
|
-
"no-control-regex": string;
|
23
|
-
"no-debugger": string;
|
24
|
-
"no-dupe-args": string;
|
25
|
-
"no-dupe-class-members": string;
|
26
|
-
"no-dupe-else-if": string;
|
27
|
-
"no-dupe-keys": string;
|
28
|
-
"no-duplicate-case": string;
|
29
|
-
"no-empty-character-class": string;
|
30
|
-
"no-empty-pattern": string;
|
31
|
-
"no-ex-assign": string;
|
32
|
-
"no-fallthrough": string;
|
33
|
-
"no-func-assign": string;
|
34
|
-
"no-import-assign": string;
|
35
|
-
"no-invalid-regexp": string;
|
36
|
-
"no-irregular-whitespace": string;
|
37
|
-
"no-loss-of-precision": string;
|
38
|
-
"no-misleading-character-class": string;
|
39
|
-
"no-new-native-nonconstructor": string;
|
40
|
-
"no-obj-calls": string;
|
41
|
-
"no-prototype-builtins": string;
|
42
|
-
"no-self-assign": string;
|
43
|
-
"no-setter-return": string;
|
44
|
-
"no-sparse-arrays": string;
|
45
|
-
"no-this-before-super": string;
|
46
|
-
"no-undef": string;
|
47
|
-
"no-unexpected-multiline": string;
|
48
|
-
"no-unreachable": string;
|
49
|
-
"no-unsafe-finally": string;
|
50
|
-
"no-unsafe-negation": (string | {
|
51
|
-
enforceForOrderingRelations: boolean;
|
52
|
-
})[];
|
53
|
-
"no-unsafe-optional-chaining": string;
|
54
|
-
"no-unused-private-class-members": string;
|
55
|
-
"no-unused-vars": string;
|
56
|
-
"no-useless-backreference": string;
|
57
|
-
"prefer-template": string;
|
58
|
-
"symbol-description": string;
|
59
|
-
"use-isnan": (string | {
|
60
|
-
enforceForIndexOf: boolean;
|
61
|
-
})[];
|
62
|
-
"valid-typeof": string;
|
63
|
-
};
|
64
|
-
standard: {
|
65
|
-
"accessor-pairs": string;
|
66
|
-
"array-callback-return": string;
|
67
|
-
"arrow-body-style": string;
|
68
|
-
"block-scoped-var": string;
|
69
|
-
camelcase: string;
|
70
|
-
"capitalized-comments": string;
|
71
|
-
"class-methods-use-this": string;
|
72
|
-
complexity: string;
|
73
|
-
"consistent-return": string;
|
74
|
-
curly: string[];
|
75
|
-
"dot-notation": (string | {
|
76
|
-
allowPattern: string;
|
77
|
-
})[];
|
78
|
-
eqeqeq: string[];
|
79
|
-
"no-await-in-loop": string;
|
80
|
-
"no-console": string;
|
81
|
-
"no-constructor-return": string;
|
82
|
-
"no-duplicate-imports": string;
|
83
|
-
"no-inner-declarations": string;
|
84
|
-
"no-new-symbol": string;
|
85
|
-
"no-promise-executor-return": string;
|
86
|
-
"no-self-compare": string;
|
87
|
-
"no-sequences": string;
|
88
|
-
"no-template-curly-in-string": string;
|
89
|
-
"no-throw-literal": string;
|
90
|
-
"no-unmodified-loop-condition": string;
|
91
|
-
"no-unreachable-loop": string;
|
92
|
-
"no-unused-expressions": string;
|
93
|
-
"no-unused-private-class-members": string;
|
94
|
-
"no-use-before-define": string;
|
95
|
-
"no-useless-assignment": string;
|
96
|
-
"no-useless-concat": string;
|
97
|
-
"no-useless-rename": string;
|
98
|
-
"no-useless-return": string;
|
99
|
-
"no-var": string;
|
100
|
-
"object-shorthand": string[];
|
101
|
-
"operator-assignment": string[];
|
102
|
-
"prefer-const": (string | {
|
103
|
-
destructuring: string;
|
104
|
-
ignoreReadBeforeAssign: boolean;
|
105
|
-
})[];
|
106
|
-
"prefer-rest-params": string;
|
107
|
-
"prefer-spread": string;
|
108
|
-
"require-atomic-updates": string;
|
109
|
-
yoda: (string | {
|
110
|
-
exceptRange: boolean;
|
111
|
-
})[];
|
112
|
-
};
|
113
|
-
stylistic: {
|
114
|
-
[k: string]: any;
|
115
|
-
};
|
116
|
-
vue: {
|
117
|
-
[k: string]: any;
|
118
|
-
};
|
119
|
-
};
|
120
|
-
|
121
|
-
export { _default as default };
|
package/dist/index.d.ts
DELETED
@@ -1,121 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
patch: {
|
3
|
-
"antfu/if-newline": string;
|
4
|
-
"antfu/no-import-dist": string;
|
5
|
-
"antfu/top-level-function": string;
|
6
|
-
"node/prefer-global/process": string;
|
7
|
-
"unused-imports/no-unused-vars": string;
|
8
|
-
};
|
9
|
-
recommended: {
|
10
|
-
"constructor-super": string;
|
11
|
-
"for-direction": string;
|
12
|
-
"getter-return": string;
|
13
|
-
"no-async-promise-executor": string;
|
14
|
-
"no-class-assign": string;
|
15
|
-
"no-compare-neg-zero": string;
|
16
|
-
"no-cond-assign": string;
|
17
|
-
"no-const-assign": string;
|
18
|
-
"no-constant-binary-expression": string;
|
19
|
-
"no-constant-condition": (string | {
|
20
|
-
checkLoops: boolean;
|
21
|
-
})[];
|
22
|
-
"no-control-regex": string;
|
23
|
-
"no-debugger": string;
|
24
|
-
"no-dupe-args": string;
|
25
|
-
"no-dupe-class-members": string;
|
26
|
-
"no-dupe-else-if": string;
|
27
|
-
"no-dupe-keys": string;
|
28
|
-
"no-duplicate-case": string;
|
29
|
-
"no-empty-character-class": string;
|
30
|
-
"no-empty-pattern": string;
|
31
|
-
"no-ex-assign": string;
|
32
|
-
"no-fallthrough": string;
|
33
|
-
"no-func-assign": string;
|
34
|
-
"no-import-assign": string;
|
35
|
-
"no-invalid-regexp": string;
|
36
|
-
"no-irregular-whitespace": string;
|
37
|
-
"no-loss-of-precision": string;
|
38
|
-
"no-misleading-character-class": string;
|
39
|
-
"no-new-native-nonconstructor": string;
|
40
|
-
"no-obj-calls": string;
|
41
|
-
"no-prototype-builtins": string;
|
42
|
-
"no-self-assign": string;
|
43
|
-
"no-setter-return": string;
|
44
|
-
"no-sparse-arrays": string;
|
45
|
-
"no-this-before-super": string;
|
46
|
-
"no-undef": string;
|
47
|
-
"no-unexpected-multiline": string;
|
48
|
-
"no-unreachable": string;
|
49
|
-
"no-unsafe-finally": string;
|
50
|
-
"no-unsafe-negation": (string | {
|
51
|
-
enforceForOrderingRelations: boolean;
|
52
|
-
})[];
|
53
|
-
"no-unsafe-optional-chaining": string;
|
54
|
-
"no-unused-private-class-members": string;
|
55
|
-
"no-unused-vars": string;
|
56
|
-
"no-useless-backreference": string;
|
57
|
-
"prefer-template": string;
|
58
|
-
"symbol-description": string;
|
59
|
-
"use-isnan": (string | {
|
60
|
-
enforceForIndexOf: boolean;
|
61
|
-
})[];
|
62
|
-
"valid-typeof": string;
|
63
|
-
};
|
64
|
-
standard: {
|
65
|
-
"accessor-pairs": string;
|
66
|
-
"array-callback-return": string;
|
67
|
-
"arrow-body-style": string;
|
68
|
-
"block-scoped-var": string;
|
69
|
-
camelcase: string;
|
70
|
-
"capitalized-comments": string;
|
71
|
-
"class-methods-use-this": string;
|
72
|
-
complexity: string;
|
73
|
-
"consistent-return": string;
|
74
|
-
curly: string[];
|
75
|
-
"dot-notation": (string | {
|
76
|
-
allowPattern: string;
|
77
|
-
})[];
|
78
|
-
eqeqeq: string[];
|
79
|
-
"no-await-in-loop": string;
|
80
|
-
"no-console": string;
|
81
|
-
"no-constructor-return": string;
|
82
|
-
"no-duplicate-imports": string;
|
83
|
-
"no-inner-declarations": string;
|
84
|
-
"no-new-symbol": string;
|
85
|
-
"no-promise-executor-return": string;
|
86
|
-
"no-self-compare": string;
|
87
|
-
"no-sequences": string;
|
88
|
-
"no-template-curly-in-string": string;
|
89
|
-
"no-throw-literal": string;
|
90
|
-
"no-unmodified-loop-condition": string;
|
91
|
-
"no-unreachable-loop": string;
|
92
|
-
"no-unused-expressions": string;
|
93
|
-
"no-unused-private-class-members": string;
|
94
|
-
"no-use-before-define": string;
|
95
|
-
"no-useless-assignment": string;
|
96
|
-
"no-useless-concat": string;
|
97
|
-
"no-useless-rename": string;
|
98
|
-
"no-useless-return": string;
|
99
|
-
"no-var": string;
|
100
|
-
"object-shorthand": string[];
|
101
|
-
"operator-assignment": string[];
|
102
|
-
"prefer-const": (string | {
|
103
|
-
destructuring: string;
|
104
|
-
ignoreReadBeforeAssign: boolean;
|
105
|
-
})[];
|
106
|
-
"prefer-rest-params": string;
|
107
|
-
"prefer-spread": string;
|
108
|
-
"require-atomic-updates": string;
|
109
|
-
yoda: (string | {
|
110
|
-
exceptRange: boolean;
|
111
|
-
})[];
|
112
|
-
};
|
113
|
-
stylistic: {
|
114
|
-
[k: string]: any;
|
115
|
-
};
|
116
|
-
vue: {
|
117
|
-
[k: string]: any;
|
118
|
-
};
|
119
|
-
};
|
120
|
-
|
121
|
-
export { _default as default };
|