Skip to content

Commit ceadab1

Browse files
style: fix spelling issues
Replace incorrectly spelled words and add ignorable words to spell checker config.
1 parent 5a17712 commit ceadab1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"editor.defaultFormatter": "esbenp.prettier-vscode"
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"cSpell.words": ["cfetch", "execa", "iarna", "Miniflare"]
34
}

packages/wrangler/src/index.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async function readConfig(path?: string): Promise<Config> {
8787
];
8888
Object.keys(config.env || {}).forEach((env) => {
8989
mirroredFields.forEach((field) => {
90-
// if it exists on top level, it should exist on env defns
90+
// if it exists on top level, it should exist on env definitions
9191
Object.keys(config[field] || {}).forEach((fieldKey) => {
9292
if (!(fieldKey in config.env[env][field])) {
9393
console.error(
@@ -161,7 +161,7 @@ export async function main(argv: string[]): Promise<void> {
161161
// of the args in the handle function.I wish we could enforce this pattern, but this
162162
// comment will have to do for now.
163163

164-
// also annoying that choices[] doesn't get inferred as an enum. bleh.
164+
// also annoying that choices[] doesn't get inferred as an enum. 🤷‍♂.
165165

166166
// [DEPRECATED] generate
167167
yargs.command(
@@ -358,7 +358,7 @@ export async function main(argv: string[]): Promise<void> {
358358
await login();
359359

360360
// TODO: would be nice if it optionally saved login
361-
// creds inside node_modules/.cache or something
361+
// credentials inside node_modules/.cache or something
362362
// this way you could have multiple users on a single machine
363363
}
364364
);
@@ -783,7 +783,7 @@ export async function main(argv: string[]): Promise<void> {
783783
});
784784
},
785785
() => {
786-
// "🔬 [DEPRECATED] Preview your code temporarily on cloudflareworkers.com"
786+
// "🔬 [DEPRECATED] Preview your code temporarily on https://cloudflareworkers.com"
787787
console.error(
788788
"`wrangler preview` has been deprecated, please refer to TODO://some/path for alternatives"
789789
);

0 commit comments

Comments
 (0)