From d4b9bf1f70fa067bf8381d8e59e518b0286baf44 Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:16:19 +0900 Subject: [PATCH 01/16] fix(typo): wolrd -> world --- test/integration/typescript/pages/ssg/blog/[post].tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/typescript/pages/ssg/blog/[post].tsx b/test/integration/typescript/pages/ssg/blog/[post].tsx index ed5ed7340051..f30a91ed97dd 100644 --- a/test/integration/typescript/pages/ssg/blog/[post].tsx +++ b/test/integration/typescript/pages/ssg/blog/[post].tsx @@ -22,7 +22,7 @@ export const getStaticProps = async ( const posts: Post[] = [ { author: 'Vercel', - content: 'hello wolrd', + content: 'hello world', }, ] From 74cba75f8fe9e8569d61b910c161d6523edc10dc Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:17:00 +0900 Subject: [PATCH 02/16] fix(typo): _lineNumer -> _lineNumber --- .../build/webpack/plugins/wellknown-errors-plugin/parseCss.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/next/build/webpack/plugins/wellknown-errors-plugin/parseCss.ts b/packages/next/build/webpack/plugins/wellknown-errors-plugin/parseCss.ts index f4ea89277f41..bf274ece3207 100644 --- a/packages/next/build/webpack/plugins/wellknown-errors-plugin/parseCss.ts +++ b/packages/next/build/webpack/plugins/wellknown-errors-plugin/parseCss.ts @@ -23,8 +23,8 @@ export function getCssError( const res = regexCssError.exec(err.message) if (res) { - const [, _lineNumer, _column, reason] = res - const lineNumber = Math.max(1, parseInt(_lineNumer, 10)) + const [, _lineNumber, _column, reason] = res + const lineNumber = Math.max(1, parseInt(_lineNumber, 10)) const column = Math.max(1, parseInt(_column, 10)) return new SimpleWebpackError( From dcb1c4da8456eddfee4aaafd305b3fab595d0e42 Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:17:56 +0900 Subject: [PATCH 03/16] fix(typo): Dyanmic -> Dynamic --- .../export-dynamic-pages-serverless/test/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/export-dynamic-pages-serverless/test/index.test.js b/test/integration/export-dynamic-pages-serverless/test/index.test.js index 5da71b540ce4..80224be06bfb 100644 --- a/test/integration/export-dynamic-pages-serverless/test/index.test.js +++ b/test/integration/export-dynamic-pages-serverless/test/index.test.js @@ -14,7 +14,7 @@ import { const appDir = join(__dirname, '../') const outdir = join(appDir, 'out') -describe('Export Dyanmic Pages', () => { +describe('Export Dynamic Pages', () => { let server let port beforeAll(async () => { From 8d8b109f1b0370be45d3d248eda8ddfc21e5447e Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:18:30 +0900 Subject: [PATCH 04/16] fix(typo): mutliple -> multiple --- test/unit/split-cookies-string.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/split-cookies-string.test.ts b/test/unit/split-cookies-string.test.ts index b78368fdc9fb..cf6764b42e9b 100644 --- a/test/unit/split-cookies-string.test.ts +++ b/test/unit/split-cookies-string.test.ts @@ -61,7 +61,7 @@ describe('splitCookiesString', () => { }) }) - describe('with a mutliple cookies', () => { + describe('with a multiple cookies', () => { it('should parse a plain value', () => { const { joined, expected } = generateCookies( { From 5806ef98b92959369e642f76d092515b7c2db6ee Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:20:33 +0900 Subject: [PATCH 05/16] fix(typo): dyanmic -> dynamic --- .../required-server-files-ssr-404/test/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/required-server-files-ssr-404/test/index.test.js b/test/integration/required-server-files-ssr-404/test/index.test.js index 0c91394b9b6a..f87fa1d6f455 100644 --- a/test/integration/required-server-files-ssr-404/test/index.test.js +++ b/test/integration/required-server-files-ssr-404/test/index.test.js @@ -522,7 +522,7 @@ describe('Required Server Files', () => { expect($('#index').text()).toBe('index page') }) - it('should match the root dyanmic page correctly', async () => { + it('should match the root dynamic page correctly', async () => { const res = await fetchViaHTTP(appPort, '/index', undefined, { headers: { 'x-matched-path': '/[slug]', From 190f1e2ad0457598c45a02c3d0c544cae143cb1a Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:21:03 +0900 Subject: [PATCH 06/16] fix(typo): speical -> special --- packages/next/pages/_document.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/pages/_document.tsx b/packages/next/pages/_document.tsx index 1b1885121ef1..f7513c1ab252 100644 --- a/packages/next/pages/_document.tsx +++ b/packages/next/pages/_document.tsx @@ -264,7 +264,7 @@ export default class Document

extends Component { } } -// Add a speical property to the built-in `Document` component so later we can +// Add a special property to the built-in `Document` component so later we can // identify if a user customized `Document` is used or not. ;(Document as any).__next_internal_document = function InternalFunctionDocument() { From 5ff16e8fdde9381b5b3fd8d66a59ab769e32410c Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:21:42 +0900 Subject: [PATCH 07/16] fix(typo): acceptible -> acceptable --- bench/nested-deps/fuzzponent.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bench/nested-deps/fuzzponent.js b/bench/nested-deps/fuzzponent.js index 4904669441a8..d28fd1976eb4 100755 --- a/bench/nested-deps/fuzzponent.js +++ b/bench/nested-deps/fuzzponent.js @@ -137,37 +137,37 @@ if (require.main === module) { .option('minLen', { demandOption: false, default: MIN_COMPONENT_NAME_LEN, - describe: 'the smallest acceptible component name length', + describe: 'the smallest acceptable component name length', type: 'number', }) .option('maxLen', { demandOption: false, default: MAX_COMPONENT_NAME_LEN, - describe: 'the largest acceptible component name length', + describe: 'the largest acceptable component name length', type: 'number', }) .option('minLen', { demandOption: false, default: MIN_COMPONENT_NAME_LEN, - describe: 'the smallest acceptible component name length', + describe: 'the smallest acceptable component name length', type: 'number', }) .option('maxLen', { demandOption: false, default: MAX_COMPONENT_NAME_LEN, - describe: 'the largest acceptible component name length', + describe: 'the largest acceptable component name length', type: 'number', }) .option('minChild', { demandOption: false, default: MIN_CHILDREN, - describe: 'the smallest number of acceptible component children', + describe: 'the smallest number of acceptable component children', type: 'number', }) .option('maxChild', { demandOption: false, default: MAX_CHILDREN, - describe: 'the largest number of acceptible component children', + describe: 'the largest number of acceptable component children', type: 'number', }) .option('extension', { From 34053b4ecc08babc06a95d272df483c40f3365b7 Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:23:00 +0900 Subject: [PATCH 08/16] fix(typo): dyanmic -> dynamic --- test/production/required-server-files.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/production/required-server-files.test.ts b/test/production/required-server-files.test.ts index 010f7dbbf858..7acbe9f02285 100644 --- a/test/production/required-server-files.test.ts +++ b/test/production/required-server-files.test.ts @@ -768,7 +768,7 @@ describe('should set-up next', () => { expect($('#index').text()).toBe('index page') }) - it('should match the root dyanmic page correctly', async () => { + it('should match the root dynamic page correctly', async () => { const res = await fetchViaHTTP(appPort, '/index', undefined, { headers: { 'x-matched-path': '/[slug]', From c56097f75500dae4a1040a63be2dc00f96ac4a09 Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:23:36 +0900 Subject: [PATCH 09/16] fix(typo): nonexistant -> nonexistent --- packages/next/server/lib/squoosh/avif/avif_node_dec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/server/lib/squoosh/avif/avif_node_dec.js b/packages/next/server/lib/squoosh/avif/avif_node_dec.js index c4e2a2f23ecd..e7de0c5a6637 100644 --- a/packages/next/server/lib/squoosh/avif/avif_node_dec.js +++ b/packages/next/server/lib/squoosh/avif/avif_node_dec.js @@ -1013,7 +1013,7 @@ var Module = (function () { } function replacePublicSymbol(name, value, numArguments) { if (!Module.hasOwnProperty(name)) { - throwInternalError('Replacing nonexistant public symbol') + throwInternalError('Replacing nonexistent public symbol') } if ( undefined !== Module[name].overloadTable && From 2080639cf30aded0964c1ea7db62f1c0064fe760 Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:23:47 +0900 Subject: [PATCH 10/16] fix(typo): nonexistant -> nonexistent --- packages/next/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js b/packages/next/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js index 21e580fc95f7..df7ee11049d2 100644 --- a/packages/next/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js +++ b/packages/next/server/lib/squoosh/mozjpeg/mozjpeg_node_dec.js @@ -1024,7 +1024,7 @@ var Module = (function () { } function replacePublicSymbol(name, value, numArguments) { if (!Module.hasOwnProperty(name)) { - throwInternalError('Replacing nonexistant public symbol') + throwInternalError('Replacing nonexistent public symbol') } if ( undefined !== Module[name].overloadTable && From f5a26c11d0104de79cf1859a2ced7607a121bb34 Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:23:58 +0900 Subject: [PATCH 11/16] fix(typo): nonexistant -> nonexistent --- packages/next/server/lib/squoosh/mozjpeg/mozjpeg_node_enc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/server/lib/squoosh/mozjpeg/mozjpeg_node_enc.js b/packages/next/server/lib/squoosh/mozjpeg/mozjpeg_node_enc.js index e69b72e4c86b..e3e69cff745b 100644 --- a/packages/next/server/lib/squoosh/mozjpeg/mozjpeg_node_enc.js +++ b/packages/next/server/lib/squoosh/mozjpeg/mozjpeg_node_enc.js @@ -1104,7 +1104,7 @@ var Module = (function () { } function replacePublicSymbol(name, value, numArguments) { if (!Module.hasOwnProperty(name)) { - throwInternalError('Replacing nonexistant public symbol') + throwInternalError('Replacing nonexistent public symbol') } if ( undefined !== Module[name].overloadTable && From 18d527c334630165da0f458b8caa8234c13b48c6 Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:24:05 +0900 Subject: [PATCH 12/16] fix(typo): nonexistant -> nonexistent --- packages/next/server/lib/squoosh/webp/webp_node_enc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/server/lib/squoosh/webp/webp_node_enc.js b/packages/next/server/lib/squoosh/webp/webp_node_enc.js index bcd443016f94..8e9196b79af2 100644 --- a/packages/next/server/lib/squoosh/webp/webp_node_enc.js +++ b/packages/next/server/lib/squoosh/webp/webp_node_enc.js @@ -1148,7 +1148,7 @@ var Module = (function () { } function replacePublicSymbol(name, value, numArguments) { if (!Module.hasOwnProperty(name)) { - throwInternalError('Replacing nonexistant public symbol') + throwInternalError('Replacing nonexistent public symbol') } if ( undefined !== Module[name].overloadTable && From 98e87302fed96e82da6784a213616008cc90d652 Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:24:14 +0900 Subject: [PATCH 13/16] fix(typo): nonexistant -> nonexistent --- packages/next/server/lib/squoosh/webp/webp_node_dec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/server/lib/squoosh/webp/webp_node_dec.js b/packages/next/server/lib/squoosh/webp/webp_node_dec.js index 2968ece180b2..efb4521fffd0 100644 --- a/packages/next/server/lib/squoosh/webp/webp_node_dec.js +++ b/packages/next/server/lib/squoosh/webp/webp_node_dec.js @@ -996,7 +996,7 @@ var Module = (function () { } function replacePublicSymbol(name, value, numArguments) { if (!Module.hasOwnProperty(name)) { - throwInternalError('Replacing nonexistant public symbol') + throwInternalError('Replacing nonexistent public symbol') } if ( undefined !== Module[name].overloadTable && From 07f21babd416e7c32ae43f3ed9bf90800ad22dec Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:24:22 +0900 Subject: [PATCH 14/16] fix(typo): nonexistant -> nonexistent --- packages/next/server/lib/squoosh/avif/avif_node_enc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/server/lib/squoosh/avif/avif_node_enc.js b/packages/next/server/lib/squoosh/avif/avif_node_enc.js index a3205742b4f0..e6b8653347ec 100644 --- a/packages/next/server/lib/squoosh/avif/avif_node_enc.js +++ b/packages/next/server/lib/squoosh/avif/avif_node_enc.js @@ -1130,7 +1130,7 @@ var Module = (function () { } function replacePublicSymbol(name, value, numArguments) { if (!Module.hasOwnProperty(name)) { - throwInternalError('Replacing nonexistant public symbol') + throwInternalError('Replacing nonexistent public symbol') } if ( undefined !== Module[name].overloadTable && From cd9d4d1473f5cf0b1a87e589791a50793180e83d Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:25:20 +0900 Subject: [PATCH 15/16] fix(typo): accesible -> accessible --- test/integration/middleware/core/test/index.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/middleware/core/test/index.test.js b/test/integration/middleware/core/test/index.test.js index d329d45e2d2a..536319514c31 100644 --- a/test/integration/middleware/core/test/index.test.js +++ b/test/integration/middleware/core/test/index.test.js @@ -698,7 +698,7 @@ function responseTests(locale = '') { } function interfaceTests(locale = '') { - it(`${locale} \`globalThis\` is accesible`, async () => { + it(`${locale} \`globalThis\` is accessible`, async () => { const res = await fetchViaHTTP(context.appPort, '/interface/globalthis') const globals = await res.json() expect(globals.length > 0).toBe(true) From a966b7940ac188bf2ec52cf7e7383f8cf40a058c Mon Sep 17 00:00:00 2001 From: hiroyuki kikuchi Date: Tue, 29 Mar 2022 12:26:07 +0900 Subject: [PATCH 16/16] fix(typo): explicitely -> explicitly --- packages/eslint-plugin-next/lib/utils/node-attributes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint-plugin-next/lib/utils/node-attributes.js b/packages/eslint-plugin-next/lib/utils/node-attributes.js index 3367f31a2646..2e1e5792c5c9 100644 --- a/packages/eslint-plugin-next/lib/utils/node-attributes.js +++ b/packages/eslint-plugin-next/lib/utils/node-attributes.js @@ -9,7 +9,7 @@ hasValue: false } Inclusion of hasValue is in case an eslint rule cares about boolean values -explicitely assigned to attribute vs the attribute being used as a flag +explicitly assigned to attribute vs the attribute being used as a flag */ class NodeAttributes { constructor(ASTnode) {