Skip to content

Commit 1eb907b

Browse files
committed
Fix type issue
1 parent 5f920c5 commit 1eb907b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/configs/recommended.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import devupUiEslintPlugin from '@devup-ui/eslint-plugin'
22
import js from '@eslint/js'
33
import pluginQuery from '@tanstack/eslint-plugin-query'
4+
import type { Linter } from 'eslint'
45
import * as mdx from 'eslint-plugin-mdx'
56
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
67
// @ts-ignore
@@ -170,4 +171,4 @@ export default [
170171
'@typescript-eslint/no-empty-object-type': 'off',
171172
},
172173
},
173-
]
174+
] as Linter.Config[]

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import type { Linter } from 'eslint'
2+
13
import recommended from './configs/recommended'
24
export * as rules from './rules'
35

4-
export const configs = {
6+
export const configs: { recommended: Linter.Config[] } = {
57
recommended,
6-
}
8+
} as const
79

810
export default {
911
configs,

0 commit comments

Comments
 (0)