Skip to content

Commit 4f6ee24

Browse files
authored
docs: Fix typo in ESLint docs (#1829)
1 parent 75e1c7a commit 4f6ee24

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/src/pages/docs/workflows/linting.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,23 +21,23 @@ Be careful though that this doesn't catch hardcoded attributes (e.g. `aria-label
2121

2222
If you are using [i18n routing](/docs/getting-started/app-router), you might want to ensure that developers consistently use the [navigation APIs](/docs/routing/navigation) that you've configured in your project.
2323

24-
In this example, developers will be prompted to import from `@/i18n/routing` when they try to import navigation APIs from Next.js.
24+
In this example, developers will be prompted to import from `@/i18n/navigation` when they try to import navigation APIs from Next.js.
2525

2626
```javascript filename="eslint.config.js"
2727
// ...
2828

2929
rules: {
30-
// Consistently import navigation APIs from `@/i18n/routing`
30+
// Consistently import navigation APIs from `@/i18n/navigation`
3131
'no-restricted-imports': [
3232
'error',
3333
{
3434
name: 'next/link',
35-
message: 'Please import from `@/i18n/routing` instead.'
35+
message: 'Please import from `@/i18n/navigation` instead.'
3636
},
3737
{
3838
name: 'next/navigation',
3939
importNames: ['redirect', 'permanentRedirect', 'useRouter', 'usePathname'],
40-
message: 'Please import from `@/i18n/routing` instead.'
40+
message: 'Please import from `@/i18n/navigation` instead.'
4141
}
4242
]
4343
}

0 commit comments

Comments
 (0)