import eslint from "@eslint/js"; import reactHooks from "eslint-plugin-react-hooks"; import globals from "globals"; import tseslint from "typescript-eslint"; export default tseslint.config( { ignores: ["**/dist/**", "**/coverage/**", "**/node_modules/**"], }, eslint.configs.recommended, ...tseslint.configs.recommended, { files: ["**/*.{ts,tsx}"], languageOptions: { globals: { ...globals.browser, ...globals.node, }, }, rules: { "@typescript-eslint/consistent-type-imports": "error", }, }, { files: ["**/*.tsx"], plugins: { "react-hooks": reactHooks, }, rules: reactHooks.configs.recommended.rules, }, );