Files
upstream-shadcn-ui/apps/v4/eslint.config.mjs
upstream-mirror 1416db152c
All checks were successful
Release / Create Version PR or Publish Stable Release (push) Has been skipped
Release / Publish Prerelease to NPM (push) Has been skipped
Monitor Registries / Monitor registry health (push) Has been skipped
snapshot of https://github.com/shadcn-ui/ui.git (main, 2026-09-15; blobs > 131072B omitted)
2026-09-15 22:44:43 +05:00

44 lines
1.1 KiB
JavaScript

import nextVitals from "eslint-config-next/core-web-vitals"
import tseslint from "typescript-eslint"
const eslintConfig = tseslint.config(
// Remove the @typescript-eslint plugin from next/typescript to prevent
// duplicate registration with tseslint.configs.recommended.
...nextVitals.map((config) =>
config.name === "next/typescript"
? { ...config, plugins: {} }
: config
),
...tseslint.configs.recommended,
{
ignores: [
"node_modules/**",
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
".source/**",
"**/__index__.tsx",
"**/__components__/**",
],
},
{
rules: {
"react-hooks/incompatible-library": "off",
"react-hooks/purity": "off",
"@next/next/no-html-link-for-pages": "off",
"@next/next/no-img-element": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/consistent-type-imports": [
"error",
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
},
],
},
},
)
export default eslintConfig