-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheslint.config.mjs
39 lines (36 loc) · 897 Bytes
/
eslint.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import { FlatCompat } from "@eslint/eslintrc"
const compat = new FlatCompat({
baseDirectory: import.meta.dir,
})
/** @type {import('eslint').Linter.Config[]} */
const config = [
...compat.config({
$schema: "https://json.schemastore.org/eslintrc",
root: true,
extends: [
"next/core-web-vitals",
"next/typescript",
"prettier",
"plugin:tailwindcss/recommended",
],
plugins: ["tailwindcss", "@typescript-eslint"],
ignorePatterns: ["node_modules/", ".next/", "dist/", "build/"],
rules: {
"@next/next/no-html-link-for-pages": "off",
"react/jsx-key": "off",
"tailwindcss/no-custom-classname": "off",
"@next/next/no-img-element": "off",
"react-hooks/exhaustive-deps": "off",
},
settings: {
tailwindcss: {
callees: ["cn"],
config: "./tailwind.config.js",
},
},
}),
{
files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"],
},
]
export default config