移除 react

This commit is contained in:
lutinglt
2025-08-05 12:59:23 +08:00
parent 305b2eca0b
commit a1cc1509ce
34 changed files with 9 additions and 33 deletions

11
eslint.config.js vendored
View File

@@ -1,6 +1,4 @@
import js from "@eslint/js";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import globals from "globals";
import tseslint from "typescript-eslint";
@@ -8,17 +6,10 @@ export default tseslint.config(
{ ignores: ["dist"] },
{
extends: [js.configs.recommended, ...tseslint.configs.recommended],
files: ["**/*.{ts,tsx}"],
files: ["**/*.{ts}"],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
plugins: {
"react-hooks": reactHooks,
"react-refresh": reactRefresh,
},
rules: {
...reactHooks.configs.recommended.rules,
},
}
);