Unverified Commit ab69166d authored by Jam Balaya's avatar Jam Balaya Committed by GitHub

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-guideCo-authored-by: 's avatarZack Tanner <1939140+ztanner@users.noreply.github.com>
parent 4d37f665
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"url": "vercel/next.js", "url": "vercel/next.js",
"directory": "packages/eslint-config-next" "directory": "packages/eslint-config-next"
}, },
"homepage": "https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-config", "homepage": "https://nextjs.org/docs/app/api-reference/config/eslint#eslint-config",
"dependencies": { "dependencies": {
"@next/eslint-plugin-next": "15.0.3", "@next/eslint-plugin-next": "15.0.3",
"@rushstack/eslint-patch": "^1.10.3", "@rushstack/eslint-patch": "^1.10.3",
......
# `@next/eslint-plugin-next` # `@next/eslint-plugin-next`
Documentation for `@next/eslint-plugin-next` can be found at: Documentation for `@next/eslint-plugin-next` can be found at:
https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-plugin https://nextjs.org/docs/app/api-reference/config/eslint#eslint-plugin
...@@ -131,7 +131,7 @@ export async function formatResults( ...@@ -131,7 +131,7 @@ export async function formatResults(
? output + ? output +
`\n\n${cyan( `\n\n${cyan(
'info' 'info'
)} - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/building-your-application/configuring/eslint#disabling-rules` )} - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/app/api-reference/config/eslint#disabling-rules`
: '', : '',
totalNextPluginErrorCount, totalNextPluginErrorCount,
totalNextPluginWarningCount, totalNextPluginWarningCount,
......
...@@ -52,7 +52,7 @@ async function cliPrompt(cwd: string): Promise<{ config?: any }> { ...@@ -52,7 +52,7 @@ async function cliPrompt(cwd: string): Promise<{ config?: any }> {
bold( bold(
`${cyan( `${cyan(
'?' '?'
)} How would you like to configure ESLint? https://nextjs.org/docs/app/building-your-application/configuring/eslint` )} How would you like to configure ESLint? https://nextjs.org/docs/app/api-reference/config/eslint`
) )
) )
...@@ -263,7 +263,7 @@ async function lint( ...@@ -263,7 +263,7 @@ async function lint(
} else { } else {
Log.warn('') Log.warn('')
Log.warn( Log.warn(
'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' 'The Next.js plugin was not detected in your ESLint configuration. See https://nextjs.org/docs/app/api-reference/config/eslint#migrating-existing-config'
) )
} }
...@@ -423,7 +423,7 @@ export async function runLintCheck( ...@@ -423,7 +423,7 @@ export async function runLintCheck(
if (selectedConfig == null) { if (selectedConfig == null) {
// Show a warning if no option is selected in prompt // Show a warning if no option is selected in prompt
Log.warn( Log.warn(
'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' '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'
) )
return null return null
} else { } else {
......
...@@ -631,7 +631,7 @@ export interface NextConfig extends Record<string, any> { ...@@ -631,7 +631,7 @@ export interface NextConfig extends Record<string, any> {
/** /**
* @since version 11 * @since version 11
* @see [ESLint configuration](https://nextjs.org/docs/app/building-your-application/configuring/eslint) * @see [ESLint configuration](https://nextjs.org/docs/app/api-reference/config/eslint)
*/ */
eslint?: ESLintConfig eslint?: ESLintConfig
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment