Skip to content

Commit 77bb702

Browse files
bgubztanner
andauthored
docs: add explanation of disabling lint for next build (#82805)
Co-authored-by: Zack Tanner <[email protected]>
1 parent 8f6d345 commit 77bb702

File tree

1 file changed

+11
-11
lines changed
  • docs/01-app/03-api-reference/06-cli

1 file changed

+11
-11
lines changed

docs/01-app/03-api-reference/06-cli/next.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -75,18 +75,18 @@ Both of these values are [**compressed with gzip**](/docs/app/api-reference/conf
7575

7676
The following options are available for the `next build` command:
7777

78-
| Option | Description |
79-
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
80-
| `-h, --help` | Show all available options. |
81-
| `[directory]` | A directory on which to build the application. If not provided, the current directory will be used. |
82-
| `-d` or `--debug` | Enables a more verbose build output. With this flag enabled additional build output like rewrites, redirects, and headers will be shown. |
78+
| Option | Description |
79+
| ---------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
80+
| `-h, --help` | Show all available options. |
81+
| `[directory]` | A directory on which to build the application. If not provided, the current directory will be used. |
82+
| `-d` or `--debug` | Enables a more verbose build output. With this flag enabled additional build output like rewrites, redirects, and headers will be shown. |
8383
| |
84-
| `--profile` | Enables production [profiling for React](https://react.dev/reference/react/Profiler). |
85-
| `--no-lint` | Disables linting. |
86-
| `--no-mangling` | Disables [mangling](https://en.wikipedia.org/wiki/Name_mangling). This may affect performance and should only be used for debugging purposes. |
87-
| `--experimental-app-only` | Builds only App Router routes. |
88-
| `--experimental-build-mode [mode]` | Uses an experimental build mode. (choices: "compile", "generate", default: "default") |
89-
| `--debug-prerender` | Debug prerender errors in development. |
84+
| `--profile` | Enables production [profiling for React](https://react.dev/reference/react/Profiler). |
85+
| `--no-lint` | Disables linting. _Note: linting will be removed from `next build` in Next 16. If you're using Next 15.5+ with a linter other than `eslint`, linting during build will not occur._ |
86+
| `--no-mangling` | Disables [mangling](https://en.wikipedia.org/wiki/Name_mangling). This may affect performance and should only be used for debugging purposes. |
87+
| `--experimental-app-only` | Builds only App Router routes. |
88+
| `--experimental-build-mode [mode]` | Uses an experimental build mode. (choices: "compile", "generate", default: "default") |
89+
| `--debug-prerender` | Debug prerender errors in development. |
9090

9191
### `next start` options
9292

0 commit comments

Comments
 (0)