-
Notifications
You must be signed in to change notification settings - Fork 27k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into remove-types-comment-json
- Loading branch information
Showing
274 changed files
with
2,005 additions
and
792 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
description: Next.js reports ESLint errors and warnings during builds by default. Learn how to opt-out of this behavior here. | ||
--- | ||
|
||
# Ignoring ESLint | ||
|
||
When ESLint is detected in your project, Next.js fails your **production build** (`next build`) when errors are present. | ||
|
||
If you'd like Next.js to dangerously produce production code even when your application has ESLint errors, you can disable the built-in linting step completely. | ||
|
||
> Be sure you have configured ESLint to run in a separate part of your workflow (for example, in CI or a pre-commit hook). | ||
Open `next.config.js` and enable the `ignoreDuringBuilds` option in the `eslint` config: | ||
|
||
```js | ||
module.exports = { | ||
eslint: { | ||
// Warning: Dangerously allow production builds to successfully complete even if | ||
// your project has ESLint errors. | ||
ignoreDuringBuilds: true, | ||
}, | ||
} | ||
``` | ||
|
||
## Related | ||
|
||
<div class="card"> | ||
<a href="/docs/api-reference/next.config.js/introduction.md"> | ||
<b>Introduction to next.config.js:</b> | ||
<small>Learn more about the configuration file used by Next.js.</small> | ||
</a> | ||
</div> | ||
|
||
<div class="card"> | ||
<a href="/docs/basic-features/eslint.md"> | ||
<b>ESLint:</b> | ||
<small>Get started with ESLint in Next.js.</small> | ||
</a> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# `future.webpack5` has been moved to `webpack5` | ||
|
||
#### Why This Error Occurred | ||
|
||
The `future.webpack5` option has been moved to `webpack5` in `next.config.js`. | ||
|
||
#### Possible Ways to Fix It | ||
|
||
If you had the value `true` you can removed the option as webpack 5 is now the default for all Next.js apps unless opted out. | ||
|
||
If you had he value `false` you can update `next.config.js`: | ||
|
||
Change `future.webpack5` to `webpack5`. | ||
|
||
Current `next.config.js`: | ||
|
||
```js | ||
// next.config.js | ||
module.exports = { | ||
future: { | ||
webpack5: false, | ||
}, | ||
} | ||
``` | ||
|
||
Updated `next.config.js`: | ||
|
||
```js | ||
// next.config.js | ||
module.exports = { | ||
webpack5: false, | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.