@dhzh/eslint-config 0.4.2 → 0.4.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/cli.cjs +13 -14
- package/dist/cli.js +13 -14
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/package.json +14 -15
package/dist/cli.cjs
CHANGED
|
@@ -48,7 +48,7 @@ var import_picocolors = __toESM(require("picocolors"), 1);
|
|
|
48
48
|
var package_default = {
|
|
49
49
|
name: "@dhzh/eslint-config",
|
|
50
50
|
type: "module",
|
|
51
|
-
version: "0.4.
|
|
51
|
+
version: "0.4.3",
|
|
52
52
|
packageManager: "pnpm@9.1.0",
|
|
53
53
|
description: "Easton's ESLint config",
|
|
54
54
|
author: "Easton Zheng <dhzhme@gmail.com>",
|
|
@@ -129,21 +129,21 @@ var package_default = {
|
|
|
129
129
|
dependencies: {
|
|
130
130
|
"@antfu/install-pkg": "^0.3.3",
|
|
131
131
|
"@clack/prompts": "^0.7.0",
|
|
132
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
133
|
-
"@stylistic/eslint-plugin": "^
|
|
134
|
-
"@typescript-eslint/eslint-plugin": "
|
|
135
|
-
"@typescript-eslint/parser": "
|
|
132
|
+
"@eslint-react/eslint-plugin": "^1.5.11",
|
|
133
|
+
"@stylistic/eslint-plugin": "^2.0.0",
|
|
134
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
135
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
136
136
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
137
137
|
"eslint-flat-config-utils": "^0.2.4",
|
|
138
138
|
"eslint-merge-processors": "^0.1.0",
|
|
139
|
-
"eslint-plugin-antfu": "^2.
|
|
140
|
-
"eslint-plugin-command": "^0.
|
|
139
|
+
"eslint-plugin-antfu": "^2.2.0",
|
|
140
|
+
"eslint-plugin-command": "^0.2.0",
|
|
141
141
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
142
142
|
"eslint-plugin-import-x": "^0.5.0",
|
|
143
143
|
"eslint-plugin-jsdoc": "^48.2.3",
|
|
144
144
|
"eslint-plugin-jsonc": "^2.15.1",
|
|
145
145
|
"eslint-plugin-markdown": "^5.0.0",
|
|
146
|
-
"eslint-plugin-n": "^17.
|
|
146
|
+
"eslint-plugin-n": "^17.5.1",
|
|
147
147
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
148
148
|
"eslint-plugin-perfectionist": "^2.10.0",
|
|
149
149
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
@@ -166,14 +166,13 @@ var package_default = {
|
|
|
166
166
|
yargs: "^17.7.2"
|
|
167
167
|
},
|
|
168
168
|
devDependencies: {
|
|
169
|
-
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
170
169
|
"@antfu/ni": "^0.21.12",
|
|
171
170
|
"@dhzh/eslint-config": "workspace:*",
|
|
172
171
|
"@eslint/config-inspector": "^0.4.8",
|
|
173
|
-
"@stylistic/eslint-plugin-migrate": "^
|
|
172
|
+
"@stylistic/eslint-plugin-migrate": "^2.0.0",
|
|
174
173
|
"@types/eslint": "^8.56.10",
|
|
175
174
|
"@types/fs-extra": "^11.0.4",
|
|
176
|
-
"@types/node": "^20.12.
|
|
175
|
+
"@types/node": "^20.12.11",
|
|
177
176
|
"@types/prompts": "^2.4.9",
|
|
178
177
|
"@types/yargs": "^17.0.32",
|
|
179
178
|
"@unocss/eslint-plugin": "^0.59.4",
|
|
@@ -184,7 +183,7 @@ var package_default = {
|
|
|
184
183
|
"eslint-plugin-astro": "^1.1.2",
|
|
185
184
|
"eslint-plugin-format": "^0.1.1",
|
|
186
185
|
"eslint-plugin-solid": "^0.14.0",
|
|
187
|
-
"eslint-plugin-svelte": "2.
|
|
186
|
+
"eslint-plugin-svelte": "^2.38.0",
|
|
188
187
|
"eslint-typegen": "^0.2.4",
|
|
189
188
|
esno: "^4.7.0",
|
|
190
189
|
execa: "^8.0.1",
|
|
@@ -195,12 +194,12 @@ var package_default = {
|
|
|
195
194
|
"prettier-plugin-slidev": "^1.0.5",
|
|
196
195
|
rimraf: "^5.0.5",
|
|
197
196
|
"simple-git-hooks": "^2.11.1",
|
|
198
|
-
svelte: "^4.2.
|
|
197
|
+
svelte: "^4.2.16",
|
|
199
198
|
"svelte-eslint-parser": "^0.35.0",
|
|
200
199
|
tsup: "^8.0.2",
|
|
201
200
|
typescript: "^5.4.5",
|
|
202
201
|
vitest: "^1.6.0",
|
|
203
|
-
vue: "^3.4.
|
|
202
|
+
vue: "^3.4.27"
|
|
204
203
|
},
|
|
205
204
|
"simple-git-hooks": {
|
|
206
205
|
"pre-commit": "pnpm lint-staged"
|
package/dist/cli.js
CHANGED
|
@@ -19,7 +19,7 @@ import c from "picocolors";
|
|
|
19
19
|
var package_default = {
|
|
20
20
|
name: "@dhzh/eslint-config",
|
|
21
21
|
type: "module",
|
|
22
|
-
version: "0.4.
|
|
22
|
+
version: "0.4.3",
|
|
23
23
|
packageManager: "pnpm@9.1.0",
|
|
24
24
|
description: "Easton's ESLint config",
|
|
25
25
|
author: "Easton Zheng <dhzhme@gmail.com>",
|
|
@@ -100,21 +100,21 @@ var package_default = {
|
|
|
100
100
|
dependencies: {
|
|
101
101
|
"@antfu/install-pkg": "^0.3.3",
|
|
102
102
|
"@clack/prompts": "^0.7.0",
|
|
103
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
104
|
-
"@stylistic/eslint-plugin": "^
|
|
105
|
-
"@typescript-eslint/eslint-plugin": "
|
|
106
|
-
"@typescript-eslint/parser": "
|
|
103
|
+
"@eslint-react/eslint-plugin": "^1.5.11",
|
|
104
|
+
"@stylistic/eslint-plugin": "^2.0.0",
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
106
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
107
107
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
108
108
|
"eslint-flat-config-utils": "^0.2.4",
|
|
109
109
|
"eslint-merge-processors": "^0.1.0",
|
|
110
|
-
"eslint-plugin-antfu": "^2.
|
|
111
|
-
"eslint-plugin-command": "^0.
|
|
110
|
+
"eslint-plugin-antfu": "^2.2.0",
|
|
111
|
+
"eslint-plugin-command": "^0.2.0",
|
|
112
112
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
113
113
|
"eslint-plugin-import-x": "^0.5.0",
|
|
114
114
|
"eslint-plugin-jsdoc": "^48.2.3",
|
|
115
115
|
"eslint-plugin-jsonc": "^2.15.1",
|
|
116
116
|
"eslint-plugin-markdown": "^5.0.0",
|
|
117
|
-
"eslint-plugin-n": "^17.
|
|
117
|
+
"eslint-plugin-n": "^17.5.1",
|
|
118
118
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
119
119
|
"eslint-plugin-perfectionist": "^2.10.0",
|
|
120
120
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
@@ -137,14 +137,13 @@ var package_default = {
|
|
|
137
137
|
yargs: "^17.7.2"
|
|
138
138
|
},
|
|
139
139
|
devDependencies: {
|
|
140
|
-
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
141
140
|
"@antfu/ni": "^0.21.12",
|
|
142
141
|
"@dhzh/eslint-config": "workspace:*",
|
|
143
142
|
"@eslint/config-inspector": "^0.4.8",
|
|
144
|
-
"@stylistic/eslint-plugin-migrate": "^
|
|
143
|
+
"@stylistic/eslint-plugin-migrate": "^2.0.0",
|
|
145
144
|
"@types/eslint": "^8.56.10",
|
|
146
145
|
"@types/fs-extra": "^11.0.4",
|
|
147
|
-
"@types/node": "^20.12.
|
|
146
|
+
"@types/node": "^20.12.11",
|
|
148
147
|
"@types/prompts": "^2.4.9",
|
|
149
148
|
"@types/yargs": "^17.0.32",
|
|
150
149
|
"@unocss/eslint-plugin": "^0.59.4",
|
|
@@ -155,7 +154,7 @@ var package_default = {
|
|
|
155
154
|
"eslint-plugin-astro": "^1.1.2",
|
|
156
155
|
"eslint-plugin-format": "^0.1.1",
|
|
157
156
|
"eslint-plugin-solid": "^0.14.0",
|
|
158
|
-
"eslint-plugin-svelte": "2.
|
|
157
|
+
"eslint-plugin-svelte": "^2.38.0",
|
|
159
158
|
"eslint-typegen": "^0.2.4",
|
|
160
159
|
esno: "^4.7.0",
|
|
161
160
|
execa: "^8.0.1",
|
|
@@ -166,12 +165,12 @@ var package_default = {
|
|
|
166
165
|
"prettier-plugin-slidev": "^1.0.5",
|
|
167
166
|
rimraf: "^5.0.5",
|
|
168
167
|
"simple-git-hooks": "^2.11.1",
|
|
169
|
-
svelte: "^4.2.
|
|
168
|
+
svelte: "^4.2.16",
|
|
170
169
|
"svelte-eslint-parser": "^0.35.0",
|
|
171
170
|
tsup: "^8.0.2",
|
|
172
171
|
typescript: "^5.4.5",
|
|
173
172
|
vitest: "^1.6.0",
|
|
174
|
-
vue: "^3.4.
|
|
173
|
+
vue: "^3.4.27"
|
|
175
174
|
},
|
|
176
175
|
"simple-git-hooks": {
|
|
177
176
|
"pre-commit": "pnpm lint-staged"
|
package/dist/index.d.cts
CHANGED
|
@@ -129,6 +129,11 @@ interface RuleOptions {
|
|
|
129
129
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
|
|
130
130
|
*/
|
|
131
131
|
'antfu/import-dedupe'?: Linter.RuleEntry<[]>
|
|
132
|
+
/**
|
|
133
|
+
* Enforce consistent indentation in `unindent` template tag
|
|
134
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.test.ts
|
|
135
|
+
*/
|
|
136
|
+
'antfu/indent-unindent'?: Linter.RuleEntry<AntfuIndentUnindent>
|
|
132
137
|
/**
|
|
133
138
|
* Prevent importing modules in `dist` folder
|
|
134
139
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.test.ts
|
|
@@ -2997,6 +3002,7 @@ interface RuleOptions {
|
|
|
2997
3002
|
/**
|
|
2998
3003
|
* disallow complicated conditional rendering
|
|
2999
3004
|
* @see https://eslint-react.xyz/rules/no-complicated-conditional-rendering
|
|
3005
|
+
* @deprecated
|
|
3000
3006
|
*/
|
|
3001
3007
|
'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
3002
3008
|
/**
|
|
@@ -3032,6 +3038,7 @@ interface RuleOptions {
|
|
|
3032
3038
|
/**
|
|
3033
3039
|
* disallow spreading 'key' from objects.
|
|
3034
3040
|
* @see https://eslint-react.xyz/rules/no-implicit-key
|
|
3041
|
+
* @deprecated
|
|
3035
3042
|
*/
|
|
3036
3043
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>
|
|
3037
3044
|
/**
|
|
@@ -7362,6 +7369,11 @@ type AntfuConsistentListNewline = []|[{
|
|
|
7362
7369
|
ArrayPattern?: boolean
|
|
7363
7370
|
JSXOpeningElement?: boolean
|
|
7364
7371
|
}]
|
|
7372
|
+
// ----- antfu/indent-unindent -----
|
|
7373
|
+
type AntfuIndentUnindent = []|[{
|
|
7374
|
+
indent?: number
|
|
7375
|
+
tags?: string[]
|
|
7376
|
+
}]
|
|
7365
7377
|
// ----- array-bracket-newline -----
|
|
7366
7378
|
type ArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
|
|
7367
7379
|
multiline?: boolean
|
package/dist/index.d.ts
CHANGED
|
@@ -129,6 +129,11 @@ interface RuleOptions {
|
|
|
129
129
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/import-dedupe.md
|
|
130
130
|
*/
|
|
131
131
|
'antfu/import-dedupe'?: Linter.RuleEntry<[]>
|
|
132
|
+
/**
|
|
133
|
+
* Enforce consistent indentation in `unindent` template tag
|
|
134
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.test.ts
|
|
135
|
+
*/
|
|
136
|
+
'antfu/indent-unindent'?: Linter.RuleEntry<AntfuIndentUnindent>
|
|
132
137
|
/**
|
|
133
138
|
* Prevent importing modules in `dist` folder
|
|
134
139
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-dist.test.ts
|
|
@@ -2997,6 +3002,7 @@ interface RuleOptions {
|
|
|
2997
3002
|
/**
|
|
2998
3003
|
* disallow complicated conditional rendering
|
|
2999
3004
|
* @see https://eslint-react.xyz/rules/no-complicated-conditional-rendering
|
|
3005
|
+
* @deprecated
|
|
3000
3006
|
*/
|
|
3001
3007
|
'react/no-complicated-conditional-rendering'?: Linter.RuleEntry<[]>
|
|
3002
3008
|
/**
|
|
@@ -3032,6 +3038,7 @@ interface RuleOptions {
|
|
|
3032
3038
|
/**
|
|
3033
3039
|
* disallow spreading 'key' from objects.
|
|
3034
3040
|
* @see https://eslint-react.xyz/rules/no-implicit-key
|
|
3041
|
+
* @deprecated
|
|
3035
3042
|
*/
|
|
3036
3043
|
'react/no-implicit-key'?: Linter.RuleEntry<[]>
|
|
3037
3044
|
/**
|
|
@@ -7362,6 +7369,11 @@ type AntfuConsistentListNewline = []|[{
|
|
|
7362
7369
|
ArrayPattern?: boolean
|
|
7363
7370
|
JSXOpeningElement?: boolean
|
|
7364
7371
|
}]
|
|
7372
|
+
// ----- antfu/indent-unindent -----
|
|
7373
|
+
type AntfuIndentUnindent = []|[{
|
|
7374
|
+
indent?: number
|
|
7375
|
+
tags?: string[]
|
|
7376
|
+
}]
|
|
7365
7377
|
// ----- array-bracket-newline -----
|
|
7366
7378
|
type ArrayBracketNewline = []|[(("always" | "never" | "consistent") | {
|
|
7367
7379
|
multiline?: boolean
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhzh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.3",
|
|
5
5
|
"description": "Easton's ESLint config",
|
|
6
6
|
"author": "Easton Zheng <dhzhme@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -67,21 +67,21 @@
|
|
|
67
67
|
"dependencies": {
|
|
68
68
|
"@antfu/install-pkg": "^0.3.3",
|
|
69
69
|
"@clack/prompts": "^0.7.0",
|
|
70
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
71
|
-
"@stylistic/eslint-plugin": "^
|
|
72
|
-
"@typescript-eslint/eslint-plugin": "
|
|
73
|
-
"@typescript-eslint/parser": "
|
|
70
|
+
"@eslint-react/eslint-plugin": "^1.5.11",
|
|
71
|
+
"@stylistic/eslint-plugin": "^2.0.0",
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
73
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
74
74
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
75
75
|
"eslint-flat-config-utils": "^0.2.4",
|
|
76
76
|
"eslint-merge-processors": "^0.1.0",
|
|
77
|
-
"eslint-plugin-antfu": "^2.
|
|
78
|
-
"eslint-plugin-command": "^0.
|
|
77
|
+
"eslint-plugin-antfu": "^2.2.0",
|
|
78
|
+
"eslint-plugin-command": "^0.2.0",
|
|
79
79
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
80
80
|
"eslint-plugin-import-x": "^0.5.0",
|
|
81
81
|
"eslint-plugin-jsdoc": "^48.2.3",
|
|
82
82
|
"eslint-plugin-jsonc": "^2.15.1",
|
|
83
83
|
"eslint-plugin-markdown": "^5.0.0",
|
|
84
|
-
"eslint-plugin-n": "^17.
|
|
84
|
+
"eslint-plugin-n": "^17.5.1",
|
|
85
85
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
86
86
|
"eslint-plugin-perfectionist": "^2.10.0",
|
|
87
87
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
@@ -104,13 +104,12 @@
|
|
|
104
104
|
"yargs": "^17.7.2"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
108
107
|
"@antfu/ni": "^0.21.12",
|
|
109
108
|
"@eslint/config-inspector": "^0.4.8",
|
|
110
|
-
"@stylistic/eslint-plugin-migrate": "^
|
|
109
|
+
"@stylistic/eslint-plugin-migrate": "^2.0.0",
|
|
111
110
|
"@types/eslint": "^8.56.10",
|
|
112
111
|
"@types/fs-extra": "^11.0.4",
|
|
113
|
-
"@types/node": "^20.12.
|
|
112
|
+
"@types/node": "^20.12.11",
|
|
114
113
|
"@types/prompts": "^2.4.9",
|
|
115
114
|
"@types/yargs": "^17.0.32",
|
|
116
115
|
"@unocss/eslint-plugin": "^0.59.4",
|
|
@@ -121,7 +120,7 @@
|
|
|
121
120
|
"eslint-plugin-astro": "^1.1.2",
|
|
122
121
|
"eslint-plugin-format": "^0.1.1",
|
|
123
122
|
"eslint-plugin-solid": "^0.14.0",
|
|
124
|
-
"eslint-plugin-svelte": "2.
|
|
123
|
+
"eslint-plugin-svelte": "^2.38.0",
|
|
125
124
|
"eslint-typegen": "^0.2.4",
|
|
126
125
|
"esno": "^4.7.0",
|
|
127
126
|
"execa": "^8.0.1",
|
|
@@ -132,13 +131,13 @@
|
|
|
132
131
|
"prettier-plugin-slidev": "^1.0.5",
|
|
133
132
|
"rimraf": "^5.0.5",
|
|
134
133
|
"simple-git-hooks": "^2.11.1",
|
|
135
|
-
"svelte": "^4.2.
|
|
134
|
+
"svelte": "^4.2.16",
|
|
136
135
|
"svelte-eslint-parser": "^0.35.0",
|
|
137
136
|
"tsup": "^8.0.2",
|
|
138
137
|
"typescript": "^5.4.5",
|
|
139
138
|
"vitest": "^1.6.0",
|
|
140
|
-
"vue": "^3.4.
|
|
141
|
-
"@dhzh/eslint-config": "0.4.
|
|
139
|
+
"vue": "^3.4.27",
|
|
140
|
+
"@dhzh/eslint-config": "0.4.3"
|
|
142
141
|
},
|
|
143
142
|
"simple-git-hooks": {
|
|
144
143
|
"pre-commit": "pnpm lint-staged"
|