mirror of
https://github.com/shadcn-ui/ui.git
synced 2026-06-11 09:51:40 +00:00
fix: eslint config
This commit is contained in:
@@ -1,19 +1,24 @@
|
||||
import nextVitals from "eslint-config-next/core-web-vitals"
|
||||
import { defineConfig, globalIgnores } from "eslint/config"
|
||||
import tseslint from "typescript-eslint"
|
||||
|
||||
const eslintConfig = defineConfig([
|
||||
...nextVitals,
|
||||
const eslintConfig = tseslint.config(
|
||||
...nextVitals.map((config) =>
|
||||
config.name === "next/typescript"
|
||||
? { ...config, plugins: {} }
|
||||
: config
|
||||
),
|
||||
...tseslint.configs.recommended,
|
||||
globalIgnores([
|
||||
"node_modules/**",
|
||||
".next/**",
|
||||
"out/**",
|
||||
"build/**",
|
||||
"next-env.d.ts",
|
||||
".source/**",
|
||||
"**/__index__.tsx",
|
||||
]),
|
||||
{
|
||||
ignores: [
|
||||
"node_modules/**",
|
||||
".next/**",
|
||||
"out/**",
|
||||
"build/**",
|
||||
"next-env.d.ts",
|
||||
".source/**",
|
||||
"**/__index__.tsx",
|
||||
],
|
||||
},
|
||||
{
|
||||
rules: {
|
||||
"react-hooks/incompatible-library": "off",
|
||||
@@ -30,6 +35,6 @@ const eslintConfig = defineConfig([
|
||||
],
|
||||
},
|
||||
},
|
||||
])
|
||||
)
|
||||
|
||||
export default eslintConfig
|
||||
|
||||
Reference in New Issue
Block a user