feat: upgrade deps; fix lint for test pages

This commit is contained in:
Simon
2025-10-12 00:12:57 +08:00
parent 9f88439ee4
commit f923e8a6db
4 changed files with 1014 additions and 722 deletions

View File

@@ -3,18 +3,19 @@ import reactDom from 'eslint-plugin-react-dom'
import reactHooks from 'eslint-plugin-react-hooks'
import reactRefresh from 'eslint-plugin-react-refresh'
import reactX from 'eslint-plugin-react-x'
import { globalIgnores } from 'eslint/config'
import { defineConfig, globalIgnores } from 'eslint/config'
import globals from 'globals'
import tseslint from 'typescript-eslint'
export default tseslint.config([
export default defineConfig([
globalIgnores(['dist', 'test-pages']),
reactHooks.configs.flat.recommended,
{
files: ['**/*.{ts,tsx}'],
extends: [
js.configs.recommended,
tseslint.configs.recommended,
reactHooks.configs['recommended-latest'],
// reactHooks.configs['recommended-latest'],
reactRefresh.configs.vite,
// Remove tseslint.configs.recommended and replace with this