chore: update cSpell globs and fix typos

This commit is contained in:
Nick Schonning 2021-12-12 16:57:14 -05:00
parent c854e30df7
commit a19d7991c3
No known key found for this signature in database
GPG Key ID: 5DDAAD9C9AAFFD9F
27 changed files with 314 additions and 256 deletions

View File

@ -1,241 +1,295 @@
{
"version": "0.1",
"version": "0.2",
"language": "en",
"words": [
"webpack",
"webpack's",
"endregion",
"entrypoint",
"entrypoints",
"splitted",
"dedupe",
"deduplication",
"deduplicating",
"unoptimized",
"prefetch",
"prefetching",
"prefetched",
"preload",
"preloading",
"preloaded",
"gzipping",
"brotli",
"submodule",
"submodules",
"typeof",
"devtool",
"wasi",
"wasm",
"webassembly",
"IIFE",
"IIFE's",
"bigint",
"unexception",
"etag",
"builtins",
"uncacheable",
"cacheable",
"mergeable",
"devtools",
"transpiled",
"mixins",
"subdir",
"errored",
"eval",
"multiplicator",
"finalizer",
"promisify",
"absolutify",
"camelcase",
"filebase",
"moduleid",
"modulehash",
"chunkfilename",
"chunkname",
"chunkhash",
"fullhash",
"contenthash",
"hashable",
"hotupdatechunk",
"middleware",
"middlewares",
"serializer",
"serializers",
"deserialization",
"referenceable",
"polyfilled",
"transpiling",
"transpile",
"transpiles",
"snapshotting",
"sourcemap",
"nosources",
"filepath",
"subpath",
"pathinfo",
"undelayed",
"microtask",
"microtasks",
"deopt",
"deopts",
"sandboxed",
"mangleable",
"passthrough",
"prioritise",
"booleanized",
"serializables",
"unreviewed",
"unshifted",
"nonrecursive",
"symlinked",
"subfolder",
"prettierrc",
"templated",
"templating",
"kibibytes",
"mebibytes",
"gibibytes",
"typechecker",
"recurse",
"preparsed",
"acircular",
"amdmodule",
"assemblyscript",
"asyncloader",
"atlaskit",
"autocrlf",
"lcov",
"lcovonly",
"gcov",
"lintunit",
"instanceof",
"loglevel",
"runtime",
"runtimes",
"mimetype",
"testvalue",
"unusedkey",
"unusedvalue",
"performant",
"watchings",
"jsons",
"exitance",
"ident",
"idents",
"globstar",
"inversed",
"concated",
"RBDT",
"opensource",
"babeljs",
"backport",
"backported",
"bigint",
"Biró",
"bitfield",
"bomfile",
"booleanized",
"boolish",
"brotli",
"browserified",
"browserslist",
"browserslistrc",
"Brumme",
"bugfix",
"bugfixes",
"declarators",
"rrrlll",
"undefine",
"finializer",
"quasis",
"hashs",
"functype",
"funcindex",
"Descr",
"valtype",
"informations",
"reexecuted",
"global's",
"unsplittable",
"builtins",
"cacheable",
"callme",
"camelcase",
"chainable",
"metacharacters",
"Xarray",
"Xfactory",
"Xmodule",
"Xexports",
"moji",
"bitfield",
"precompute",
"toplevel",
"modulos",
"untaint",
"ufeff",
"timestamping",
"loadername",
"laof",
"chunkfilename",
"chunkhash",
"chunkname",
"cmodule",
"codecov",
"cofounder",
"hashchange",
"popstate",
"hotpink",
"navigations",
"Collet's",
"compat",
"noimport",
"tmpl",
"concated",
"contenthash",
"contextifies",
"crossorigin",
"csvg",
"repo",
"repos",
"triaging",
"valign",
"returnfalse",
"return'development",
"datastructures",
"prewalking",
"overridables",
"overridable",
"cujojs",
"Dani",
"darkblue",
"darkgreen",
"darkred",
"eqeqeq",
"boolish",
"analysing",
"etags",
"datastructures",
"declarators",
"dedupe",
"deduplicating",
"deduplication",
"defunctzombie",
"deopt",
"deopts",
"dependabot",
"Descr",
"deserialization",
"destructure",
"onconnect",
"nwjs",
"redeclaration",
"kaios",
"parallelism",
"gitattributes",
"hashbang",
"webassemblyjs",
"assemblyscript",
"fsevents",
"watchpack",
"tapable",
"junit",
"memfs",
"rimraf",
"devtool",
"devtools",
"donotcallme",
"endregion",
"entrypoint",
"entrypoints",
"Eoksni",
"eqeqeq",
"errored",
"esmodule",
"estree",
"posthtml",
"etag",
"etags",
"eval",
"Ewald",
"exitance",
"filebase",
"fileoverview",
"filepath",
"finalizer",
"finializer",
"fsevents",
"fullhash",
"funcindex",
"functype",
"gcov",
"gibibytes",
"gitattributes",
"gitter",
"global's",
"globstar",
"gzipping",
"hashable",
"hashbang",
"hashchange",
"hashs",
"hotpink",
"hotupdatechunk",
"ident",
"idents",
"IIFE's",
"IIFE",
"informations",
"instanceof",
"inversed",
"jhnns",
"jrburke",
"jsfile",
"jsons",
"junit",
"Junya",
"kaios",
"Kees",
"kibibytes",
"Kluskens",
"Koppers",
"laof",
"Larkin",
"lcov",
"lcovonly",
"lintunit",
"loadername",
"loglevel",
"longnameforexport",
"mangleable",
"MCEP",
"mebibytes",
"medikoo",
"membertest",
"memfs",
"mergeable",
"metacharacters",
"microtask",
"microtasks",
"middleware",
"middlewares",
"mimetype",
"mixins",
"modulehash",
"moduleid",
"modulos",
"moji",
"MONEI",
"mult",
"multiplicator",
"mylibrary",
"mynamespace",
"navigations",
"nmodule",
"noimport",
"nonexistentfile",
"nonrecursive",
"nosource",
"nosources",
"nwjs",
"onconnect",
"opencollective",
"opensource",
"opuuus",
"overridable",
"overridables",
"parallelism",
"passthrough",
"pathinfo",
"performant",
"Phoscur",
"pmodule",
"pnpm",
"polyfilled",
"popstate",
"posthtml",
"precompute",
"prefetch",
"prefetched",
"prefetching",
"preload",
"preloaded",
"preloading",
"preparsed",
"prettierrc",
"prewalking",
"prioritise",
"promisify",
"quasis",
"queryloader",
"querystrings",
"RBDT",
"recurse",
"redeclaration",
"reexecuted",
"referenceable",
"referencer",
"repo",
"repos",
"return'development",
"returnfalse",
"revparse",
"rimraf",
"Rivest",
"rrrlll",
"runtime",
"runtimes",
"samsunginternet",
"sandboxed",
"serializables",
"serializer",
"serializers",
"shama",
"skypack",
"snapshotting",
"sokra",
"somepackage",
"somepath",
"sourcemap",
"sourcemapped",
"splitted",
"stylesheet",
"subdir",
"subfolder",
"submodule",
"submodules",
"subpath",
"substack",
"symlinked",
"syncloader",
"systemjs",
"tapable",
"templated",
"templating",
"testcase",
"testlink",
"testloader",
"testvalue",
"timestamping",
"tmpl",
"toplevel",
"traceur",
"atlaskit",
"transpile",
"transpiled",
"transpiles",
"transpiling",
"triaging",
"Tshs",
"typechecker",
"typeof",
"ufeff",
"uncacheable",
"undefine",
"undelayed",
"unexception",
"unoptimized",
"unreviewed",
"unshifted",
"unsplittable",
"untaint",
"unusedkey",
"unusedvalue",
"url's",
"valign",
"valtype",
"wasi",
"wasm",
"watchings",
"watchpack",
"webassembly",
"webassemblyjs",
"webmake",
"webpack's",
"webpack",
"Xarray",
"Xexports",
"Xfactory",
"Xmodule",
"xxhash",
"xxhashjs",
"systemjs",
"skypack",
"sokra",
"Koppers",
"Junya",
"Eoksni",
"Ewald",
"Larkin",
"Kees",
"Kluskens",
"Phoscur",
"defunctzombie",
"shama",
"jhnns",
"substack",
"MONEI",
"medikoo",
"webmake",
"jrburke",
"gitter",
"codecov",
"opencollective",
"dependabot",
"browserslist",
"samsunginternet",
"pnpm"
"Yann"
],
"ignoreRegExpList": ["/Author.+/", "/data:.*/", "/\"mappings\":\".+\"/"],
"ignorePaths": [
"**/dist/**",
"examples/**/README.md",
"**/webpack.lock.data/**"
"**/webpack.lock.data/**",
"package.json",
"yarn.lock",
"types.d.ts",
"**/**/*.snap",
"test/cases/json/weird-properties/globals.json",
"**/*.svg",
"**/*.wasm",
"test/**/module.js",
"test/**"
]
}

