-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
38 lines (38 loc) · 1.17 KB
/
.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
/* eslint-env node */
module.exports = {
root: true,
extends: [
"next/core-web-vitals",
"eslint:recommended",
"prettier",
"plugin:tailwindcss/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
],
plugins: ["@typescript-eslint", "tailwindcss"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname,
},
rules: {
"@next/next/no-html-link-for-pages": "off",
"@next/next/no-img-element": "off", // We currently not using next/image because it isn't supported with SSG mode
"react-hooks/exhaustive-deps": "off", // Incorrectly report needed dependency with Next.js router
"tailwindcss/no-custom-classname": "error",
"tailwindcss/classnames-order": "error",
"@typescript-eslint/no-misused-promises": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-argument": "off",
"no-unused-vars": "off",
},
settings: {
tailwindcss: {
callees: ["cn"],
config: "tailwind.config.js",
},
next: {
rootDir: true,
},
},
}