Skip to content

Commit 48c1f7c

Browse files
committed
chore: update eslint type
1 parent 87de88e commit 48c1f7c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,18 @@ import {
2323
unocss,
2424
vue,
2525
} from './configs'
26+
import {
27+
isInEditor as defaultIsInEditor,
28+
hasTypeScript,
29+
hasVue,
30+
} from './env'
2631
import {
2732
combine,
2833
getOverrides,
2934
interopDefault,
3035
renamePluginInConfigs,
3136
resolveSubOptions,
3237
} from './shared'
33-
import {
34-
isInEditor as defaultIsInEditor,
35-
hasTypeScript,
36-
hasVue,
37-
} from './env'
3838
import type { Awaitable, OptionsConfig, TypedFlatConfigItem } from './types'
3939
import type { Linter } from 'eslint'
4040

@@ -69,15 +69,15 @@ export const defaultPluginRenaming = {
6969
*
7070
* @param {OptionsConfig & TypedFlatConfigItem} options
7171
* The options for generating the ESLint configurations.
72-
* @param {Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.FlatConfig[]>[]} userConfigs
72+
* @param {Awaitable<TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.Config[]>[]} userConfigs
7373
* The user configurations to be merged with the generated configurations.
7474
* @returns {Promise<TypedFlatConfigItem[]>}
7575
* The merged ESLint configurations.
7676
*/
7777
export async function defineConfig(
7878
options: OptionsConfig & TypedFlatConfigItem = {},
7979
...userConfigs: Awaitable<
80-
TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.FlatConfig[]
80+
TypedFlatConfigItem | TypedFlatConfigItem[] | Linter.Config[]
8181
>[]
8282
): Promise<TypedFlatConfigItem[]> {
8383
const {

src/types/rule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export type Rules = RuleOptions
66
export type { ConfigNames }
77

88
export type TypedFlatConfigItem = Omit<
9-
Linter.FlatConfig<Linter.RulesRecord & Rules>,
9+
Linter.Config<Linter.RulesRecord & Rules>,
1010
'plugins'
1111
> & {
1212
// Relax plugins type limitation, as most of the plugins did not have correct type info yet.

0 commit comments

Comments
 (0)