UI Library for Design Engineers. Animated components and effects you can copy and paste into your apps. Free. Open Source.
import { dirname } from "path"
import { fileURLToPath } from "url"
import { FlatCompat } from "@eslint/eslintrc"
const __filename = fileURLToPath(import.meta.url)
const __dirname = dirname(__filename)
const compat = new FlatCompat({
baseDirectory: __dirname,
})
const eslintConfig = [
{
ignores: [
"node_modules/**",
".next/**",
"out/**",
"build/**",
"next-env.d.ts",
".source/**",
],
},
...compat.config({
extends: ["next/core-web-vitals", "next/typescript"],
rules: {
"@next/next/no-duplicate-head": "off",
},
}),
{
files: ["registry/**/*.tsx"],
rules: {
"@next/next/no-img-element": "off",
},
},
]
export default eslintConfig