Skip to content

Commit ab69166

Browse files
chore: update eslint document path (#72483)
## Description At #72178, [ESLint](https://nextjs.org/docs/app/api-reference/config/eslint) docs was moved. So update the old URLs. ### Improving Documentation - [x] Run `pnpm prettier-fix` to fix formatting issues before opening the PR. - [x] Read the Docs Contribution Guide to ensure your contribution follows the docs guidelines: https://nextjs.org/docs/community/contribution-guide Co-authored-by: Zack Tanner <[email protected]>
1 parent 4d37f66 commit ab69166

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

packages/eslint-config-next/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"url": "vercel/next.js",
99
"directory": "packages/eslint-config-next"
1010
},
11-
"homepage": "https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-config",
11+
"homepage": "https://nextjs.org/docs/app/api-reference/config/eslint#eslint-config",
1212
"dependencies": {
1313
"@next/eslint-plugin-next": "15.0.3",
1414
"@rushstack/eslint-patch": "^1.10.3",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# `@next/eslint-plugin-next`
22

33
Documentation for `@next/eslint-plugin-next` can be found at:
4-
https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-plugin
4+
https://nextjs.org/docs/app/api-reference/config/eslint#eslint-plugin

packages/next/src/lib/eslint/customFormatter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export async function formatResults(
131131
? output +
132132
`\n\n${cyan(
133133
'info'
134-
)} - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/building-your-application/configuring/eslint#disabling-rules`
134+
)} - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/api-reference/config/eslint#disabling-rules`
135135
: '',
136136
totalNextPluginErrorCount,
137137
totalNextPluginWarningCount,

packages/next/src/lib/eslint/runLintCheck.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function cliPrompt(cwd: string): Promise<{ config?: any }> {
5252
bold(
5353
`${cyan(
5454
'?'
55-
)} How would you like to configure ESLint? https://nextjs.org/docs/app/building-your-application/configuring/eslint`
55+
)} How would you like to configure ESLint? https://nextjs.org/docs/app/api-reference/config/eslint`
5656
)
5757
)
5858

@@ -263,7 +263,7 @@ async function lint(
263263
} else {
264264
Log.warn('')
265265
Log.warn(
266-
'The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/app/building-your-application/configuring/eslint#migrating-existing-config'
266+
'The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/app/api-reference/config/eslint#migrating-existing-config'
267267
)
268268
}
269269

@@ -423,7 +423,7 @@ export async function runLintCheck(
423423
if (selectedConfig == null) {
424424
// Show a warning if no option is selected in prompt
425425
Log.warn(
426-
'If you set up ESLint yourself, we recommend adding the Next.js ESLint plugin. See https://nextjs.org/docs/app/building-your-application/configuring/eslint#migrating-existing-config'
426+
'If you set up ESLint yourself, we recommend adding the Next.js ESLint plugin. See https://nextjs.org/docs/app/api-reference/config/eslint#migrating-existing-config'
427427
)
428428
return null
429429
} else {

packages/next/src/server/config-shared.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ export interface NextConfig extends Record<string, any> {
631631

632632
/**
633633
* @since version 11
634-
* @see [ESLint configuration](https://nextjs.org/docs/app/building-your-application/configuring/eslint)
634+
* @see [ESLint configuration](https://nextjs.org/docs/app/api-reference/config/eslint)
635635
*/
636636
eslint?: ESLintConfig
637637

0 commit comments

Comments
 (0)