-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
39 lines (39 loc) · 1.1 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
{
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"prettier",
"plugin:prettier/recommended"
],
"parser": "@typescript-eslint/parser",
"plugins": ["prettier", "@typescript-eslint"],
"rules": {
"prettier/prettier": "error",
"react-hooks/exhaustive-deps": "error",
"@typescript-eslint/explicit-module-boundary-types": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"eqeqeq": "error"
},
"overrides": [
{
"files": ["*.tsx", "./components/ui/*.ts"],
"rules": {
// so components return type doesn't need to be typed
// it's a tradeoff for DX convenience matters
"@typescript-eslint/explicit-module-boundary-types": "off"
}
},
{
"files": ["./next.config.mjs"],
"rules": {
// till the time where next.config will be in typescript
"@typescript-eslint/explicit-module-boundary-types": "off"
}
}
]
}