-
Notifications
You must be signed in to change notification settings - Fork 5
/
.eslintrc.json
50 lines (50 loc) · 1.49 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
{
"root": true,
"env": {
"node": true,
"browser": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"import",
"@typescript-eslint",
"react-hooks",
"prettier"
],
"extends": [
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"next/core-web-vitals",
"next/typescript",
"plugin:prettier/recommended"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/consistent-type-imports": "error",
"import/no-anonymous-default-export": [
"error",
{
"allowArray": false,
"allowArrowFunction": false,
"allowAnonymousClass": false,
"allowAnonymousFunction": false,
"allowCallExpression": true,
"allowLiteral": false,
"allowObject": false
}
],
"import/no-named-as-default": "off",
"import/no-default-export": "error",
"import/prefer-default-export": "off",
"react/hook-use-state": "error",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"prettier/prettier": "warn",
"sort-imports": "error"
}
}