Files
k-mood/spa/eslint.config.js
Gabriel Kaszewski 23d052278a
All checks were successful
CI / ci (push) Successful in 19m38s
changes
2026-08-26 20:58:14 +02:00

35 lines
1.0 KiB
JavaScript

// @ts-check
import { tanstackConfig } from "@tanstack/eslint-config"
export default [
...tanstackConfig,
{
rules: {
"import/no-cycle": "off",
"import/order": "off",
"sort-imports": "off",
"@typescript-eslint/array-type": "off",
"@typescript-eslint/require-await": "off",
"pnpm/json-enforce-catalog": "off",
},
},
{
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/**",
],
},
]