diff --git a/eslint.config.mjs b/eslint.config.mjs index 9d35a8c..de0e908 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -12,7 +12,6 @@ export default defineConfig( lessOpinionated: true, preferESM: false, ignores: [ - "public/mockServiceWorker.js", "src/components/ui", "pnpm-lock.yaml", ], @@ -23,10 +22,16 @@ export default defineConfig( whitelist: ["center"], }, }, + rules: { + "react-refresh/only-export-components": "off", + }, + }, + { + files: ["**/pages/**/*.tsx"], rules: { "react-refresh/only-export-components": [ "warn", - { allowExportNames: ["loader"] }, + { allowExportNames: ["loader", "Component", "action"] }, ], }, },