import js from "@eslint/js"; import pluginReact from "eslint-plugin-react"; import pluginReactHooks from "eslint-plugin-react-hooks"; import { defineConfig } from "eslint/config"; import globals from "globals"; import tseslint from "typescript-eslint"; export default defineConfig([ { files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"], plugins: { js, "react-hooks": pluginReactHooks, }, extends: ["js/recommended", tseslint.configs.recommended], languageOptions: { globals: globals.browser }, rules: { "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": "error", "@typescript-eslint/no-explicit-any": "off", }, }, pluginReact.configs.flat["jsx-runtime"], ]);