import js from "@eslint/js"; import globals from "globals"; import reactHooks from "eslint-plugin-react-hooks"; import tseslint from "typescript-eslint"; export default tseslint.config( { ignores: ["dist/**", "node_modules/**", "tests/**/*.spec.ts"] }, js.configs.recommended, ...tseslint.configs.recommended, { files: ["src/**/*.{ts,tsx}", "*.config.ts"], languageOptions: { globals: { ...globals.browser, ...globals.node }, }, plugins: { "react-hooks": reactHooks }, rules: { ...reactHooks.configs.recommended.rules, "react-hooks/set-state-in-effect": "off", "react-hooks/purity": "off", "@typescript-eslint/no-explicit-any": "off", "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }], "no-empty": ["error", { allowEmptyCatch: true }], }, }, );