diff --git a/packages/eslint-config/src/configs/antfu.ts b/packages/eslint-config/src/configs/antfu.ts index a089a73..ccaa8bc 100644 --- a/packages/eslint-config/src/configs/antfu.ts +++ b/packages/eslint-config/src/configs/antfu.ts @@ -1,6 +1,6 @@ import type { Linter } from 'eslint' -export const disableAntfuTopLevelFunction: Linter.FlatConfig = { +export const disableAntfuTopLevelFunction: Linter.Config = { name: 'importantimport/antfu/rules', rules: { 'antfu/top-level-function': 'off', diff --git a/packages/eslint-config/src/configs/functional.ts b/packages/eslint-config/src/configs/functional.ts index bf01d3d..b1e61ff 100644 --- a/packages/eslint-config/src/configs/functional.ts +++ b/packages/eslint-config/src/configs/functional.ts @@ -5,7 +5,7 @@ import functionalPlugin from 'eslint-plugin-functional' import type { Options } from '../options' -export const functional = (option: Exclude): Linter.FlatConfig[] => [ +export const functional = (option: Exclude): Linter.Config[] => [ { name: 'importantimport/functional/setup', plugins: { functional: functionalPlugin as unknown as ESLint.Plugin }, diff --git a/packages/eslint-config/src/configs/sort.ts b/packages/eslint-config/src/configs/sort.ts index c4e336b..426639f 100644 --- a/packages/eslint-config/src/configs/sort.ts +++ b/packages/eslint-config/src/configs/sort.ts @@ -5,7 +5,7 @@ import type { Linter } from 'eslint' * * Requires `jsonc` config */ -export const sortPackageJsonScripts: Linter.FlatConfig = { +export const sortPackageJsonScripts: Linter.Config = { files: ['**/package.json'], name: 'importantimport/sort/package-json-scripts', rules: { diff --git a/packages/eslint-config/src/factory.ts b/packages/eslint-config/src/factory.ts index adb8358..8fcb95e 100644 --- a/packages/eslint-config/src/factory.ts +++ b/packages/eslint-config/src/factory.ts @@ -6,7 +6,7 @@ import { defu } from 'defu' import { disableAntfuTopLevelFunction, functional, perfectionist, sortPackageJsonScripts } from './configs' import { defaultOptions, type Options } from './options' -export const ii = (userOptions: Partial = {}): ResolvableFlatConfig => { +export const ii = (userOptions: Partial = {}): ResolvableFlatConfig => { const options = defu(userOptions, defaultOptions) return [