import js from "@eslint/js"; import tseslint from "typescript-eslint"; import reactHooks from "eslint-plugin-react-hooks"; export default tseslint.config( js.configs.recommended, ...tseslint.configs.recommended, { ignores: ["node_modules/**", "dist/**", "src-tauri/target/**"], }, { files: ["**/*.{js,jsx,ts,tsx}"], plugins: { "react-hooks": reactHooks, }, rules: { "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": "warn", }, } );