update: lint config

This commit is contained in:
Vick Scarlet
2026-08-16 20:06:16 +08:00
committed by 神戸小鳥
parent afb4276dd1
commit ad4e83fc47
11 changed files with 1752 additions and 288 deletions
+14
View File
@@ -0,0 +1,14 @@
import { defineConfig } from 'eslint/config'
import react from 'eslint-plugin-react'
import reactHooks from 'eslint-plugin-react-hooks'
import defaultConfig from '../../eslint.config.ts'
export default defineConfig([
defaultConfig,
{
...react.configs.flat.recommended!,
settings: { react: { version: '19' } },
},
react.configs.flat['jsx-runtime']!,
reactHooks.configs.flat.recommended,
])
+2 -4
View File
@@ -22,10 +22,8 @@
"@testing-library/jest-dom": "^7.0.0",
"@testing-library/react": "^16.3.2",
"@types/react": "^19.2.18",
"eslint-config-react": "^1.1.7"
},
"eslintConfig": {
"extends": "react"
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1"
},
"exports": {
".": {