Skip to content

Commit 290f091

Browse files
committed
feat: 更新 eslint 配置
1 parent e315959 commit 290f091

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

eslint.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import globals from 'globals'
33
import reactHooks from 'eslint-plugin-react-hooks'
44
import reactRefresh from 'eslint-plugin-react-refresh'
55
import tseslint from 'typescript-eslint'
6+
import { defineConfig } from 'eslint/config'
67
import { globalIgnores } from 'eslint/config'
78

8-
export default tseslint.config([
9+
export default defineConfig([
910
globalIgnores(['dist']),
1011
{
1112
files: ['**/*.{ts,tsx}'],

0 commit comments

Comments
 (0)