Skip to content

Commit 1bf412a

Browse files
committedJul 27, 2024
feat: upgrade @types/eslint
1 parent c22689f commit 1bf412a

File tree

5 files changed

+541
-457
lines changed

5 files changed

+541
-457
lines changed
 

‎package.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -98,25 +98,25 @@
9898
"dependencies": {
9999
"@antfu/install-pkg": "^0.3.3",
100100
"@clack/prompts": "^0.7.0",
101-
"@stylistic/eslint-plugin": "^2.6.0-beta.0",
101+
"@stylistic/eslint-plugin": "^2.6.0-beta.1",
102102
"@typescript-eslint/eslint-plugin": "8.0.0-alpha.40",
103103
"@typescript-eslint/parser": "8.0.0-alpha.40",
104104
"eslint-config-flat-gitignore": "^0.1.8",
105-
"eslint-flat-config-utils": "^0.2.5",
105+
"eslint-flat-config-utils": "^0.3.0",
106106
"eslint-merge-processors": "^0.1.0",
107107
"eslint-plugin-antfu": "^2.3.4",
108108
"eslint-plugin-command": "^0.2.3",
109109
"eslint-plugin-eslint-comments": "^3.2.0",
110-
"eslint-plugin-import-x": "^3.0.1",
110+
"eslint-plugin-import-x": "^3.1.0",
111111
"eslint-plugin-jsdoc": "^48.8.3",
112112
"eslint-plugin-jsonc": "^2.16.0",
113113
"eslint-plugin-markdown": "^5.1.0",
114-
"eslint-plugin-n": "^17.9.0",
114+
"eslint-plugin-n": "^17.10.1",
115115
"eslint-plugin-no-only-tests": "^3.1.0",
116-
"eslint-plugin-perfectionist": "^2.11.0",
116+
"eslint-plugin-perfectionist": "^3.0.0",
117117
"eslint-plugin-regexp": "^2.6.0",
118118
"eslint-plugin-toml": "^0.11.1",
119-
"eslint-plugin-unicorn": "^54.0.0",
119+
"eslint-plugin-unicorn": "^55.0.0",
120120
"eslint-plugin-unused-imports": "^4.0.1",
121121
"eslint-plugin-vitest": "^0.5.4",
122122
"eslint-plugin-vue": "^9.27.0",
@@ -135,16 +135,16 @@
135135
"devDependencies": {
136136
"@antfu/eslint-config": "workspace:*",
137137
"@antfu/ni": "^0.22.0",
138-
"@eslint-react/eslint-plugin": "^1.5.30",
138+
"@eslint-react/eslint-plugin": "^1.6.0",
139139
"@eslint/config-inspector": "^0.5.2",
140140
"@prettier/plugin-xml": "^3.4.1",
141-
"@stylistic/eslint-plugin-migrate": "^2.3.0",
142-
"@types/eslint": "^8.56.10",
141+
"@stylistic/eslint-plugin-migrate": "^2.4.0",
142+
"@types/eslint": "^9.6.0",
143143
"@types/fs-extra": "^11.0.4",
144-
"@types/node": "^20.14.11",
144+
"@types/node": "^20.14.12",
145145
"@types/prompts": "^2.4.9",
146146
"@types/yargs": "^17.0.32",
147-
"@unocss/eslint-plugin": "^0.61.5",
147+
"@unocss/eslint-plugin": "^0.61.6",
148148
"astro-eslint-parser": "^1.0.2",
149149
"bumpp": "^9.4.1",
150150
"eslint": "npm:eslint-ts-patch@9.5.0-0",
@@ -155,7 +155,7 @@
155155
"eslint-plugin-solid": "^0.14.1",
156156
"eslint-plugin-svelte": "^2.43.0",
157157
"eslint-ts-patch": "9.5.0-0",
158-
"eslint-typegen": "^0.2.4",
158+
"eslint-typegen": "^0.3.0",
159159
"esno": "^4.7.0",
160160
"execa": "^9.3.0",
161161
"fast-glob": "^3.3.2",
@@ -167,11 +167,11 @@
167167
"simple-git-hooks": "^2.11.1",
168168
"svelte": "^4.2.18",
169169
"svelte-eslint-parser": "^0.41.0",
170-
"tsup": "^8.2.2",
170+
"tsup": "^8.2.3",
171171
"tsx": "^4.16.2",
172-
"typescript": "^5.5.3",
172+
"typescript": "^5.5.4",
173173
"vitest": "^2.0.4",
174-
"vue": "^3.4.33"
174+
"vue": "^3.4.34"
175175
},
176176
"resolutions": {
177177
"tsx": "~4.16.2"

‎pnpm-lock.yaml

+522-438
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/factory.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const defaultPluginRenaming = {
7979
*/
8080
export function antfu(
8181
options: OptionsConfig & TypedFlatConfigItem = {},
82-
...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.FlatConfig[]>[]
82+
...userConfigs: Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | FlatConfigComposer<any, any> | Linter.Config[]>[]
8383
): FlatConfigComposer<TypedFlatConfigItem, ConfigNames> {
8484
const {
8585
astro: enableAstro = false,

‎src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export type Rules = RuleOptions
1212

1313
export type { ConfigNames }
1414

15-
export type TypedFlatConfigItem = Omit<Linter.FlatConfig<Linter.RulesRecord & Rules>, 'plugins'> & {
15+
export type TypedFlatConfigItem = Omit<Linter.Config<Linter.RulesRecord & Rules>, 'plugins'> & {
1616
// Relax plugins type limitation, as most of the plugins did not have correct type info yet.
1717
/**
1818
* An object containing a name-value mapping of plugin names to plugin objects. When `files` is specified, these plugins are only available to the matching files.

‎test/types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import type { Linter } from 'eslint'
22
import type { TypedFlatConfigItem } from '../src';
33

44
// Make sure they are compatible
5-
((): Linter.FlatConfig => ({} as TypedFlatConfigItem))();
6-
((): TypedFlatConfigItem => ({} as Linter.FlatConfig))()
5+
((): Linter.Config => ({} as TypedFlatConfigItem))();
6+
((): TypedFlatConfigItem => ({} as Linter.Config))()

0 commit comments

Comments
 (0)
Please sign in to comment.