2
declarations.d.ts vendored
View File

@ -204,7 +204,7 @@ declare module "@webassemblyjs/ast" {
raw?: string
): FloatLiteral;
export function global(globalType: string, nodes: Node[]): Global;
export function identifier(indentifier: string): Identifier;
export function identifier(identifier: string): Identifier;
export function funcParam(valType: string, id: Identifier): FuncParam;
export function instruction(inst: string, args?: Node[]): Instruction;
export function callInstruction(funcIndex: Index): CallInstruction;

View File

@ -67,7 +67,7 @@
<!-- A spinner -->
<div class="spinner"></div>
<!-- This script only contains boostrapping logic -->
<!-- This script only contains bootstrapping logic -->
<!-- It will load all other scripts if necessary -->
<script src="/dist/aaa/app.js" async></script>

View File

@ -1702,7 +1702,7 @@ ${defineGetters}`
info.globalScope = globalScope;
info.moduleScope = moduleScope;
} catch (err) {
err.message += `\nwhile analysing module ${m.identifier()} for concatenation`;
err.message += `\nwhile analyzing module ${m.identifier()} for concatenation`;
throw err;
}
}

View File

@ -159,7 +159,7 @@
"type-lint": "tsc",
"typings-test": "tsc -p tsconfig.types.test.json",
"module-typings-test": "tsc -p tsconfig.module.test.json",
"spellcheck": "cspell \"{.github,benchmark,bin,examples,hot,lib,schemas,setup,tooling}/**/*.{md,yml,yaml,js,json}\" \"*.md\"",
"spellcheck": "cspell \"**/*\"",
"special-lint": "node node_modules/tooling/lockfile-lint && node node_modules/tooling/schemas-lint && node node_modules/tooling/inherit-types && node node_modules/tooling/format-schemas && node tooling/generate-runtime-code.js && node tooling/generate-wasm-code.js && node node_modules/tooling/format-file-header && node node_modules/tooling/compile-to-definitions && node node_modules/tooling/precompile-schemas && node node_modules/tooling/generate-types --no-template-literals",
"special-lint-fix": "node node_modules/tooling/inherit-types --write && node node_modules/tooling/format-schemas --write && node tooling/generate-runtime-code.js --write && node tooling/generate-wasm-code.js --write && node node_modules/tooling/format-file-header --write && node node_modules/tooling/compile-to-definitions --write && node node_modules/tooling/precompile-schemas --write && node node_modules/tooling/generate-types --no-template-literals --write",
"fix": "yarn code-lint --fix && yarn special-lint-fix && yarn pretty-lint-fix",

View File

@ -136,7 +136,7 @@ describe("BuildDependencies", () => {
"export default 0;"
);
await exec("0", {
invalidBuildDepdencies: true,
invalidBuildDependencies: true,
buildTwice: true,
warnings: [/Can't resolve 'should-fail-resolving'/]
});

View File

@ -264,6 +264,7 @@ describe("Cli", () => {
`)
);
// cspell:ignore filsystem
test(
"errors",
{

View File

@ -116,7 +116,7 @@ async function compile(options) {
});
});
} catch (err) {
// capture sync throwm errors
// capture sync thrown errors
reject(err);
}
});
@ -644,6 +644,7 @@ describe("loaders", () => {
`);
});
// cspell:ignore doesnt
it("should emit error for doesnt-exist-loader", async () => {
await expect(compile({ entry: "./doesnt-exist-loader!./entry-point.js" }))
.resolves.toMatchInlineSnapshot(`

View File

@ -111,7 +111,7 @@ describe("ProgressPlugin", function () {
nanTest(createMultiCompiler)
);
it(
"should not contain NaN as a percentage when it is applied to MultiCompiler (paralellism: 1)",
"should not contain NaN as a percentage when it is applied to MultiCompiler (parallelism: 1)",
nanTest(() => createMultiCompiler(undefined, { parallelism: 1 }))
);

View File

@ -404,6 +404,7 @@ describe("Validation", () => {
`)
);
// cspell:Ignore protuction
createTestCase(
"invalid mode",
{
@ -603,7 +604,7 @@ describe("Validation", () => {
`)
);
createTestCase(
"opimization.moduleIds",
"optimization.moduleIds",
{
optimization: {
hashedModuleIds: true

View File

@ -131,7 +131,7 @@ for (const name of Object.keys(wasmHashes)) {
});
};
const uncodeRangeTest = (name, start, end) => {
const unicodeRangeTest = (name, start, end) => {
const codePoints = [];
for (let i = start; i <= end; i++) {
codePoints.push(i);
@ -139,11 +139,11 @@ for (const name of Object.keys(wasmHashes)) {
unicodeTest(name, codePoints);
};
uncodeRangeTest("Latin-1 Supplement", 0xa0, 0xff);
uncodeRangeTest("Latin Extended", 0x100, 0x24f);
uncodeRangeTest("Thaana", 0x780, 0x7bf);
uncodeRangeTest("Devanagari", 0x900, 0x97f);
uncodeRangeTest("Emoticons", 0x1f600, 0x1f64f);
unicodeRangeTest("Latin-1 Supplement", 0xa0, 0xff);
unicodeRangeTest("Latin Extended", 0x100, 0x24f);
unicodeRangeTest("Thaana", 0x780, 0x7bf);
unicodeRangeTest("Devanagari", 0x900, 0x97f);
unicodeRangeTest("Emoticons", 0x1f600, 0x1f64f);
unicodeTest("with zero char", "abc\0💩");
unicodeTest("weird code point after long code point", [1497, 243248]);

View File

@ -60,7 +60,7 @@ it("should be able to combine chunks by name", function () {
case "d":
return import(/* webpackChunkName: "name-3" */ "./dir7/d");
default:
throw new Error("Unexcepted test data");
throw new Error("Unexpected test data");
}
}
return testChunkLoading(load, false, true);
@ -86,7 +86,7 @@ it("should be able to use weak mode (without context)", function () {
case "c":
return import(/* webpackMode: "weak" */ "./dir9/c");
default:
throw new Error("Unexcepted test data");
throw new Error("Unexpected test data");
}
}
require("./dir9/a"); // chunks served manually by the user

View File

@ -94,6 +94,7 @@ it("should be able to use named chunks in import()", function(done) {
});
it("should be able to use named chunk in context import()", function(done) {
// cspell:ignore mpty
var mpty = "mpty";
var sync = false;
import("./e" + mpty + "2" /* webpackChunkName: "context-named-chunk" */).then(function(result) {

View File

@ -1,3 +1,3 @@
it("should replace Object.defineProperty correctly with brakets", () => {
it("should replace Object.defineProperty correctly with brackets", () => {
expect(require("./module").test).toBe(true);
});

View File

@ -1,8 +1,8 @@
module.exports = [
[
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/
],
[
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/
]
];

View File

@ -1,7 +1,7 @@
import * as m1 from "./analysable-module.js";
import * as m1 from "./analyzable-module.js";
import * as m2 from "./weird-module.js";
import * as m3 from "./esModule.js";
import d1 from "./analysable-module.js";
import d1 from "./analyzable-module.js";
import d2 from "./weird-module.js";
import d3 from "./esModule.js";
@ -22,7 +22,7 @@ it("should include non-enumerable properties (non-mjs)", () => {
});
it("should include non-enumerable properties (non-mjs, promise)", () =>
import("./analysable-module").then(m1 => {
import("./analyzable-module").then(m1 => {
const ns = m1;
expect(m1.prop).toBe(true);
@ -108,7 +108,7 @@ it("should include non-enumerable properties with __esModule (non-mjs)", () => {
});
it("should include non-enumerable properties with __esModule (non-mjs, promise)", () =>
import("./analysable-module").then(m3 => {
import("./analyzable-module").then(m3 => {
const ns = m3;
expect(m3.prop).toBe(true);

View File

@ -1,11 +1,11 @@
import * as m1 from "./analysable-module.js";
import * as m1 from "./analyzable-module.js";
import * as m2 from "./weird-module.js";
import * as m3 from "./esModule.js";
import d1 from "./analysable-module.js";
import d1 from "./analyzable-module.js";
import d2 from "./weird-module.js";
import d3 from "./esModule.js";
it("should include non-enumable properties (mjs)", () => {
it("should include non-enumerable properties (mjs)", () => {
const ns = m1;
expect(m1.prop).toBe(true);
@ -21,8 +21,8 @@ it("should include non-enumable properties (mjs)", () => {
expect(ns.__esModule).toBe(true);
});
it("should include non-enumable properties (mjs, promise)", () =>
import("./analysable-module.js").then(m1 => {
it("should include non-enumerable properties (mjs, promise)", () =>
import("./analyzable-module.js").then(m1 => {
const ns = m1;
expect(m1.prop).toBe(true);
@ -91,7 +91,7 @@ it("should not include prototype properties and symbols (mjs, promise)", () =>
expect(ns.__esModule).toBe(true);
}));
it("should include non-enumable properties with __esModule (non-mjs)", () => {
it("should include non-enumerable properties with __esModule (non-mjs)", () => {
const ns = m3;
expect(m3.prop).toBe(true);
@ -107,8 +107,8 @@ it("should include non-enumable properties with __esModule (non-mjs)", () => {
expect(ns.__esModule).toBe(true);
});
it("should include non-enumable properties with __esModule (non-mjs, promise)", () =>
import("./analysable-module.js").then(m3 => {
it("should include non-enumerable properties with __esModule (non-mjs, promise)", () =>
import("./analyzable-module.js").then(m3 => {
const ns = m3;
expect(m3.prop).toBe(true);

View File

@ -1,11 +1,11 @@
module.exports = [
[
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/
],
[/export 'default' \(imported as 'm3'\) was not found in '\.\/esModule\.js'/],
[/export 'default' \(imported as 'd3'\) was not found in '\.\/esModule\.js'/],
[
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analysable-module\.js'/
/export '__esModule' \(imported as 'm1'\) was not found in '\.\/analyzable-module\.js'/
],
[/export 'default' \(imported as 'm3'\) was not found in '\.\/esModule\.js'/],
[/export 'default' \(imported as 'd3'\) was not found in '\.\/esModule\.js'/]

View File

@ -14,6 +14,6 @@ expect(function() {
export default 1234;
if(eval("typeof exports !== \"undefined\"")) {
// exports is node.js exports and not webpacks
// exports is node.js exports and not webpack's
expect(Object.keys(exports)).toEqual([]);
}

View File

@ -28,7 +28,7 @@ import {
named6 as snamed6
} from "./named-with-namespace-no-side";
it("should point out conflicts from named to namespace (without sideeffects)", () => {
it("should point out conflicts from named to namespace (without side effects)", () => {
expect(snamed1).toBe(1);
expect(snamed2).toBe(2);
expect(snamed3).toBe(2);

View File

@ -6,7 +6,7 @@ it("should allow to import a variable named define (call)", () => {
expect(define()).toBe("ok");
});
it("should allow to import a variable named define (expresion)", () => {
it("should allow to import a variable named define (expression)", () => {
const d = i(define);
expect(d()).toBe("ok");
});

View File

@ -1,7 +1,7 @@
import array from "./tracker";
import { b } from "./module";
it("should evaulate modules in the correct order", () => {
it("should evaluate modules in the correct order", () => {
expect(b).toEqual("b");
expect(array).toEqual(["b", "a"]);
})

View File

@ -1,5 +1,5 @@
it("should ignore missing modules as entries", function() {
// a.js and b.js should be evaulated correctly
// a.js and b.js should be evaluated correctly
});
it("should use WebpackMissingModule when evaluating missing modules", function() {

View File

@ -1438,7 +1438,7 @@ async function _createFormWidget(positionTypeId, headerPK, contentId = null) {
_isNewDataset
)
);
const renderFormInConainter = contentId ? contentId : _getFormSelector();
const renderFormInContainer = contentId ? contentId : _getFormSelector();
await form.initForm(
_getModuleName(),
positionTypeId,
@ -1447,7 +1447,7 @@ async function _createFormWidget(positionTypeId, headerPK, contentId = null) {
_formData,
_staticData,
_isNewDataset,
renderFormInConainter,
renderFormInContainer,
headerPK
);
}

View File

@ -1,4 +1,4 @@
it("should ignore case insenstive chars when generating maxSize filenames", () =>
it("should ignore case insensitive chars when generating maxSize filenames", () =>
import(/* webpackChunkName: "chunk" */ "./chunk").then(
({ default: value }) => {
expect(value).toContain("a111");

View File

@ -68,7 +68,7 @@ function run({ default: value2, asyncDep: value3 }) {
__filename,
path.resolve(__dirname, "../../../node_modules/.yarn-integrity")
].concat(esm ? ["../../fixtures/buildDependencies/esm.mjs"] : []),
invalid: options.invalidBuildDepdencies
invalid: options.invalidBuildDependencies
? ["should-fail-resolving"]
: [],
optionalDepsTest: [