@@ -15,6 +15,20 @@ export default [
|
||||
},
|
||||
},
|
||||
{
|
||||
ignores: ["eslint.config.js", ".prettierrc"],
|
||||
ignores: [
|
||||
"eslint.config.js",
|
||||
".prettierrc",
|
||||
// Plain JS outside the TypeScript project, so the type-aware rules
|
||||
// cannot parse it at all.
|
||||
"public/**",
|
||||
// Regenerated by TanStack Router on every build; its own header asks to
|
||||
// be excluded from linters.
|
||||
"src/routeTree.gen.ts",
|
||||
// Vendored from the shadcn registry and re-fetched by `shadcn add`, so a
|
||||
// fix here does not survive. Its optional chains guard against runtime
|
||||
// shapes that are looser than the types third-party libraries declare,
|
||||
// which is exactly what no-unnecessary-condition cannot see.
|
||||
"src/components/ui/**",
|
||||
],
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user