import js from "@eslint/js"; import tseslint from "typescript-eslint"; import reactPlugin from "eslint-plugin-react"; import reactHooksPlugin from "eslint-plugin-react-hooks"; /** @type {import("typescript-eslint").Config} */ export default tseslint.config( js.configs.recommended, ...tseslint.configs.recommendedTypeChecked, { plugins: { react: reactPlugin, "react-hooks": reactHooksPlugin, }, rules: { "react/react-in-jsx-scope": "off", "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": "warn", "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }], "@typescript-eslint/consistent-type-imports": "error", }, } );