Skip to content

Commit b960334

Browse files
authored
chore: Fix spelling (#28761)
1 parent 7d71cca commit b960334

File tree

22 files changed

+30
-30
lines changed

22 files changed

+30
-30
lines changed

e2e-tests/production-runtime/cypress/integration/types/site-data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ describe(`the site data object`, () => {
99
.should(`equal`, `Gatsby Default Starter`)
1010
})
1111

12-
it(`description is overriden by value in config`, () => {
12+
it(`description is overridden by value in config`, () => {
1313
cy.getTestElement(`description`)
1414
.invoke(`text`)
1515
.should(`equal`, `This is site for production runtime e2e tests`)

examples/creating-source-plugins/source-plugin/gatsby-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ exports.onCreateNode = async ({
250250
createNodeId,
251251
node,
252252
}) => {
253-
// transfrom remote file nodes using Gatsby sharp plugins
253+
// transform remote file nodes using Gatsby sharp plugins
254254
// because onCreateNode is called for all nodes, verify that you are only running this code on nodes created by your plugin
255255
if (node.internal.type === POST_NODE_TYPE) {
256256
// create a FileNode in Gatsby that gatsby-transformer-sharp will create optimized images for

packages/create-gatsby/src/__tests__/init-starter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ describe(`init-starter`, () => {
161161
it(`gently informs the user that yarn is not available when trying to use it`, async () => {
162162
process.env.npm_config_user_agent = `yarn`
163163
;(execSync as any).mockImplementation(() => {
164-
throw new Error(`Something wrong occured when trying to use yarn`)
164+
throw new Error(`Something wrong occurred when trying to use yarn`)
165165
})
166166
;(path as any).join.mockImplementation(() => `/somewhere-here`)
167167
;(execa as any).mockImplementation(() => Promise.resolve())

packages/gatsby-cli/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -770,7 +770,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
770770

771771
### Performance Improvements
772772

773-
- **gatsby-cli:** avoid unnecesary rerenders for static messages in CLI ([#21955](https://github.com/gatsbyjs/gatsby/issues/21955)) ([5aff49d](https://github.com/gatsbyjs/gatsby/commit/5aff49d))
773+
- **gatsby-cli:** avoid unnecessary rerenders for static messages in CLI ([#21955](https://github.com/gatsbyjs/gatsby/issues/21955)) ([5aff49d](https://github.com/gatsbyjs/gatsby/commit/5aff49d))
774774

775775
## [2.10.2](https://github.com/gatsbyjs/gatsby/compare/[email protected]@2.10.2) (2020-03-06)
776776

packages/gatsby-plugin-image/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -316,11 +316,11 @@ The optional helper function `getImage` takes a file node and returns `file?.chi
316316

317317
These arguments can be passed to the `gatsbyImageData()` resolver:
318318

319-
- **width**: The display width of the generated image. The actual largest image resolution will be this value multipled by the largest value in outputPixelDensities. Ignored if layout = FLUID or CONSTRAINED, where you should use "maxWidth" instead.
319+
- **width**: The display width of the generated image. The actual largest image resolution will be this value multiplied by the largest value in outputPixelDensities. Ignored if layout = FLUID or CONSTRAINED, where you should use "maxWidth" instead.
320320
- **height**: If set, the height of the generated image. If omitted, it is calculated from the supplied width, matching the aspect ratio of the source image.
321321
- **maxWidth**:
322322
Maximum display width of generated files.
323-
The actual largest image resolution will be this value multipled by the largest value in outputPixelDensities
323+
The actual largest image resolution will be this value multiplied by the largest value in outputPixelDensities
324324
This only applies when layout = FLUID or CONSTRAINED. For other layout types, use "width"
325325
- **maxHeight**: If set, the generated image is a maximum of this height, cropping if necessary. If the image layout is "constrained" then the image will be limited to this height. If the aspect ratio of the image is different than the source, then the image will be cropped.`,
326326
- **placeholder**: Format of generated placeholder image.
@@ -336,7 +336,7 @@ These arguments can be passed to the `gatsbyImageData()` resolver:
336336
Default is `[ 0.25, 0.5, 1, 2 ]`, for fluid/constrained images, and `[ 1, 2 ]` for fixed. In this case, an image with a fluid layout and maxWidth = 400 would generate images at 100, 200, 400 and 800px wide
337337
- **sizes**: The "[sizes](https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images)" attribute, passed to the `<img>` tag. This describes the display size of the image. This does not affect the generated images, but is used by the browser to decide which images to download. You can leave this blank for fixed images, or if the responsive image container will be the full width of the screen. In these cases we will generate an appropriate value. If, however, you are generating responsive images that are not the full width of the screen, you should provide a sizes property for best performance. You can alternatively pass this value to the component.
338338
- **formats**: an array of file formats to generate. The default is `[AUTO, WEBP]`, which means it will generate images in the same format as the source image, as well as in the next-generation [WebP](https://developers.google.com/speed/webp) format. We strongly recommend you do not change this option, as doing so will affect performance scores.
339-
- **quality**: The default quality. This is overriden by any format-specific options
339+
- **quality**: The default quality. This is overridden by any format-specific options
340340
- **blurredOptions**: Options for the low-resolution placeholder image. Set placeholder to "BLURRED" to use this
341341
- width
342342
- toFormat

packages/gatsby-plugin-image/src/resolver-utils.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export function getGatsbyImageFieldConfig<TSource, TContext>(
6464
type: GraphQLInt,
6565
description: stripIndent`
6666
Maximum display width of generated files.
67-
The actual largest image resolution will be this value multipled by the largest value in outputPixelDensities
67+
The actual largest image resolution will be this value multiplied by the largest value in outputPixelDensities
6868
This only applies when layout = FLUID or CONSTRAINED. For other layout types, use "width"`,
6969
},
7070
maxHeight: {
@@ -78,7 +78,7 @@ export function getGatsbyImageFieldConfig<TSource, TContext>(
7878
type: GraphQLInt,
7979
description: stripIndent`
8080
The display width of the generated image.
81-
The actual largest image resolution will be this value multipled by the largest value in outputPixelDensities
81+
The actual largest image resolution will be this value multiplied by the largest value in outputPixelDensities
8282
Ignored if layout = FLUID or CONSTRAINED, where you should use "maxWidth" instead.
8383
`,
8484
},

packages/gatsby-plugin-page-creator/src/path-utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export function extractAllCollectionSegments(
3838
// This shouldn't happen - but TS requires us to validate
3939
if (!slugParts) {
4040
throw new Error(
41-
`An error occured building the slug parts. This is likely a bug within Gatsby and not your code. Please report it to us if you run into this.`
41+
`An error occurred building the slug parts. This is likely a bug within Gatsby and not your code. Please report it to us if you run into this.`
4242
)
4343
}
4444

packages/gatsby-plugin-utils/src/utils/plugin-options-schema-joi-type.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ interface ErrorFormattingOptions {
5858
*/
5959
stack?: boolean
6060
/**
61-
* overrides the way values are wrapped (e.g. `[]` arround arrays, `""` around labels).
61+
* overrides the way values are wrapped (e.g. `[]` around arrays, `""` around labels).
6262
* Each key can be set to a string with one (same character before and after the value) or two characters (first character
6363
* before and second character after), or `false` to disable wrapping.
6464
*/
@@ -871,7 +871,7 @@ interface AnySchema extends SchemaInternals {
871871
* - a function which returns the default value using the signature `function(parent, helpers)` where:
872872
* - `parent` - a clone of the object containing the value being validated. Note that since specifying a
873873
* `parent` ragument performs cloning, do not declare format arguments if you are not using them.
874-
* - `helpers` - same as thsoe described in [`any.custom()`](anycustomermethod_description)
874+
* - `helpers` - same as those described in [`any.custom()`](anycustomermethod_description)
875875
*
876876
* When called without any `value` on an object schema type, a default value will be automatically generated
877877
* based on the default values of the object keys.
@@ -1102,7 +1102,7 @@ interface AnySchema extends SchemaInternals {
11021102
rule(options: RuleOptions): this
11031103

11041104
/**
1105-
* Registers a schema to be used by decendents of the current schema in named link references.
1105+
* Registers a schema to be used by descendants of the current schema in named link references.
11061106
*/
11071107
shared(ref: Schema): this
11081108

packages/gatsby-recipes/src/graphql-server/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default async function startGraphQLServer(programPath, forceStart) {
2929
all: true,
3030
env: {
3131
// Chalk doesn't want to output color in a child process
32-
// as it (correctly) thinks it's not in a normal terminal environemnt.
32+
// as it (correctly) thinks it's not in a normal terminal environment.
3333
// Since we're just returning data, we'll override that.
3434
FORCE_COLOR: `true`,
3535
},

packages/gatsby-recipes/src/renderer/render.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ const render = (recipe, cb, context = {}, isApply, isStream, name) => {
330330
})
331331

332332
// When there's no resources, renderResources finishes synchronously
333-
// so wait for the next tick so the emitter listners can be setup first.
333+
// so wait for the next tick so the emitter listeners can be setup first.
334334
process.nextTick(() => renderResources())
335335

336336
if (isStream) {

packages/gatsby-remark-autolink-headers/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ module.exports = {
9090

9191
## How to style the anchor link
9292

93-
By default, the anchor link has a class of `anchor` (see `className` option to change this name) on the element but has no additional styling. To make it fit your website, you'll have to write some CSS to change the appeareance.
93+
By default, the anchor link has a class of `anchor` (see `className` option to change this name) on the element but has no additional styling. To make it fit your website, you'll have to write some CSS to change the appearance.
9494

9595
In your CSS you can specify this element, in this instance the anchor tag will appear red:
9696

packages/gatsby-source-filesystem/src/__tests__/create-file-node.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe(`create-file-node`, () => {
1111
beforeEach(() => {
1212
// If this breaks, note that the actual values here are not relevant. They just need to be mocked because
1313
// otherwise the tests change due to changing timestamps. The returned object should mimic the real fs.stat
14-
// Note: async tests should run in serial so this mock should not cause cross test polution on this thread.
14+
// Note: async tests should run in serial so this mock should not cause cross test pollution on this thread.
1515
fs.stat = jest.fn().mockResolvedValue(
1616
Promise.resolve({
1717
isDirectory() {

packages/gatsby-transformer-sharp/src/customize-schema.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ const imageNodeType = ({
411411
type: GraphQLInt,
412412
description: stripIndent`
413413
Maximum display width of generated files.
414-
The actual largest image resolution will be this value multipled by the largest value in outputPixelDensities
414+
The actual largest image resolution will be this value multiplied by the largest value in outputPixelDensities
415415
This only applies when layout = FLUID or CONSTRAINED. For other layout types, use "width"`,
416416
},
417417
maxHeight: {
@@ -425,7 +425,7 @@ const imageNodeType = ({
425425
type: GraphQLInt,
426426
description: stripIndent`
427427
The display width of the generated image.
428-
The actual largest image resolution will be this value multipled by the largest value in outputPixelDensities
428+
The actual largest image resolution will be this value multiplied by the largest value in outputPixelDensities
429429
Ignored if layout = FLUID or CONSTRAINED, where you should use "maxWidth" instead.
430430
`,
431431
},
@@ -480,7 +480,7 @@ const imageNodeType = ({
480480
},
481481
quality: {
482482
type: GraphQLInt,
483-
description: `The default quality. This is overriden by any format-specific options`,
483+
description: `The default quality. This is overridden by any format-specific options`,
484484
},
485485
jpgOptions: {
486486
type: JPGOptionsType,

packages/gatsby/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11611161
### Bug Fixes
11621162

11631163
- **gatsby:** don't fail validation on fragments that are not used ([#24032](https://github.com/gatsbyjs/gatsby/issues/24032)) ([61d0ef4](https://github.com/gatsbyjs/gatsby/commit/61d0ef4))
1164-
- **gatsby:** update script to generate apis.json to accomodate Typescript ([#24023](https://github.com/gatsbyjs/gatsby/issues/24023)) ([7878d0f](https://github.com/gatsbyjs/gatsby/commit/7878d0f))
1164+
- **gatsby:** update script to generate apis.json to accommodate Typescript ([#24023](https://github.com/gatsbyjs/gatsby/issues/24023)) ([7878d0f](https://github.com/gatsbyjs/gatsby/commit/7878d0f))
11651165

11661166
## [2.21.28](https://github.com/gatsbyjs/gatsby/compare/[email protected]@2.21.28) (2020-05-13)
11671167

packages/gatsby/src/cache/__tests__/cache-fs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ describe(`DiskStore`, function () {
8686
expect(countFilesInCacheDir()).toEqual(2)
8787
})
8888

89-
it(`should save buffers in seperate files promise`, async function () {
89+
it(`should save buffers in separate files promise`, async function () {
9090
await cache.set(`key`, Buffer.alloc(100000))
9191
expect(countFilesInCacheDir()).toEqual(2)
9292
})

packages/gatsby/src/cache/cache-fs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function DiskStore(options): void {
6767
subdirs: options.subdirs || false,
6868
zip: options.zip || false,
6969
lockFile: {
70-
//check lock at 0ms 50ms 100ms ... 400ms 1400ms 1450ms... up to 10 seconds, after that just asume the lock is staled
70+
//check lock at 0ms 50ms 100ms ... 400ms 1400ms 1450ms... up to 10 seconds, after that just assume the lock is staled
7171
wait: 400,
7272
pollPeriod: 50,
7373
stale: 10 * 1000,

packages/gatsby/src/utils/__tests__/jobs-manager.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ describe(`Jobs manager`, () => {
226226
Promise.reject(new Error(`An error occurred`))
227227
)
228228
.mockImplementationOnce(() =>
229-
Promise.reject({ message: `An error occured` })
229+
Promise.reject({ message: `An error occurred` })
230230
)
231231
.mockImplementationOnce(() =>
232232
Promise.reject({ key: `weird error object` })
@@ -247,7 +247,7 @@ describe(`Jobs manager`, () => {
247247
try {
248248
await enqueueJob(jobArgs3)
249249
} catch (err) {
250-
expect(err).toMatchInlineSnapshot(`[WorkerError: An error occured]`)
250+
expect(err).toMatchInlineSnapshot(`[WorkerError: An error occurred]`)
251251
}
252252

253253
try {

packages/gatsby/src/utils/dev-ssr/render-dev-html-child.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const parseError = function ({ err, directory, componentPath }) {
6060
const filename = sysPath.join(
6161
directory,
6262
// Don't need to use path.sep as webpack always uses a single forward slash
63-
// as a path seperator.
63+
// as a path separator.
6464
...position.filename.split(`/`).slice(2)
6565
)
6666

packages/gatsby/src/utils/start-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ module.exports = {
481481
// This isn't used in development.
482482
if (fullUrl.endsWith(`app-data.json`)) {
483483
res.json({ webpackCompilationHash: `123` })
484-
// If this gets here, it's a non-existant file so just send back 404.
484+
// If this gets here, it's a non-existent file so just send back 404.
485485
} else if (fullUrl.endsWith(`.json`)) {
486486
res.json({}).status(404)
487487
} else {

rfcs/text/000-cli-redesign.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ The user can:
7171
- [x] select a starter in the CLI without needing a URL. See PR https://github.com/gatsbyjs/gatsby/pull/14097
7272
- [ ] be redirected to the correct URL when typing in “localhost:8000/\_ \_ graphiql incorrectly (we could either redirect to "correct" one or just support multiple different cases)
7373
- [ ] be directed to another localhost address is localhost:8000 is already taken (https://github.com/gatsbyjs/gatsby/issues/368 and https://github.com/gatsbyjs/gatsby/issues/13512#issuecomment-485781525)
74-
- [ ] misspell a Gatsby command and the CLI will run the correct command anyway just like Google search does when you mispell something (requires us to update the did-you-mean file). https://github.com/gatsbyjs/gatsby/issues/13512
74+
- [ ] misspell a Gatsby command and the CLI will run the correct command anyway just like Google search does when you misspell something (requires us to update the did-you-mean file). https://github.com/gatsbyjs/gatsby/issues/13512
7575
- [ ] get createPages page count in output to help users optimize for speed and catch errors faster''
7676
- [ ] get notified that they might need to hit `r` if they’ve changed package.json, gatsby node, etc. when `gatsby develop` is running
7777
- [ ] see only relevant warnings; e.g. omission of peer dependency warnings that they can ignore

rfcs/text/0004-native-graphql-source.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
url: "https://api.graphcms.com/simple/v1/swapi",
3030
},
3131
},
32-
// Passing paramaters (passed to apollo-link)
32+
// Passing parameters (passed to apollo-link)
3333
{
3434
resolve: "gatsby-source-graphql",
3535
options: {

rfcs/text/0006-node-8-minimum-version.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ We've internally discussed something called `gatsby doctor` which can be run pri
112112

113113
This proposal requires documentation to be updated. Our documentation can be considered a code style-guide and oftentimes developers directly copy and paste from our documentation. If we are documenting what we think is a best practice (e.g. Node 6 features like async/await) we are implicitly easing the migration cost of any developer who reads our documentation--which is hopefully all of them!
114114

115-
I strongly feel that tweaking the documentation, as well as minimum version requirements, will lead to developers having a _better_ experience using Gatsby, and Gatsby as a whole becomes easier to teach. It resolves the idiosyncracy of _why_ do I need a global install and _when_ do I use `async` / `await` or `return new Promise`. This change should have a net positive impact on the ease-of-use of teaching Gatsby to new and experienced developers, alike.
115+
I strongly feel that tweaking the documentation, as well as minimum version requirements, will lead to developers having a _better_ experience using Gatsby, and Gatsby as a whole becomes easier to teach. It resolves the idiosyncrasy of _why_ do I need a global install and _when_ do I use `async` / `await` or `return new Promise`. This change should have a net positive impact on the ease-of-use of teaching Gatsby to new and experienced developers, alike.
116116

117117
# Unresolved questions
118118

0 commit comments

Comments
 (0)