-
Notifications
You must be signed in to change notification settings - Fork 92
/
.eslintrc.js
48 lines (43 loc) · 1.15 KB
/
.eslintrc.js
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
const { resolve } = require("node:path");
const project = resolve(__dirname, "tsconfig.json");
module.exports = {
root: true,
extends: [
require.resolve("@vercel/style-guide/eslint/node"),
require.resolve("@vercel/style-guide/eslint/next"),
require.resolve("@vercel/style-guide/eslint/typescript"),
"plugin:tailwindcss/recommended",
],
parserOptions: {
project,
},
settings: {
"import/resolver": {
typescript: {
project,
},
},
tailwindcss: {
callees: ["cn", "clsx"],
},
},
rules: {
"no-console": 1,
"no-unused-vars": 0,
"import/no-default-export": 0,
"tailwindcss/no-custom-classname": 0,
"tailwindcss/classnames-order": 0,
"@typescript-eslint/array-type": 0,
"@typescript-eslint/no-misused-promises": 0,
"@typescript-eslint/consistent-type-definitions": 0,
"@typescript-eslint/explicit-function-return-type": 0,
"@typescript-eslint/no-unused-vars": [1, { argsIgnorePattern: "^_" }],
"@typescript-eslint/consistent-type-imports": [
1,
{
prefer: "type-imports",
fixStyle: "inline-type-imports",
},
],
},
};