generated from sassywares/glimmer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
29 lines (29 loc) · 905 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
{
"extends": [
"next/core-web-vitals",
"plugin:@tanstack/eslint-plugin-query/recommended"
],
"ignorePatterns": [".next/", "node_modules/"],
"rules": {
// Consistently import navigation APIs from `@/i18n/routing`
"no-restricted-imports": [
"error",
{
"name": "next/link",
"message": "Please import from `@/i18n/routing` instead."
},
{
"name": "next/navigation",
"message": "Please import from `@/i18n/routing` instead.",
// next-intl exports wrappers around these 3 APIs
"importNames": ["redirect", "useRouter", "usePathname"]
},
{
"name": "next/navigation",
"message": "Please import from `@/hooks/use-search-params` instead.",
// useSearchParams is a supercharged version of next/navigation's useSearchParams
"importNames": ["useSearchParams"]
}
]
}
}