Skip to content

Commit

Permalink
chore(eslint-config): use Linter.Config instead of Linter.FlatConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaa committed Dec 28, 2024
1 parent 05293e9 commit d9d588d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/antfu.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/functional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import functionalPlugin from 'eslint-plugin-functional'

import type { Options } from '../options'

export const functional = (option: Exclude<Options['functional'], false>): Linter.FlatConfig[] => [
export const functional = (option: Exclude<Options['functional'], false>): Linter.Config[] => [
{
name: 'importantimport/functional/setup',
plugins: { functional: functionalPlugin as unknown as ESLint.Plugin },
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/configs/sort.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/src/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<Options> = {}): ResolvableFlatConfig<Linter.FlatConfig> => {
export const ii = (userOptions: Partial<Options> = {}): ResolvableFlatConfig<Linter.Config> => {
const options = defu(userOptions, defaultOptions)

return [
Expand Down

0 comments on commit d9d588d

Please sign in to comment.