-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
73 lines (73 loc) · 1.71 KB
/
.eslintrc
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
{
"root": true,
"extends": [
"airbnb",
"airbnb-typescript",
"next/core-web-vitals",
"prettier",
"plugin:tailwindcss/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"plugins": ["@typescript-eslint", "tailwindcss"],
"rules": {
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-restricted-exports": 0,
"react/jsx-props-no-spreading": 0,
"import/prefer-default-export": 0,
"jsx-a11y/label-has-associated-control": [
"error",
{
"labelComponents": [],
"labelAttributes": [],
"controlComponents": [],
"assert": "either",
"depth": 25
}
],
"react/function-component-definition": [
2,
{
"namedComponents": ["function-declaration", "arrow-function"],
"unnamedComponents": ["function-expression", "arrow-function"]
}
],
"react/require-default-props": [
2,
{
"functions": "defaultArguments"
}
],
"@next/next/no-html-link-for-pages": 0,
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false,
"classes": true,
"variables": true
}
],
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_" }
],
"tailwindcss/no-custom-classname": 0
},
"settings": {
"tailwindcss": {
"callees": ["cn"],
"config": "tailwind.config.js"
},
"next": {
"rootDir": ["./"]
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser"
}
]
}