-
Notifications
You must be signed in to change notification settings - Fork 229
/
.eslintrc.cjs
42 lines (42 loc) · 1.13 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
39
40
41
42
module.exports = {
extends: [
"next/core-web-vitals",
"plugin:import/recommended",
"plugin:react/recommended",
"plugin:tailwindcss/recommended",
"plugin:react-hooks/recommended",
],
root: true,
settings: {
"import/resolver": {
node: { extensions: [".js", ".mjs", ".ts", ".d.ts"] },
},
tailwindcss: {
callees: ["classnames", "clsx", "ctl", "cn"],
whitelist: [
"xlog-.+",
"text-feature-",
"drag-handle",
"no-optimization",
"qrcode",
"share-options",
"preserve-3d",
"achievement-group",
"comment",
],
},
},
plugins: ["unused-imports"],
rules: {
"unused-imports/no-unused-imports": "error",
"import/named": "off",
"import/no-anonymous-default-export": "off",
"import/no-named-as-default": "off",
"react/react-in-jsx-scope": "off",
"react-hooks/exhaustive-deps":
process.env.NODE_ENV === "production" ? "off" : "warn",
"import/no-named-as-default-member": "off",
"react/no-unknown-property": ["error", { ignore: ["tw"] }],
"tailwindcss/classnames-order": "off",
},
}