module.exports = { root: true, env: { browser: true, es2020: true }, extends: [ "eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:@typescript-eslint/stylistic", "plugin:react-hooks/recommended", "plugin:react/recommended", "plugin:react/jsx-runtime", ], ignorePatterns: ["dist", ".eslintrc.cjs", "tailwind.config.js", "postcss.config.js"], parser: "@typescript-eslint/parser", plugins: ["react-refresh"], parserOptions: { ecmaVersion: "latest", sourceType: "module", project: ["./tsconfig.json", "./tsconfig.node.json"], tsconfigRootDir: __dirname, }, rules: { "react-refresh/only-export-components": ["warn", { allowConstantExport: true }], }, };