-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
47 lines (47 loc) · 1.5 KB
/
.eslintrc.json
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
{
"root": true,
"plugins": ["@typescript-eslint", "import-helpers"],
"extends": [
"next/core-web-vitals",
"plugin:@typescript-eslint/recommended",
"plugin:tailwindcss/recommended"
],
"parser": "@typescript-eslint/parser",
"rules": {
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-inferrable-types": "warn",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"no-extra-parens": "off",
// Essa regra é para que o eslint consigo fornecer uma organização padrão para os imports
"import-helpers/order-imports": [
"warn",
{
"newlinesBetween": "always",
"groups": [
["/^react/", "/^next/", "/^@next/"],
["/constants/", "/types/"],
["parent", "sibling", "index"],
["/clsx/", "/tailwind/", "/styles/"],
["/usecases/", "/adapters/", "/services/", "/entities/"]
],
"alphabetize": {
"order": "asc",
"ignoreCase": true
}
}
],
// Permite classes customizadas no tailwind
"tailwindcss/no-custom-classname": ["off"],
// Não permite classes que se contradizem no tailwind (ex: h-2 h-4)
"tailwindcss/no-contradicting-classname": [
"warn",
{
"callees": ["classnames", "clsx", "ctl", "cva", "tv", "twm"]
}
]
}
}