-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
77 lines (77 loc) · 2.44 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
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
74
75
76
77
{
"extends": [
"next",
"next/core-web-vitals",
"plugin:react/recommended",
"plugin:tailwindcss/recommended",
"plugin:@typescript-eslint/recommended",
"plugin:testing-library/react",
"plugin:jest-dom/recommended",
"plugin:jest/recommended",
"prettier"
],
"rules": {
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "error",
"import/named": "error",
"import/namespace": "error",
"import/default": "error",
"import/export": "error",
"@definitelytyped/no-single-element-tuple-type": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/no-unused-vars": "off",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"react/no-unescaped-entities": "warn",
"react/style-prop-object": "warn", // about using inline style objects
"tailwindcss/no-arbitrary-value": "warn", // about using arbitrary values instead of Tailwind utilities
"tailwindcss/no-custom-classname": "off", //rule that flags custom Tailwind classes,
"max-len": [
// line length rule
"warn",
{
"code": 120,
"ignoreComments": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
]
},
"overrides": [
{
"files": ["./src/component/ui/**/*.{ts,tsx}"],
"rules": {
"tailwindcss/*": "off"
}
},
{
"files": [
"./src/components/ui/**/*.{ts,tsx}",
"./src/lib/formRegex.ts",
"node_modules/**",
".next/**",
"dist/**",
"coverage/**",
"public/**",
"*.d.ts",
"*.min.js",
"*.map",
".prettierrc.js",
"jest.config.ts",
".github/**",
"next-env.d.ts",
".next/types/**/*.ts"
],
"rules": {
"max-len": "off"
}
}
],
"env": {
"jest": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint", "jest", "prettier"]
}