fix(frontend): Add ignore rules for eslint on shadcn components.

This commit is contained in:
Elisiário Couto
2025-09-15 01:47:50 +01:00
parent 66db34c712
commit 74a700ff87
2 changed files with 19 additions and 0 deletions

View File

@@ -19,5 +19,17 @@ export default tseslint.config([
ecmaVersion: 2020,
globals: globals.browser,
},
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
},
},
{
files: ["src/components/**/*.{ts,tsx}", "src/contexts/**/*.{ts,tsx}"],
rules: {
"react-refresh/only-export-components": "off",
},
},
]);