-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy patheslint.config.mjs
48 lines (46 loc) · 1.21 KB
/
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
40
41
42
43
44
45
46
47
48
import tailwindcss from "eslint-plugin-tailwindcss";
import tsParser from "@typescript-eslint/parser";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
recommendedConfig: js.configs.recommended,
});
export default [
...compat.extends(
"next/core-web-vitals",
"next/typescript",
"prettier",
"plugin:tailwindcss/recommended"
),
{
plugins: {
tailwindcss,
},
settings: {
tailwindcss: {
callees: ["cn", "cva"],
config: "tailwind.config.js",
},
next: {
rootDir: "./"
}
},
rules: {
"tailwindcss/no-custom-classname": "off",
"@next/next/no-img-element": "error",
"@next/next/no-html-link-for-pages": "error",
},
},
{
files: ["**/*.ts", "**/*.tsx"],
languageOptions: {
parser: tsParser,
},
rules: {
"@typescript-eslint/no-explicit-any": "off",
"prefer-const": "warn",
"@next/next/no-img-element": "warn"
}
},
];