import tseslint from "@typescript-eslint/eslint-plugin"; import tsParser from "@typescript-eslint/parser"; import reactHooks from "eslint-plugin-react-hooks"; export default [ { ignores: ["dist/**", "node_modules/**"], }, { files: ["src/**/*.{ts,tsx}"], languageOptions: { parser: tsParser, parserOptions: { ecmaVersion: "latest", sourceType: "module", ecmaFeatures: { jsx: true }, }, }, plugins: { "@typescript-eslint": tseslint, "react-hooks": reactHooks, }, rules: { ...tseslint.configs.recommended.rules, ...reactHooks.configs.recommended.rules, "@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_", varsIgnorePattern: "^_" }], "@typescript-eslint/no-explicit-any": "warn", }, }, ];