import js from "@eslint/js"; import reactHooks from "eslint-plugin-react-hooks"; import globals from "globals"; import tseslint from "typescript-eslint"; export default tseslint.config( { ignores: ["node_modules", "playwright-report", "test-results", ".e2e-hub"] }, js.configs.recommended, ...tseslint.configs.recommended, { files: ["**/*.{ts,tsx,js}"], languageOptions: { globals: { ...globals.browser, ...globals.node } }, plugins: { "react-hooks": reactHooks }, rules: { "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": "error" }, }, );