-
Notifications
You must be signed in to change notification settings - Fork 27.1k
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 build-deps/update-styled-jsx
- Loading branch information
Showing
409 changed files
with
75,205 additions
and
66,926 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
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Learn how to add code owners here: | ||
# https://help.github.com/en/articles/about-code-owners | ||
|
||
* @timneutkens @Timer @ijjk @lfades @divmain | ||
/docs/ @timneutkens @Timer @ijjk @lfades @divmain @leerob | ||
/examples/ @timneutkens @Timer @ijjk @lfades @divmain @leerob | ||
* @timneutkens @ijjk @lfades @divmain @shuding | ||
/docs/ @timneutkens @ijjk @lfades @divmain @shuding @leerob | ||
/examples/ @timneutkens @ijjk @lfades @divmain @shuding @leerob |
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,22 @@ | ||
<!-- | ||
Thanks for opening a PR! Your contribution is much appreciated. | ||
In order to make sure your PR is handled as smoothly as possible we request that you follow the checklist sections below. | ||
Choose the right checklist for the change that you're making: | ||
--> | ||
|
||
## Bug | ||
|
||
- [ ] Related issues linked using `fixes #number` | ||
- [ ] Integration tests added | ||
|
||
## Feature | ||
|
||
- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. | ||
- [ ] Related issues linked using `fixes #number` | ||
- [ ] Integration tests added | ||
- [ ] Documentation added | ||
- [ ] Telemetry added. In case of a feature if it's used or not. | ||
|
||
## Documentation / Examples | ||
|
||
- [ ] Make sure the linting passes |
This file was deleted.
Oops, something went wrong.
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
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
70 changes: 70 additions & 0 deletions
70
docs/api-reference/next.config.js/eslint-warnings-errors.md
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,70 @@ | ||
--- | ||
description: Learn how to opt-in and out of ESLint during development mode and production builds. | ||
--- | ||
|
||
# ESLint Warnings and Errors | ||
|
||
## During builds | ||
|
||
Next.js fails your **production build** (`next build`) when ESLint errors are present in your | ||
project. | ||
|
||
If you'd like Next.js to dangerously produce production code even when your application has errors, | ||
you can disable ESLint running during the build process. | ||
|
||
> It's recommended to run ESLint as part of the production build process to ensure your application | ||
> is resilient against runtime issues. | ||
Open `next.config.js` and disable the `build` option in the `eslint` config: | ||
|
||
```js | ||
module.exports = { | ||
eslint: { | ||
// !! WARN !! | ||
// Dangerously allow production builds to successfully complete even if | ||
// your project has ESLint errors. | ||
// !! WARN !! | ||
build: false, | ||
}, | ||
} | ||
``` | ||
|
||
## During development | ||
|
||
By default, Next.js does not run ESLint during **development** (`next dev`). | ||
|
||
If you would like Next.js to lint files separately in development mode, you can enable it in your | ||
configuration. | ||
|
||
> Enabling ESLint during development mode will slow down how fast pages are compiled. Until this is | ||
> optimized, we recommend that you [integrate ESLint in your code | ||
> editor](https://eslint.org/docs/user-guide/integrations#editors). | ||
Open `next.config.js` and enable the `dev` option in the `eslint` config: | ||
|
||
```js | ||
module.exports = { | ||
eslint: { | ||
// !! WARN !! | ||
// This can slow down how long pages take to compile during development | ||
// !! WARN !! | ||
dev: 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>Learn more about how to use ESLint in Next.js.</small> | ||
</a> | ||
</div> |
Oops, something went wrong.