Skip to content

Commit cb18a61

Browse files
authored
Merge branch 'canary' into eslint8
2 parents 9107dee + 644d361 commit cb18a61

File tree

90 files changed

+3075
-253
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+3075
-253
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ packages/next-codemod/**/*.d.ts
2424
packages/next-env/**/*.d.ts
2525
packages/create-next-app/templates/**
2626
test/integration/eslint/**
27+
test/development/basic/legacy-decorators/**/*
2728
test-timings.json
2829
packages/next/build/swc/tests/**
2930
bench/nested-deps/pages/**

.github/.kodiak.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ notify_on_conflict = false
1313
[merge.message]
1414
title = "pull_request_title"
1515
body = "pull_request_body"
16+
include_coauthors= true
1617
include_pr_number = true
1718
body_type = "markdown"
1819
strip_html_comments = true

docs/api-reference/data-fetching/getInitialProps.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,6 @@ For more information on what to do next, we recommend the following sections:
139139
<div class="card">
140140
<a href="/docs/advanced-features/automatic-static-optimization.md">
141141
<b>Automatic Static Optimization:</b>
142-
<small>Learn about how Nextjs automatically optimizes your pages.</small>
142+
<small>Learn about how Next.js automatically optimizes your pages.</small>
143143
</a>
144144
</div>

docs/api-reference/next.config.js/headers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ module.exports = {
365365
headers: [
366366
{
367367
key: 'x-hello',
368-
value: 'worlld',
368+
value: 'world',
369369
},
370370
],
371371
},

docs/api-reference/next/image.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ If you are using `layout="fill"` or `layout="responsive"`, it's important to ass
123123

124124
For example, when the parent element will constrain the image to always be less than half the viewport width, use `sizes="50vw"`. Without `sizes`, the image will be sent at twice the necessary resolution, decreasing performance.
125125

126-
If you are using `layout="intrinsic"` or `layout="fixed"`, then `sizes` is not needed because the upperbound width is constrained already.
126+
If you are using `layout="intrinsic"` or `layout="fixed"`, then `sizes` is not needed because the upper bound width is constrained already.
127127

128128
[Learn more](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img#attr-sizes).
129129

docs/basic-features/data-fetching.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ The `context` parameter is an object containing the following keys:
6868
- `previewData` contains the preview data set by `setPreviewData`. See the [Preview Mode documentation](/docs/advanced-features/preview-mode.md).
6969
- `locale` contains the active locale (if you've enabled [Internationalized Routing](/docs/advanced-features/i18n-routing.md)).
7070
- `locales` contains all supported locales (if you've enabled [Internationalized Routing](/docs/advanced-features/i18n-routing.md)).
71-
- `defaultLocale` contains the configured default locale (if you've enabled Internationalized Routing).
71+
- `defaultLocale` contains the configured default locale (if you've enabled [Internationalized Routing](/docs/advanced-features/i18n-routing.md)).
7272

7373
`getStaticProps` should return an object with:
7474

docs/basic-features/image-optimization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ The recommended way to style the inner `<img>` is to set the `className` prop on
187187

188188
Alternatively, you can import a [global stylesheet](/docs/basic-features/built-in-css-support#adding-a-global-stylesheet) and manually set the `className` prop to the same name used in the global stylesheet.
189189

190-
You cannot use [styled-jsx](/basic-features/built-in-css-support.md#css-in-js) because its scoped to the current component.
190+
You cannot use [styled-jsx](/docs/basic-features/built-in-css-support.md#css-in-js) because it's scoped to the current component.
191191

192192
You cannot use the `style` prop because the `<Image>` component does not pass it through to the underlying `<img>`.
193193

docs/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Next.js can be deployed to any hosting provider that supports Node.js. Make sure
6767
```json
6868
{
6969
"scripts": {
70-
"dev": "next",
70+
"dev": "next dev",
7171
"build": "next build",
7272
"start": "next start"
7373
}

docs/testing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Since Cypress is testing a real Next.js application, it requires the Next.js ser
114114

115115
Run `npm run build` and `npm run start`, then run `npm run cypress` in another terminal window to start Cypress.
116116

117-
> **Note:** Alternatively, you can install the `start-server-and-test` package and add it to the `package.json` scripts field: `"test": "start-server-and-test start http://localhost:3000 cypress"` to start the Next.js production server in conjuction with Cypress. Remember to rebuild your application after new changes.
117+
> **Note:** Alternatively, you can install the `start-server-and-test` package and add it to the `package.json` scripts field: `"test": "start-server-and-test start http://localhost:3000 cypress"` to start the Next.js production server in conjunction with Cypress. Remember to rebuild your application after new changes.
118118
119119
### Getting ready for Continuous Integration (CI)
120120

errors/manifest.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@
339339
"title": "no-router-instance",
340340
"path": "/errors/no-router-instance.md"
341341
},
342+
{
343+
"title": "no-server-import-in-page",
344+
"path": "/errors/no-server-import-in-page.md"
345+
},
342346
{
343347
"title": "no-sync-scripts",
344348
"path": "/errors/no-sync-scripts.md"

0 commit comments

Comments
 (0)