@dhzh/eslint-config 0.9.2 → 0.9.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 +26 -27
- package/dist/cli.js +26 -27
- package/dist/index.cjs +5 -6
- package/dist/index.d.cts +73 -49
- package/dist/index.d.ts +73 -49
- package/dist/index.js +5 -6
- package/package.json +26 -23
package/dist/cli.cjs
CHANGED
|
@@ -48,8 +48,8 @@ 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.9.
|
|
52
|
-
packageManager: "pnpm@9.
|
|
51
|
+
version: "0.9.3",
|
|
52
|
+
packageManager: "pnpm@9.4.0",
|
|
53
53
|
description: "Easton's ESLint config",
|
|
54
54
|
author: "Easton Zheng <dhzhme@gmail.com>",
|
|
55
55
|
license: "MIT",
|
|
@@ -133,18 +133,18 @@ var package_default = {
|
|
|
133
133
|
dependencies: {
|
|
134
134
|
"@antfu/install-pkg": "^0.3.3",
|
|
135
135
|
"@clack/prompts": "^0.7.0",
|
|
136
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
137
|
-
"@stylistic/eslint-plugin": "^2.
|
|
138
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
139
|
-
"@typescript-eslint/parser": "^7.
|
|
136
|
+
"@eslint-react/eslint-plugin": "^1.5.18",
|
|
137
|
+
"@stylistic/eslint-plugin": "^2.3.0",
|
|
138
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
139
|
+
"@typescript-eslint/parser": "^7.14.1",
|
|
140
140
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
141
141
|
"eslint-flat-config-utils": "^0.2.5",
|
|
142
142
|
"eslint-merge-processors": "^0.1.0",
|
|
143
143
|
"eslint-plugin-antfu": "^2.3.3",
|
|
144
144
|
"eslint-plugin-command": "^0.2.3",
|
|
145
145
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
146
|
-
"eslint-plugin-import-x": "^0.5.
|
|
147
|
-
"eslint-plugin-jsdoc": "^48.
|
|
146
|
+
"eslint-plugin-import-x": "^0.5.2",
|
|
147
|
+
"eslint-plugin-jsdoc": "^48.5.0",
|
|
148
148
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
149
149
|
"eslint-plugin-markdown": "^5.0.0",
|
|
150
150
|
"eslint-plugin-n": "^17.9.0",
|
|
@@ -153,19 +153,19 @@ var package_default = {
|
|
|
153
153
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
154
154
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
155
155
|
"eslint-plugin-regexp": "^2.6.0",
|
|
156
|
-
"eslint-plugin-toml": "^0.11.
|
|
156
|
+
"eslint-plugin-toml": "^0.11.1",
|
|
157
157
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
158
158
|
"eslint-plugin-unused-imports": "^3.2.0",
|
|
159
159
|
"eslint-plugin-vitest": "^0.5.4",
|
|
160
160
|
"eslint-plugin-vue": "^9.26.0",
|
|
161
161
|
"eslint-plugin-yml": "^1.14.0",
|
|
162
162
|
"eslint-processor-vue-blocks": "^0.1.2",
|
|
163
|
-
globals: "^15.
|
|
163
|
+
globals: "^15.6.0",
|
|
164
164
|
"jsonc-eslint-parser": "^2.4.0",
|
|
165
165
|
"local-pkg": "^0.5.0",
|
|
166
166
|
"parse-gitignore": "^2.0.0",
|
|
167
167
|
picocolors: "^1.0.1",
|
|
168
|
-
"toml-eslint-parser": "^0.
|
|
168
|
+
"toml-eslint-parser": "^0.10.0",
|
|
169
169
|
"vue-eslint-parser": "^9.4.3",
|
|
170
170
|
"yaml-eslint-parser": "^1.2.3",
|
|
171
171
|
yargs: "^17.7.2"
|
|
@@ -173,27 +173,27 @@ var package_default = {
|
|
|
173
173
|
devDependencies: {
|
|
174
174
|
"@antfu/ni": "^0.21.12",
|
|
175
175
|
"@dhzh/eslint-config": "workspace:*",
|
|
176
|
-
"@eslint/config-inspector": "^0.
|
|
176
|
+
"@eslint/config-inspector": "^0.5.1",
|
|
177
177
|
"@prettier/plugin-xml": "^3.4.1",
|
|
178
|
-
"@stylistic/eslint-plugin-migrate": "^2.
|
|
178
|
+
"@stylistic/eslint-plugin-migrate": "^2.3.0",
|
|
179
179
|
"@types/eslint": "^8.56.10",
|
|
180
180
|
"@types/fs-extra": "^11.0.4",
|
|
181
|
-
"@types/node": "^20.14.
|
|
181
|
+
"@types/node": "^20.14.9",
|
|
182
182
|
"@types/prompts": "^2.4.9",
|
|
183
183
|
"@types/yargs": "^17.0.32",
|
|
184
184
|
"@unocss/eslint-plugin": "^0.61.0",
|
|
185
185
|
"astro-eslint-parser": "^1.0.2",
|
|
186
186
|
bumpp: "^9.4.1",
|
|
187
187
|
"bundle-require": "^5.0.0",
|
|
188
|
-
eslint: "npm:eslint-ts-patch@9.
|
|
188
|
+
eslint: "npm:eslint-ts-patch@9.5.0-0",
|
|
189
189
|
"eslint-plugin-astro": "^1.2.2",
|
|
190
190
|
"eslint-plugin-format": "^0.1.2",
|
|
191
|
-
"eslint-plugin-solid": "^0.14.
|
|
192
|
-
"eslint-plugin-svelte": "^2.
|
|
193
|
-
"eslint-ts-patch": "9.
|
|
191
|
+
"eslint-plugin-solid": "^0.14.1",
|
|
192
|
+
"eslint-plugin-svelte": "^2.41.0",
|
|
193
|
+
"eslint-ts-patch": "9.5.0-0",
|
|
194
194
|
"eslint-typegen": "^0.2.4",
|
|
195
195
|
esno: "^4.7.0",
|
|
196
|
-
execa: "^9.
|
|
196
|
+
execa: "^9.3.0",
|
|
197
197
|
"fast-glob": "^3.3.2",
|
|
198
198
|
"fs-extra": "^11.2.0",
|
|
199
199
|
"lint-staged": "^15.2.7",
|
|
@@ -202,12 +202,15 @@ var package_default = {
|
|
|
202
202
|
rimraf: "^5.0.7",
|
|
203
203
|
"simple-git-hooks": "^2.11.1",
|
|
204
204
|
svelte: "^4.2.18",
|
|
205
|
-
"svelte-eslint-parser": "^0.
|
|
205
|
+
"svelte-eslint-parser": "^0.39.2",
|
|
206
206
|
tsup: "^8.1.0",
|
|
207
|
-
tsx: "^4.15.
|
|
208
|
-
typescript: "^5.
|
|
207
|
+
tsx: "^4.15.7",
|
|
208
|
+
typescript: "^5.5.2",
|
|
209
209
|
vitest: "^1.6.0",
|
|
210
|
-
vue: "^3.4.
|
|
210
|
+
vue: "^3.4.31"
|
|
211
|
+
},
|
|
212
|
+
resolutions: {
|
|
213
|
+
tsx: "~4.14"
|
|
211
214
|
},
|
|
212
215
|
"simple-git-hooks": {
|
|
213
216
|
"pre-commit": "npx lint-staged"
|
|
@@ -224,10 +227,6 @@ var vscodeSettingsString = `
|
|
|
224
227
|
"eslint.ignoreUntitled": true,
|
|
225
228
|
"eslint.enable": true,
|
|
226
229
|
|
|
227
|
-
// Enable the ESlint flat config support
|
|
228
|
-
// (remove this if your ESLint extension above v3.0.5)
|
|
229
|
-
"eslint.experimental.useFlatConfig": true,
|
|
230
|
-
|
|
231
230
|
// Disable the default formatter, use eslint instead
|
|
232
231
|
"prettier.enable": false,
|
|
233
232
|
"editor.formatOnSave": false,
|
package/dist/cli.js
CHANGED
|
@@ -19,8 +19,8 @@ import c from "picocolors";
|
|
|
19
19
|
var package_default = {
|
|
20
20
|
name: "@dhzh/eslint-config",
|
|
21
21
|
type: "module",
|
|
22
|
-
version: "0.9.
|
|
23
|
-
packageManager: "pnpm@9.
|
|
22
|
+
version: "0.9.3",
|
|
23
|
+
packageManager: "pnpm@9.4.0",
|
|
24
24
|
description: "Easton's ESLint config",
|
|
25
25
|
author: "Easton Zheng <dhzhme@gmail.com>",
|
|
26
26
|
license: "MIT",
|
|
@@ -104,18 +104,18 @@ var package_default = {
|
|
|
104
104
|
dependencies: {
|
|
105
105
|
"@antfu/install-pkg": "^0.3.3",
|
|
106
106
|
"@clack/prompts": "^0.7.0",
|
|
107
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
108
|
-
"@stylistic/eslint-plugin": "^2.
|
|
109
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
110
|
-
"@typescript-eslint/parser": "^7.
|
|
107
|
+
"@eslint-react/eslint-plugin": "^1.5.18",
|
|
108
|
+
"@stylistic/eslint-plugin": "^2.3.0",
|
|
109
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
110
|
+
"@typescript-eslint/parser": "^7.14.1",
|
|
111
111
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
112
112
|
"eslint-flat-config-utils": "^0.2.5",
|
|
113
113
|
"eslint-merge-processors": "^0.1.0",
|
|
114
114
|
"eslint-plugin-antfu": "^2.3.3",
|
|
115
115
|
"eslint-plugin-command": "^0.2.3",
|
|
116
116
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
117
|
-
"eslint-plugin-import-x": "^0.5.
|
|
118
|
-
"eslint-plugin-jsdoc": "^48.
|
|
117
|
+
"eslint-plugin-import-x": "^0.5.2",
|
|
118
|
+
"eslint-plugin-jsdoc": "^48.5.0",
|
|
119
119
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
120
120
|
"eslint-plugin-markdown": "^5.0.0",
|
|
121
121
|
"eslint-plugin-n": "^17.9.0",
|
|
@@ -124,19 +124,19 @@ var package_default = {
|
|
|
124
124
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
125
125
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
126
126
|
"eslint-plugin-regexp": "^2.6.0",
|
|
127
|
-
"eslint-plugin-toml": "^0.11.
|
|
127
|
+
"eslint-plugin-toml": "^0.11.1",
|
|
128
128
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
129
129
|
"eslint-plugin-unused-imports": "^3.2.0",
|
|
130
130
|
"eslint-plugin-vitest": "^0.5.4",
|
|
131
131
|
"eslint-plugin-vue": "^9.26.0",
|
|
132
132
|
"eslint-plugin-yml": "^1.14.0",
|
|
133
133
|
"eslint-processor-vue-blocks": "^0.1.2",
|
|
134
|
-
globals: "^15.
|
|
134
|
+
globals: "^15.6.0",
|
|
135
135
|
"jsonc-eslint-parser": "^2.4.0",
|
|
136
136
|
"local-pkg": "^0.5.0",
|
|
137
137
|
"parse-gitignore": "^2.0.0",
|
|
138
138
|
picocolors: "^1.0.1",
|
|
139
|
-
"toml-eslint-parser": "^0.
|
|
139
|
+
"toml-eslint-parser": "^0.10.0",
|
|
140
140
|
"vue-eslint-parser": "^9.4.3",
|
|
141
141
|
"yaml-eslint-parser": "^1.2.3",
|
|
142
142
|
yargs: "^17.7.2"
|
|
@@ -144,27 +144,27 @@ var package_default = {
|
|
|
144
144
|
devDependencies: {
|
|
145
145
|
"@antfu/ni": "^0.21.12",
|
|
146
146
|
"@dhzh/eslint-config": "workspace:*",
|
|
147
|
-
"@eslint/config-inspector": "^0.
|
|
147
|
+
"@eslint/config-inspector": "^0.5.1",
|
|
148
148
|
"@prettier/plugin-xml": "^3.4.1",
|
|
149
|
-
"@stylistic/eslint-plugin-migrate": "^2.
|
|
149
|
+
"@stylistic/eslint-plugin-migrate": "^2.3.0",
|
|
150
150
|
"@types/eslint": "^8.56.10",
|
|
151
151
|
"@types/fs-extra": "^11.0.4",
|
|
152
|
-
"@types/node": "^20.14.
|
|
152
|
+
"@types/node": "^20.14.9",
|
|
153
153
|
"@types/prompts": "^2.4.9",
|
|
154
154
|
"@types/yargs": "^17.0.32",
|
|
155
155
|
"@unocss/eslint-plugin": "^0.61.0",
|
|
156
156
|
"astro-eslint-parser": "^1.0.2",
|
|
157
157
|
bumpp: "^9.4.1",
|
|
158
158
|
"bundle-require": "^5.0.0",
|
|
159
|
-
eslint: "npm:eslint-ts-patch@9.
|
|
159
|
+
eslint: "npm:eslint-ts-patch@9.5.0-0",
|
|
160
160
|
"eslint-plugin-astro": "^1.2.2",
|
|
161
161
|
"eslint-plugin-format": "^0.1.2",
|
|
162
|
-
"eslint-plugin-solid": "^0.14.
|
|
163
|
-
"eslint-plugin-svelte": "^2.
|
|
164
|
-
"eslint-ts-patch": "9.
|
|
162
|
+
"eslint-plugin-solid": "^0.14.1",
|
|
163
|
+
"eslint-plugin-svelte": "^2.41.0",
|
|
164
|
+
"eslint-ts-patch": "9.5.0-0",
|
|
165
165
|
"eslint-typegen": "^0.2.4",
|
|
166
166
|
esno: "^4.7.0",
|
|
167
|
-
execa: "^9.
|
|
167
|
+
execa: "^9.3.0",
|
|
168
168
|
"fast-glob": "^3.3.2",
|
|
169
169
|
"fs-extra": "^11.2.0",
|
|
170
170
|
"lint-staged": "^15.2.7",
|
|
@@ -173,12 +173,15 @@ var package_default = {
|
|
|
173
173
|
rimraf: "^5.0.7",
|
|
174
174
|
"simple-git-hooks": "^2.11.1",
|
|
175
175
|
svelte: "^4.2.18",
|
|
176
|
-
"svelte-eslint-parser": "^0.
|
|
176
|
+
"svelte-eslint-parser": "^0.39.2",
|
|
177
177
|
tsup: "^8.1.0",
|
|
178
|
-
tsx: "^4.15.
|
|
179
|
-
typescript: "^5.
|
|
178
|
+
tsx: "^4.15.7",
|
|
179
|
+
typescript: "^5.5.2",
|
|
180
180
|
vitest: "^1.6.0",
|
|
181
|
-
vue: "^3.4.
|
|
181
|
+
vue: "^3.4.31"
|
|
182
|
+
},
|
|
183
|
+
resolutions: {
|
|
184
|
+
tsx: "~4.14"
|
|
182
185
|
},
|
|
183
186
|
"simple-git-hooks": {
|
|
184
187
|
"pre-commit": "npx lint-staged"
|
|
@@ -195,10 +198,6 @@ var vscodeSettingsString = `
|
|
|
195
198
|
"eslint.ignoreUntitled": true,
|
|
196
199
|
"eslint.enable": true,
|
|
197
200
|
|
|
198
|
-
// Enable the ESlint flat config support
|
|
199
|
-
// (remove this if your ESLint extension above v3.0.5)
|
|
200
|
-
"eslint.experimental.useFlatConfig": true,
|
|
201
|
-
|
|
202
201
|
// Disable the default formatter, use eslint instead
|
|
203
202
|
"prettier.enable": false,
|
|
204
203
|
"editor.formatOnSave": false,
|
package/dist/index.cjs
CHANGED
|
@@ -178,6 +178,7 @@ var GLOB_EXCLUDE = [
|
|
|
178
178
|
"**/.output",
|
|
179
179
|
"**/.vite-inspect",
|
|
180
180
|
"**/.yarn",
|
|
181
|
+
"**/vite.config.*.timestamp-*",
|
|
181
182
|
"**/CHANGELOG*.md",
|
|
182
183
|
"**/*.min.*",
|
|
183
184
|
"**/LICENSE*",
|
|
@@ -1896,10 +1897,11 @@ async function typescript(options = {}) {
|
|
|
1896
1897
|
"ts/no-unsafe-call": "error",
|
|
1897
1898
|
"ts/no-unsafe-member-access": "error",
|
|
1898
1899
|
"ts/no-unsafe-return": "error",
|
|
1900
|
+
"ts/promise-function-async": "error",
|
|
1899
1901
|
"ts/restrict-plus-operands": "error",
|
|
1900
1902
|
"ts/restrict-template-expressions": "error",
|
|
1901
|
-
"ts/return-await": "error",
|
|
1902
|
-
"ts/strict-boolean-expressions": "error",
|
|
1903
|
+
"ts/return-await": ["error", "in-try-catch"],
|
|
1904
|
+
"ts/strict-boolean-expressions": ["error", { allowNullableBoolean: true, allowNullableObject: true }],
|
|
1903
1905
|
"ts/switch-exhaustiveness-check": "error",
|
|
1904
1906
|
"ts/unbound-method": "error"
|
|
1905
1907
|
};
|
|
@@ -1989,10 +1991,7 @@ async function typescript(options = {}) {
|
|
|
1989
1991
|
files: filesTypeAware,
|
|
1990
1992
|
ignores: ignoresTypeAware,
|
|
1991
1993
|
name: "antfu/typescript/rules-type-aware",
|
|
1992
|
-
rules:
|
|
1993
|
-
...tsconfigPath ? typeAwareRules : {},
|
|
1994
|
-
...overrides
|
|
1995
|
-
}
|
|
1994
|
+
rules: typeAwareRules
|
|
1996
1995
|
}] : [],
|
|
1997
1996
|
{
|
|
1998
1997
|
files: ["**/*.d.?([cm])ts"],
|
package/dist/index.d.cts
CHANGED
|
@@ -756,42 +756,42 @@ interface RuleOptions {
|
|
|
756
756
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
757
757
|
/**
|
|
758
758
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
759
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
759
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/consistent-type-specifier-style.md
|
|
760
760
|
*/
|
|
761
761
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
762
762
|
/**
|
|
763
763
|
* Ensure a default export is present, given a default import.
|
|
764
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
764
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/default.md
|
|
765
765
|
*/
|
|
766
766
|
'import/default'?: Linter.RuleEntry<[]>
|
|
767
767
|
/**
|
|
768
768
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
769
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
769
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/dynamic-import-chunkname.md
|
|
770
770
|
*/
|
|
771
771
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
772
772
|
/**
|
|
773
773
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
774
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
774
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/export.md
|
|
775
775
|
*/
|
|
776
776
|
'import/export'?: Linter.RuleEntry<[]>
|
|
777
777
|
/**
|
|
778
778
|
* Ensure all exports appear after other statements.
|
|
779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/exports-last.md
|
|
780
780
|
*/
|
|
781
781
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
782
782
|
/**
|
|
783
783
|
* Ensure consistent use of file extension within the import path.
|
|
784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/extensions.md
|
|
785
785
|
*/
|
|
786
786
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
787
787
|
/**
|
|
788
788
|
* Ensure all imports appear before other statements.
|
|
789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/first.md
|
|
790
790
|
*/
|
|
791
791
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
792
792
|
/**
|
|
793
793
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/group-exports.md
|
|
795
795
|
*/
|
|
796
796
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
797
797
|
/**
|
|
@@ -802,182 +802,182 @@ interface RuleOptions {
|
|
|
802
802
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
803
803
|
/**
|
|
804
804
|
* Enforce the maximum number of dependencies a module can have.
|
|
805
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
805
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/max-dependencies.md
|
|
806
806
|
*/
|
|
807
807
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
808
808
|
/**
|
|
809
809
|
* Ensure named imports correspond to a named export in the remote file.
|
|
810
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
810
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/named.md
|
|
811
811
|
*/
|
|
812
812
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
813
813
|
/**
|
|
814
814
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
815
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
815
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/namespace.md
|
|
816
816
|
*/
|
|
817
817
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
818
818
|
/**
|
|
819
819
|
* Enforce a newline after import statements.
|
|
820
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
820
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/newline-after-import.md
|
|
821
821
|
*/
|
|
822
822
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
823
823
|
/**
|
|
824
824
|
* Forbid import of modules using absolute paths.
|
|
825
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
825
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-absolute-path.md
|
|
826
826
|
*/
|
|
827
827
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
828
828
|
/**
|
|
829
829
|
* Forbid AMD `require` and `define` calls.
|
|
830
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
830
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-amd.md
|
|
831
831
|
*/
|
|
832
832
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
833
833
|
/**
|
|
834
834
|
* Forbid anonymous values as default exports.
|
|
835
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
835
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-anonymous-default-export.md
|
|
836
836
|
*/
|
|
837
837
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
838
838
|
/**
|
|
839
839
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
840
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
840
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-commonjs.md
|
|
841
841
|
*/
|
|
842
842
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
843
843
|
/**
|
|
844
844
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
845
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
845
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-cycle.md
|
|
846
846
|
*/
|
|
847
847
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
848
848
|
/**
|
|
849
849
|
* Forbid default exports.
|
|
850
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
850
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-default-export.md
|
|
851
851
|
*/
|
|
852
852
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
853
853
|
/**
|
|
854
854
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
855
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
855
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-deprecated.md
|
|
856
856
|
*/
|
|
857
857
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
858
858
|
/**
|
|
859
859
|
* Forbid repeated import of the same module in multiple places.
|
|
860
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
860
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-duplicates.md
|
|
861
861
|
*/
|
|
862
862
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
863
863
|
/**
|
|
864
864
|
* Forbid `require()` calls with expressions.
|
|
865
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
865
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-dynamic-require.md
|
|
866
866
|
*/
|
|
867
867
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
868
868
|
/**
|
|
869
869
|
* Forbid empty named import blocks.
|
|
870
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
870
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-empty-named-blocks.md
|
|
871
871
|
*/
|
|
872
872
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
873
873
|
/**
|
|
874
874
|
* Forbid the use of extraneous packages.
|
|
875
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
875
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-extraneous-dependencies.md
|
|
876
876
|
*/
|
|
877
877
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
878
878
|
/**
|
|
879
879
|
* Forbid import statements with CommonJS module.exports.
|
|
880
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
880
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-import-module-exports.md
|
|
881
881
|
*/
|
|
882
882
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
883
883
|
/**
|
|
884
884
|
* Forbid importing the submodules of other modules.
|
|
885
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
885
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-internal-modules.md
|
|
886
886
|
*/
|
|
887
887
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
888
888
|
/**
|
|
889
889
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
890
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
890
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-mutable-exports.md
|
|
891
891
|
*/
|
|
892
892
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
893
893
|
/**
|
|
894
894
|
* Forbid use of exported name as identifier of default export.
|
|
895
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
895
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-as-default.md
|
|
896
896
|
*/
|
|
897
897
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
898
898
|
/**
|
|
899
899
|
* Forbid use of exported name as property of default export.
|
|
900
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
900
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-as-default-member.md
|
|
901
901
|
*/
|
|
902
902
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
903
903
|
/**
|
|
904
904
|
* Forbid named default exports.
|
|
905
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
905
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-default.md
|
|
906
906
|
*/
|
|
907
907
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
908
908
|
/**
|
|
909
909
|
* Forbid named exports.
|
|
910
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
910
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-export.md
|
|
911
911
|
*/
|
|
912
912
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
913
913
|
/**
|
|
914
914
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
915
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
915
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-namespace.md
|
|
916
916
|
*/
|
|
917
917
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
918
918
|
/**
|
|
919
919
|
* Forbid Node.js builtin modules.
|
|
920
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
920
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-nodejs-modules.md
|
|
921
921
|
*/
|
|
922
922
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
923
923
|
/**
|
|
924
924
|
* Forbid importing packages through relative paths.
|
|
925
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
925
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-relative-packages.md
|
|
926
926
|
*/
|
|
927
927
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
928
928
|
/**
|
|
929
929
|
* Forbid importing modules from parent directories.
|
|
930
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
930
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-relative-parent-imports.md
|
|
931
931
|
*/
|
|
932
932
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
933
933
|
/**
|
|
934
934
|
* Enforce which files can be imported in a given folder.
|
|
935
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
935
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-restricted-paths.md
|
|
936
936
|
*/
|
|
937
937
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
938
938
|
/**
|
|
939
939
|
* Forbid a module from importing itself.
|
|
940
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
940
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-self-import.md
|
|
941
941
|
*/
|
|
942
942
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
943
943
|
/**
|
|
944
944
|
* Forbid unassigned imports.
|
|
945
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
945
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unassigned-import.md
|
|
946
946
|
*/
|
|
947
947
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
948
948
|
/**
|
|
949
949
|
* Ensure imports point to a file/module that can be resolved.
|
|
950
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
950
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unresolved.md
|
|
951
951
|
*/
|
|
952
952
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
953
953
|
/**
|
|
954
954
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
955
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
955
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unused-modules.md
|
|
956
956
|
*/
|
|
957
957
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
958
958
|
/**
|
|
959
959
|
* Forbid unnecessary path segments in import and require statements.
|
|
960
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
960
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-useless-path-segments.md
|
|
961
961
|
*/
|
|
962
962
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
963
963
|
/**
|
|
964
964
|
* Forbid webpack loader syntax in imports.
|
|
965
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
965
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-webpack-loader-syntax.md
|
|
966
966
|
*/
|
|
967
967
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
968
968
|
/**
|
|
969
969
|
* Enforce a convention in module import order.
|
|
970
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
970
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/order.md
|
|
971
971
|
*/
|
|
972
972
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
973
973
|
/**
|
|
974
974
|
* Prefer a default export if module exports a single name or multiple names.
|
|
975
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
975
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/prefer-default-export.md
|
|
976
976
|
*/
|
|
977
977
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
978
978
|
/**
|
|
979
979
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
980
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
980
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/unambiguous.md
|
|
981
981
|
*/
|
|
982
982
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
983
983
|
/**
|
|
@@ -3940,8 +3940,9 @@ interface RuleOptions {
|
|
|
3940
3940
|
*/
|
|
3941
3941
|
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>
|
|
3942
3942
|
/**
|
|
3943
|
-
* Enforce JSX indentation
|
|
3943
|
+
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
3944
3944
|
* @see https://eslint.style/rules/jsx/jsx-indent
|
|
3945
|
+
* @deprecated
|
|
3945
3946
|
*/
|
|
3946
3947
|
'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>
|
|
3947
3948
|
/**
|
|
@@ -4126,7 +4127,7 @@ interface RuleOptions {
|
|
|
4126
4127
|
'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>
|
|
4127
4128
|
/**
|
|
4128
4129
|
* Enforce consistent line breaks after opening and before closing braces
|
|
4129
|
-
* @see https://eslint.style/rules/
|
|
4130
|
+
* @see https://eslint.style/rules/ts/object-curly-newline
|
|
4130
4131
|
*/
|
|
4131
4132
|
'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>
|
|
4132
4133
|
/**
|
|
@@ -4136,7 +4137,7 @@ interface RuleOptions {
|
|
|
4136
4137
|
'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>
|
|
4137
4138
|
/**
|
|
4138
4139
|
* Enforce placing object properties on separate lines
|
|
4139
|
-
* @see https://eslint.style/rules/
|
|
4140
|
+
* @see https://eslint.style/rules/ts/object-property-newline
|
|
4140
4141
|
*/
|
|
4141
4142
|
'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>
|
|
4142
4143
|
/**
|
|
@@ -5651,7 +5652,7 @@ interface RuleOptions {
|
|
|
5651
5652
|
*/
|
|
5652
5653
|
'ts/restrict-template-expressions'?: Linter.RuleEntry<TsRestrictTemplateExpressions>
|
|
5653
5654
|
/**
|
|
5654
|
-
* Enforce consistent
|
|
5655
|
+
* Enforce consistent awaiting of returned promises
|
|
5655
5656
|
* @see https://typescript-eslint.io/rules/return-await
|
|
5656
5657
|
*/
|
|
5657
5658
|
'ts/return-await'?: Linter.RuleEntry<TsReturnAwait>
|
|
@@ -10876,6 +10877,7 @@ type StyleArrayElementNewline = []|[(_StyleArrayElementNewlineBasicConfig | {
|
|
|
10876
10877
|
ArrayPattern?: _StyleArrayElementNewlineBasicConfig
|
|
10877
10878
|
})]
|
|
10878
10879
|
type _StyleArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
10880
|
+
consistent?: boolean
|
|
10879
10881
|
multiline?: boolean
|
|
10880
10882
|
minItems?: (number | null)
|
|
10881
10883
|
})
|
|
@@ -11072,7 +11074,7 @@ type StyleJsxNewline = []|[{
|
|
|
11072
11074
|
}]
|
|
11073
11075
|
// ----- style/jsx-one-expression-per-line -----
|
|
11074
11076
|
type StyleJsxOneExpressionPerLine = []|[{
|
|
11075
|
-
allow?: ("none" | "literal" | "single-child" | "single-line")
|
|
11077
|
+
allow?: ("none" | "literal" | "single-child" | "single-line" | "non-jsx")
|
|
11076
11078
|
}]
|
|
11077
11079
|
// ----- style/jsx-pascal-case -----
|
|
11078
11080
|
type StyleJsxPascalCase = []|[{
|
|
@@ -11705,6 +11707,16 @@ type StyleObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
11705
11707
|
minProperties?: number
|
|
11706
11708
|
consistent?: boolean
|
|
11707
11709
|
})
|
|
11710
|
+
TSTypeLiteral?: (("always" | "never") | {
|
|
11711
|
+
multiline?: boolean
|
|
11712
|
+
minProperties?: number
|
|
11713
|
+
consistent?: boolean
|
|
11714
|
+
})
|
|
11715
|
+
TSInterfaceBody?: (("always" | "never") | {
|
|
11716
|
+
multiline?: boolean
|
|
11717
|
+
minProperties?: number
|
|
11718
|
+
consistent?: boolean
|
|
11719
|
+
})
|
|
11708
11720
|
})]
|
|
11709
11721
|
// ----- style/object-curly-spacing -----
|
|
11710
11722
|
type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -11754,6 +11766,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
|
|
|
11754
11766
|
type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
11755
11767
|
avoidEscape?: boolean
|
|
11756
11768
|
allowTemplateLiterals?: boolean
|
|
11769
|
+
ignoreStringLiterals?: boolean
|
|
11757
11770
|
})]
|
|
11758
11771
|
// ----- style/rest-spread-spacing -----
|
|
11759
11772
|
type StyleRestSpreadSpacing = []|[("always" | "never")]
|
|
@@ -13986,6 +13999,7 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
|
|
|
13986
13999
|
ArrayPattern?: _VueArrayElementNewlineBasicConfig
|
|
13987
14000
|
})]
|
|
13988
14001
|
type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
14002
|
+
consistent?: boolean
|
|
13989
14003
|
multiline?: boolean
|
|
13990
14004
|
minItems?: (number | null)
|
|
13991
14005
|
})
|
|
@@ -14960,6 +14974,16 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
14960
14974
|
minProperties?: number
|
|
14961
14975
|
consistent?: boolean
|
|
14962
14976
|
})
|
|
14977
|
+
TSTypeLiteral?: (("always" | "never") | {
|
|
14978
|
+
multiline?: boolean
|
|
14979
|
+
minProperties?: number
|
|
14980
|
+
consistent?: boolean
|
|
14981
|
+
})
|
|
14982
|
+
TSInterfaceBody?: (("always" | "never") | {
|
|
14983
|
+
multiline?: boolean
|
|
14984
|
+
minProperties?: number
|
|
14985
|
+
consistent?: boolean
|
|
14986
|
+
})
|
|
14963
14987
|
})]
|
|
14964
14988
|
// ----- vue/object-curly-spacing -----
|
|
14965
14989
|
type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
package/dist/index.d.ts
CHANGED
|
@@ -756,42 +756,42 @@ interface RuleOptions {
|
|
|
756
756
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
757
757
|
/**
|
|
758
758
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
759
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
759
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/consistent-type-specifier-style.md
|
|
760
760
|
*/
|
|
761
761
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
762
762
|
/**
|
|
763
763
|
* Ensure a default export is present, given a default import.
|
|
764
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
764
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/default.md
|
|
765
765
|
*/
|
|
766
766
|
'import/default'?: Linter.RuleEntry<[]>
|
|
767
767
|
/**
|
|
768
768
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
769
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
769
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/dynamic-import-chunkname.md
|
|
770
770
|
*/
|
|
771
771
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
772
772
|
/**
|
|
773
773
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
774
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
774
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/export.md
|
|
775
775
|
*/
|
|
776
776
|
'import/export'?: Linter.RuleEntry<[]>
|
|
777
777
|
/**
|
|
778
778
|
* Ensure all exports appear after other statements.
|
|
779
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
779
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/exports-last.md
|
|
780
780
|
*/
|
|
781
781
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
782
782
|
/**
|
|
783
783
|
* Ensure consistent use of file extension within the import path.
|
|
784
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
784
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/extensions.md
|
|
785
785
|
*/
|
|
786
786
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
787
787
|
/**
|
|
788
788
|
* Ensure all imports appear before other statements.
|
|
789
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
789
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/first.md
|
|
790
790
|
*/
|
|
791
791
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
792
792
|
/**
|
|
793
793
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
794
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
794
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/group-exports.md
|
|
795
795
|
*/
|
|
796
796
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
797
797
|
/**
|
|
@@ -802,182 +802,182 @@ interface RuleOptions {
|
|
|
802
802
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
803
803
|
/**
|
|
804
804
|
* Enforce the maximum number of dependencies a module can have.
|
|
805
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
805
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/max-dependencies.md
|
|
806
806
|
*/
|
|
807
807
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
808
808
|
/**
|
|
809
809
|
* Ensure named imports correspond to a named export in the remote file.
|
|
810
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
810
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/named.md
|
|
811
811
|
*/
|
|
812
812
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
813
813
|
/**
|
|
814
814
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
815
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
815
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/namespace.md
|
|
816
816
|
*/
|
|
817
817
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
818
818
|
/**
|
|
819
819
|
* Enforce a newline after import statements.
|
|
820
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
820
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/newline-after-import.md
|
|
821
821
|
*/
|
|
822
822
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
823
823
|
/**
|
|
824
824
|
* Forbid import of modules using absolute paths.
|
|
825
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
825
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-absolute-path.md
|
|
826
826
|
*/
|
|
827
827
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
828
828
|
/**
|
|
829
829
|
* Forbid AMD `require` and `define` calls.
|
|
830
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
830
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-amd.md
|
|
831
831
|
*/
|
|
832
832
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
833
833
|
/**
|
|
834
834
|
* Forbid anonymous values as default exports.
|
|
835
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
835
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-anonymous-default-export.md
|
|
836
836
|
*/
|
|
837
837
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
838
838
|
/**
|
|
839
839
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
840
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
840
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-commonjs.md
|
|
841
841
|
*/
|
|
842
842
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
843
843
|
/**
|
|
844
844
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
845
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
845
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-cycle.md
|
|
846
846
|
*/
|
|
847
847
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
848
848
|
/**
|
|
849
849
|
* Forbid default exports.
|
|
850
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
850
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-default-export.md
|
|
851
851
|
*/
|
|
852
852
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
853
853
|
/**
|
|
854
854
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
855
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
855
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-deprecated.md
|
|
856
856
|
*/
|
|
857
857
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
858
858
|
/**
|
|
859
859
|
* Forbid repeated import of the same module in multiple places.
|
|
860
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
860
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-duplicates.md
|
|
861
861
|
*/
|
|
862
862
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
863
863
|
/**
|
|
864
864
|
* Forbid `require()` calls with expressions.
|
|
865
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
865
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-dynamic-require.md
|
|
866
866
|
*/
|
|
867
867
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
868
868
|
/**
|
|
869
869
|
* Forbid empty named import blocks.
|
|
870
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
870
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-empty-named-blocks.md
|
|
871
871
|
*/
|
|
872
872
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
873
873
|
/**
|
|
874
874
|
* Forbid the use of extraneous packages.
|
|
875
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
875
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-extraneous-dependencies.md
|
|
876
876
|
*/
|
|
877
877
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
878
878
|
/**
|
|
879
879
|
* Forbid import statements with CommonJS module.exports.
|
|
880
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
880
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-import-module-exports.md
|
|
881
881
|
*/
|
|
882
882
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
883
883
|
/**
|
|
884
884
|
* Forbid importing the submodules of other modules.
|
|
885
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
885
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-internal-modules.md
|
|
886
886
|
*/
|
|
887
887
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
888
888
|
/**
|
|
889
889
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
890
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
890
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-mutable-exports.md
|
|
891
891
|
*/
|
|
892
892
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
893
893
|
/**
|
|
894
894
|
* Forbid use of exported name as identifier of default export.
|
|
895
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
895
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-as-default.md
|
|
896
896
|
*/
|
|
897
897
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
898
898
|
/**
|
|
899
899
|
* Forbid use of exported name as property of default export.
|
|
900
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
900
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-as-default-member.md
|
|
901
901
|
*/
|
|
902
902
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
903
903
|
/**
|
|
904
904
|
* Forbid named default exports.
|
|
905
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
905
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-default.md
|
|
906
906
|
*/
|
|
907
907
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
908
908
|
/**
|
|
909
909
|
* Forbid named exports.
|
|
910
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
910
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-named-export.md
|
|
911
911
|
*/
|
|
912
912
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
913
913
|
/**
|
|
914
914
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
915
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
915
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-namespace.md
|
|
916
916
|
*/
|
|
917
917
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
918
918
|
/**
|
|
919
919
|
* Forbid Node.js builtin modules.
|
|
920
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
920
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-nodejs-modules.md
|
|
921
921
|
*/
|
|
922
922
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
923
923
|
/**
|
|
924
924
|
* Forbid importing packages through relative paths.
|
|
925
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
925
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-relative-packages.md
|
|
926
926
|
*/
|
|
927
927
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
928
928
|
/**
|
|
929
929
|
* Forbid importing modules from parent directories.
|
|
930
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
930
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-relative-parent-imports.md
|
|
931
931
|
*/
|
|
932
932
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
933
933
|
/**
|
|
934
934
|
* Enforce which files can be imported in a given folder.
|
|
935
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
935
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-restricted-paths.md
|
|
936
936
|
*/
|
|
937
937
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
938
938
|
/**
|
|
939
939
|
* Forbid a module from importing itself.
|
|
940
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
940
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-self-import.md
|
|
941
941
|
*/
|
|
942
942
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
943
943
|
/**
|
|
944
944
|
* Forbid unassigned imports.
|
|
945
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
945
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unassigned-import.md
|
|
946
946
|
*/
|
|
947
947
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
948
948
|
/**
|
|
949
949
|
* Ensure imports point to a file/module that can be resolved.
|
|
950
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
950
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unresolved.md
|
|
951
951
|
*/
|
|
952
952
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
953
953
|
/**
|
|
954
954
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
955
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
955
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-unused-modules.md
|
|
956
956
|
*/
|
|
957
957
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
958
958
|
/**
|
|
959
959
|
* Forbid unnecessary path segments in import and require statements.
|
|
960
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
960
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-useless-path-segments.md
|
|
961
961
|
*/
|
|
962
962
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
963
963
|
/**
|
|
964
964
|
* Forbid webpack loader syntax in imports.
|
|
965
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
965
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/no-webpack-loader-syntax.md
|
|
966
966
|
*/
|
|
967
967
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
968
968
|
/**
|
|
969
969
|
* Enforce a convention in module import order.
|
|
970
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
970
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/order.md
|
|
971
971
|
*/
|
|
972
972
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
973
973
|
/**
|
|
974
974
|
* Prefer a default export if module exports a single name or multiple names.
|
|
975
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
975
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/prefer-default-export.md
|
|
976
976
|
*/
|
|
977
977
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
978
978
|
/**
|
|
979
979
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
980
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
980
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.2/docs/rules/unambiguous.md
|
|
981
981
|
*/
|
|
982
982
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
983
983
|
/**
|
|
@@ -3940,8 +3940,9 @@ interface RuleOptions {
|
|
|
3940
3940
|
*/
|
|
3941
3941
|
'style/jsx-function-call-newline'?: Linter.RuleEntry<StyleJsxFunctionCallNewline>
|
|
3942
3942
|
/**
|
|
3943
|
-
* Enforce JSX indentation
|
|
3943
|
+
* Enforce JSX indentation. Deprecated, use `indent` rule instead.
|
|
3944
3944
|
* @see https://eslint.style/rules/jsx/jsx-indent
|
|
3945
|
+
* @deprecated
|
|
3945
3946
|
*/
|
|
3946
3947
|
'style/jsx-indent'?: Linter.RuleEntry<StyleJsxIndent>
|
|
3947
3948
|
/**
|
|
@@ -4126,7 +4127,7 @@ interface RuleOptions {
|
|
|
4126
4127
|
'style/nonblock-statement-body-position'?: Linter.RuleEntry<StyleNonblockStatementBodyPosition>
|
|
4127
4128
|
/**
|
|
4128
4129
|
* Enforce consistent line breaks after opening and before closing braces
|
|
4129
|
-
* @see https://eslint.style/rules/
|
|
4130
|
+
* @see https://eslint.style/rules/ts/object-curly-newline
|
|
4130
4131
|
*/
|
|
4131
4132
|
'style/object-curly-newline'?: Linter.RuleEntry<StyleObjectCurlyNewline>
|
|
4132
4133
|
/**
|
|
@@ -4136,7 +4137,7 @@ interface RuleOptions {
|
|
|
4136
4137
|
'style/object-curly-spacing'?: Linter.RuleEntry<StyleObjectCurlySpacing>
|
|
4137
4138
|
/**
|
|
4138
4139
|
* Enforce placing object properties on separate lines
|
|
4139
|
-
* @see https://eslint.style/rules/
|
|
4140
|
+
* @see https://eslint.style/rules/ts/object-property-newline
|
|
4140
4141
|
*/
|
|
4141
4142
|
'style/object-property-newline'?: Linter.RuleEntry<StyleObjectPropertyNewline>
|
|
4142
4143
|
/**
|
|
@@ -5651,7 +5652,7 @@ interface RuleOptions {
|
|
|
5651
5652
|
*/
|
|
5652
5653
|
'ts/restrict-template-expressions'?: Linter.RuleEntry<TsRestrictTemplateExpressions>
|
|
5653
5654
|
/**
|
|
5654
|
-
* Enforce consistent
|
|
5655
|
+
* Enforce consistent awaiting of returned promises
|
|
5655
5656
|
* @see https://typescript-eslint.io/rules/return-await
|
|
5656
5657
|
*/
|
|
5657
5658
|
'ts/return-await'?: Linter.RuleEntry<TsReturnAwait>
|
|
@@ -10876,6 +10877,7 @@ type StyleArrayElementNewline = []|[(_StyleArrayElementNewlineBasicConfig | {
|
|
|
10876
10877
|
ArrayPattern?: _StyleArrayElementNewlineBasicConfig
|
|
10877
10878
|
})]
|
|
10878
10879
|
type _StyleArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
10880
|
+
consistent?: boolean
|
|
10879
10881
|
multiline?: boolean
|
|
10880
10882
|
minItems?: (number | null)
|
|
10881
10883
|
})
|
|
@@ -11072,7 +11074,7 @@ type StyleJsxNewline = []|[{
|
|
|
11072
11074
|
}]
|
|
11073
11075
|
// ----- style/jsx-one-expression-per-line -----
|
|
11074
11076
|
type StyleJsxOneExpressionPerLine = []|[{
|
|
11075
|
-
allow?: ("none" | "literal" | "single-child" | "single-line")
|
|
11077
|
+
allow?: ("none" | "literal" | "single-child" | "single-line" | "non-jsx")
|
|
11076
11078
|
}]
|
|
11077
11079
|
// ----- style/jsx-pascal-case -----
|
|
11078
11080
|
type StyleJsxPascalCase = []|[{
|
|
@@ -11705,6 +11707,16 @@ type StyleObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
11705
11707
|
minProperties?: number
|
|
11706
11708
|
consistent?: boolean
|
|
11707
11709
|
})
|
|
11710
|
+
TSTypeLiteral?: (("always" | "never") | {
|
|
11711
|
+
multiline?: boolean
|
|
11712
|
+
minProperties?: number
|
|
11713
|
+
consistent?: boolean
|
|
11714
|
+
})
|
|
11715
|
+
TSInterfaceBody?: (("always" | "never") | {
|
|
11716
|
+
multiline?: boolean
|
|
11717
|
+
minProperties?: number
|
|
11718
|
+
consistent?: boolean
|
|
11719
|
+
})
|
|
11708
11720
|
})]
|
|
11709
11721
|
// ----- style/object-curly-spacing -----
|
|
11710
11722
|
type StyleObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
|
@@ -11754,6 +11766,7 @@ type StyleQuoteProps = ([]|[("always" | "as-needed" | "consistent" | "consistent
|
|
|
11754
11766
|
type StyleQuotes = []|[("single" | "double" | "backtick")]|[("single" | "double" | "backtick"), ("avoid-escape" | {
|
|
11755
11767
|
avoidEscape?: boolean
|
|
11756
11768
|
allowTemplateLiterals?: boolean
|
|
11769
|
+
ignoreStringLiterals?: boolean
|
|
11757
11770
|
})]
|
|
11758
11771
|
// ----- style/rest-spread-spacing -----
|
|
11759
11772
|
type StyleRestSpreadSpacing = []|[("always" | "never")]
|
|
@@ -13986,6 +13999,7 @@ type VueArrayElementNewline = []|[(_VueArrayElementNewlineBasicConfig | {
|
|
|
13986
13999
|
ArrayPattern?: _VueArrayElementNewlineBasicConfig
|
|
13987
14000
|
})]
|
|
13988
14001
|
type _VueArrayElementNewlineBasicConfig = (("always" | "never" | "consistent") | {
|
|
14002
|
+
consistent?: boolean
|
|
13989
14003
|
multiline?: boolean
|
|
13990
14004
|
minItems?: (number | null)
|
|
13991
14005
|
})
|
|
@@ -14960,6 +14974,16 @@ type VueObjectCurlyNewline = []|[((("always" | "never") | {
|
|
|
14960
14974
|
minProperties?: number
|
|
14961
14975
|
consistent?: boolean
|
|
14962
14976
|
})
|
|
14977
|
+
TSTypeLiteral?: (("always" | "never") | {
|
|
14978
|
+
multiline?: boolean
|
|
14979
|
+
minProperties?: number
|
|
14980
|
+
consistent?: boolean
|
|
14981
|
+
})
|
|
14982
|
+
TSInterfaceBody?: (("always" | "never") | {
|
|
14983
|
+
multiline?: boolean
|
|
14984
|
+
minProperties?: number
|
|
14985
|
+
consistent?: boolean
|
|
14986
|
+
})
|
|
14963
14987
|
})]
|
|
14964
14988
|
// ----- vue/object-curly-spacing -----
|
|
14965
14989
|
type VueObjectCurlySpacing = []|[("always" | "never")]|[("always" | "never"), {
|
package/dist/index.js
CHANGED
|
@@ -74,6 +74,7 @@ var GLOB_EXCLUDE = [
|
|
|
74
74
|
"**/.output",
|
|
75
75
|
"**/.vite-inspect",
|
|
76
76
|
"**/.yarn",
|
|
77
|
+
"**/vite.config.*.timestamp-*",
|
|
77
78
|
"**/CHANGELOG*.md",
|
|
78
79
|
"**/*.min.*",
|
|
79
80
|
"**/LICENSE*",
|
|
@@ -1792,10 +1793,11 @@ async function typescript(options = {}) {
|
|
|
1792
1793
|
"ts/no-unsafe-call": "error",
|
|
1793
1794
|
"ts/no-unsafe-member-access": "error",
|
|
1794
1795
|
"ts/no-unsafe-return": "error",
|
|
1796
|
+
"ts/promise-function-async": "error",
|
|
1795
1797
|
"ts/restrict-plus-operands": "error",
|
|
1796
1798
|
"ts/restrict-template-expressions": "error",
|
|
1797
|
-
"ts/return-await": "error",
|
|
1798
|
-
"ts/strict-boolean-expressions": "error",
|
|
1799
|
+
"ts/return-await": ["error", "in-try-catch"],
|
|
1800
|
+
"ts/strict-boolean-expressions": ["error", { allowNullableBoolean: true, allowNullableObject: true }],
|
|
1799
1801
|
"ts/switch-exhaustiveness-check": "error",
|
|
1800
1802
|
"ts/unbound-method": "error"
|
|
1801
1803
|
};
|
|
@@ -1885,10 +1887,7 @@ async function typescript(options = {}) {
|
|
|
1885
1887
|
files: filesTypeAware,
|
|
1886
1888
|
ignores: ignoresTypeAware,
|
|
1887
1889
|
name: "antfu/typescript/rules-type-aware",
|
|
1888
|
-
rules:
|
|
1889
|
-
...tsconfigPath ? typeAwareRules : {},
|
|
1890
|
-
...overrides
|
|
1891
|
-
}
|
|
1890
|
+
rules: typeAwareRules
|
|
1892
1891
|
}] : [],
|
|
1893
1892
|
{
|
|
1894
1893
|
files: ["**/*.d.?([cm])ts"],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhzh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.9.
|
|
4
|
+
"version": "0.9.3",
|
|
5
5
|
"description": "Easton's ESLint config",
|
|
6
6
|
"author": "Easton Zheng <dhzhme@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -71,18 +71,18 @@
|
|
|
71
71
|
"dependencies": {
|
|
72
72
|
"@antfu/install-pkg": "^0.3.3",
|
|
73
73
|
"@clack/prompts": "^0.7.0",
|
|
74
|
-
"@eslint-react/eslint-plugin": "^1.5.
|
|
75
|
-
"@stylistic/eslint-plugin": "^2.
|
|
76
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
77
|
-
"@typescript-eslint/parser": "^7.
|
|
74
|
+
"@eslint-react/eslint-plugin": "^1.5.18",
|
|
75
|
+
"@stylistic/eslint-plugin": "^2.3.0",
|
|
76
|
+
"@typescript-eslint/eslint-plugin": "^7.14.1",
|
|
77
|
+
"@typescript-eslint/parser": "^7.14.1",
|
|
78
78
|
"eslint-config-flat-gitignore": "^0.1.5",
|
|
79
79
|
"eslint-flat-config-utils": "^0.2.5",
|
|
80
80
|
"eslint-merge-processors": "^0.1.0",
|
|
81
81
|
"eslint-plugin-antfu": "^2.3.3",
|
|
82
82
|
"eslint-plugin-command": "^0.2.3",
|
|
83
83
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
84
|
-
"eslint-plugin-import-x": "^0.5.
|
|
85
|
-
"eslint-plugin-jsdoc": "^48.
|
|
84
|
+
"eslint-plugin-import-x": "^0.5.2",
|
|
85
|
+
"eslint-plugin-jsdoc": "^48.5.0",
|
|
86
86
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
87
87
|
"eslint-plugin-markdown": "^5.0.0",
|
|
88
88
|
"eslint-plugin-n": "^17.9.0",
|
|
@@ -91,46 +91,46 @@
|
|
|
91
91
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
92
92
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
93
93
|
"eslint-plugin-regexp": "^2.6.0",
|
|
94
|
-
"eslint-plugin-toml": "^0.11.
|
|
94
|
+
"eslint-plugin-toml": "^0.11.1",
|
|
95
95
|
"eslint-plugin-unicorn": "^54.0.0",
|
|
96
96
|
"eslint-plugin-unused-imports": "^3.2.0",
|
|
97
97
|
"eslint-plugin-vitest": "^0.5.4",
|
|
98
98
|
"eslint-plugin-vue": "^9.26.0",
|
|
99
99
|
"eslint-plugin-yml": "^1.14.0",
|
|
100
100
|
"eslint-processor-vue-blocks": "^0.1.2",
|
|
101
|
-
"globals": "^15.
|
|
101
|
+
"globals": "^15.6.0",
|
|
102
102
|
"jsonc-eslint-parser": "^2.4.0",
|
|
103
103
|
"local-pkg": "^0.5.0",
|
|
104
104
|
"parse-gitignore": "^2.0.0",
|
|
105
105
|
"picocolors": "^1.0.1",
|
|
106
|
-
"toml-eslint-parser": "^0.
|
|
106
|
+
"toml-eslint-parser": "^0.10.0",
|
|
107
107
|
"vue-eslint-parser": "^9.4.3",
|
|
108
108
|
"yaml-eslint-parser": "^1.2.3",
|
|
109
109
|
"yargs": "^17.7.2"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
112
112
|
"@antfu/ni": "^0.21.12",
|
|
113
|
-
"@eslint/config-inspector": "^0.
|
|
113
|
+
"@eslint/config-inspector": "^0.5.1",
|
|
114
114
|
"@prettier/plugin-xml": "^3.4.1",
|
|
115
|
-
"@stylistic/eslint-plugin-migrate": "^2.
|
|
115
|
+
"@stylistic/eslint-plugin-migrate": "^2.3.0",
|
|
116
116
|
"@types/eslint": "^8.56.10",
|
|
117
117
|
"@types/fs-extra": "^11.0.4",
|
|
118
|
-
"@types/node": "^20.14.
|
|
118
|
+
"@types/node": "^20.14.9",
|
|
119
119
|
"@types/prompts": "^2.4.9",
|
|
120
120
|
"@types/yargs": "^17.0.32",
|
|
121
121
|
"@unocss/eslint-plugin": "^0.61.0",
|
|
122
122
|
"astro-eslint-parser": "^1.0.2",
|
|
123
123
|
"bumpp": "^9.4.1",
|
|
124
124
|
"bundle-require": "^5.0.0",
|
|
125
|
-
"eslint": "npm:eslint-ts-patch@9.
|
|
125
|
+
"eslint": "npm:eslint-ts-patch@9.5.0-0",
|
|
126
126
|
"eslint-plugin-astro": "^1.2.2",
|
|
127
127
|
"eslint-plugin-format": "^0.1.2",
|
|
128
|
-
"eslint-plugin-solid": "^0.14.
|
|
129
|
-
"eslint-plugin-svelte": "^2.
|
|
130
|
-
"eslint-ts-patch": "9.
|
|
128
|
+
"eslint-plugin-solid": "^0.14.1",
|
|
129
|
+
"eslint-plugin-svelte": "^2.41.0",
|
|
130
|
+
"eslint-ts-patch": "9.5.0-0",
|
|
131
131
|
"eslint-typegen": "^0.2.4",
|
|
132
132
|
"esno": "^4.7.0",
|
|
133
|
-
"execa": "^9.
|
|
133
|
+
"execa": "^9.3.0",
|
|
134
134
|
"fast-glob": "^3.3.2",
|
|
135
135
|
"fs-extra": "^11.2.0",
|
|
136
136
|
"lint-staged": "^15.2.7",
|
|
@@ -139,13 +139,16 @@
|
|
|
139
139
|
"rimraf": "^5.0.7",
|
|
140
140
|
"simple-git-hooks": "^2.11.1",
|
|
141
141
|
"svelte": "^4.2.18",
|
|
142
|
-
"svelte-eslint-parser": "^0.
|
|
142
|
+
"svelte-eslint-parser": "^0.39.2",
|
|
143
143
|
"tsup": "^8.1.0",
|
|
144
|
-
"tsx": "^4.15.
|
|
145
|
-
"typescript": "^5.
|
|
144
|
+
"tsx": "^4.15.7",
|
|
145
|
+
"typescript": "^5.5.2",
|
|
146
146
|
"vitest": "^1.6.0",
|
|
147
|
-
"vue": "^3.4.
|
|
148
|
-
"@dhzh/eslint-config": "0.9.
|
|
147
|
+
"vue": "^3.4.31",
|
|
148
|
+
"@dhzh/eslint-config": "0.9.3"
|
|
149
|
+
},
|
|
150
|
+
"resolutions": {
|
|
151
|
+
"tsx": "~4.14"
|
|
149
152
|
},
|
|
150
153
|
"simple-git-hooks": {
|
|
151
154
|
"pre-commit": "npx lint-staged"
|