-
Notifications
You must be signed in to change notification settings - Fork 23
/
.eslintrc.json
37 lines (37 loc) · 888 Bytes
/
.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
{
"extends": [
"@viclafouch/eslint-config-viclafouch",
"@viclafouch/eslint-config-viclafouch/next",
"@viclafouch/eslint-config-viclafouch/imports",
"@viclafouch/eslint-config-viclafouch/typescript",
"@viclafouch/eslint-config-viclafouch/prettier"
],
"parserOptions": {
"project": true
},
"root": true,
"rules": {
"react-hooks/exhaustive-deps": [
"error",
{
"additionalHooks": "useIsomorphicLayoutEffect"
}
],
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "next/link",
"message": "Please use i18n Link from @i18n/navigation"
},
{
"name": "next/navigation",
"importNames": ["redirect"],
"message": "Please use redirect function from @i18n/navigation"
}
]
}
]
}
}