-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
43 lines (43 loc) · 1.24 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
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": [
"./tsconfig.json",
"./tsconfig.node.json",
"./src/api/tsconfig.json",
"./src/app/tsconfig.json",
"./src/db/tsconfig.json",
"./src/util/tsconfig.json"
]
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:tailwindcss/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "ignoreRestSiblings": true }],
// Rule conflict with prettier-plugin-tailwindcss
"tailwindcss/classnames-order": "off",
// Auto-fix rule for "importsNotUsedAsValues"
"@typescript-eslint/consistent-type-imports": "error",
// Disable checking function passed to JSX attributes
// Usability for the return value of react-hook-form `handleSubmit()`
"@typescript-eslint/no-misused-promises": [
"error",
{
"checksVoidReturn": { "attributes": false }
}
]
},
"settings": {
"react": {
"version": "detect"
}
}
}