import eslint from "@eslint/js"; import tseslint from "typescript-eslint"; import globals from "globals"; import react from "eslint-plugin-react"; import reactHooks from "eslint-plugin-react-hooks"; import prettier from "eslint-plugin-prettier"; export default tseslint.config( { ignores: ["node_modules", "dist"] }, { settings: { react: { version: "detect" } } }, eslint.configs.recommended, tseslint.configs.recommended, react.configs.flat.recommended, { files: ["**/*.{ts,tsx}"], languageOptions: { ecmaVersion: 2020, globals: globals.browser }, plugins: { react, "react-hooks": reactHooks, prettier }, rules: { ...reactHooks.configs.recommended.rules, "@typescript-eslint/no-explicit-any": "off", "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": "warn", "@typescript-eslint/no-unused-expressions": "off", "@typescript-eslint/no-require-imports": "off" } } );