-
Notifications
You must be signed in to change notification settings - Fork 0
/
legacy.eslintrc.cjs
45 lines (45 loc) · 1.17 KB
/
legacy.eslintrc.cjs
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
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
},
extends: [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:tailwindcss/recommended",
"next/core-web-vitals",
"prettier",
],
plugins: ["json-format", "react", "tailwindcss", "@typescript-eslint"],
rules: {
"@next/next/no-html-link-for-pages": "off",
"@typescript-eslint/ban-ts-comment": ["error", { "ts-ignore": "allow-with-description" }],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"tailwindcss/no-custom-classname": "off",
},
settings: {
tailwindcss: {
callees: ["cn", "cva"],
config: "tailwind.config.cjs",
},
},
overrides: [
{
files: ["*.ts", "*.tsx"],
parser: "@typescript-eslint/parser",
},
{
// Adapt to your needs (e.g. some might want to only override "next.config.js")
files: ["*.cjs"],
// This is the default parser of ESLint
parser: "espree",
parserOptions: {
ecmaVersion: 2020,
},
},
],
}