Skip to content

Commit 2c08909

Browse files
authored
chore(docs) : fixed several typos (#22242)
* fixed several typos * Updated another typo
1 parent 150da45 commit 2c08909

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

examples/ecommerce-tutorial-with-stripe/src/pages/page-2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import SEO from '../components/seo'
77
const SecondPage = () => (
88
<Layout>
99
<SEO title="Payment Success" />
10-
<h1>Sucess!</h1>
10+
<h1>Success!</h1>
1111
<Link to="/">Shop again</Link>
1212
</Layout>
1313
)

packages/gatsby-cli/src/reporter/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const addMessage = level => text => reporterActions.createLog({ level, text })
5858

5959
let isVerbose = false
6060

61-
const interuptActivities = () => {
61+
const interruptActivities = () => {
6262
const { activities } = getStore().getState().logs
6363
Object.keys(activities).forEach(activityId => {
6464
const activity = activities[activityId]
@@ -80,12 +80,12 @@ const prematureEnd = () => {
8080
status: ActivityStatuses.Failed,
8181
})
8282

83-
interuptActivities()
83+
interruptActivities()
8484
}
8585

8686
signalExit((code, signal) => {
8787
if (code !== 0 && signal !== `SIGINT` && signal !== `SIGTERM`) prematureEnd()
88-
else interuptActivities()
88+
else interruptActivities()
8989
})
9090

9191
/**

packages/gatsby/src/bootstrap/load-plugins/validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const _ = require(`lodash`)
22
const semver = require(`semver`)
3-
const stringSimiliarity = require(`string-similarity`)
3+
const stringSimilarity = require(`string-similarity`)
44
const { version: gatsbyVersion } = require(`gatsby/package.json`)
55
const reporter = require(`gatsby-cli/lib/reporter`)
66
const resolveModuleExports = require(`../resolve-module-exports`)
@@ -48,7 +48,7 @@ const getErrorContext = (badExports, exportType, currentAPIs, latestAPIs) => {
4848
)
4949

5050
entries.forEach(entry => {
51-
const similarities = stringSimiliarity.findBestMatch(
51+
const similarities = stringSimilarity.findBestMatch(
5252
entry.exportName,
5353
currentAPIs[exportType]
5454
)

peril/rules/validate-yaml.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ const githubRepoRegex: RegExp = new RegExp(
1111

1212
const getExistingFiles = async (path: string, base: string) => {
1313
const [owner, repo] = danger.github.pr.head.repo.full_name.split("/")
14-
const imagesDirReponse: {
14+
const imagesDirResponse: {
1515
data: { name: string }[]
1616
} = await danger.github.api.repos.getContent({
1717
repo,
1818
owner,
1919
path,
2020
ref: danger.github.pr.head.ref,
2121
})
22-
const files = imagesDirReponse.data.map(({ name }) => `${base}/${name}`)
22+
const files = imagesDirResponse.data.map(({ name }) => `${base}/${name}`)
2323
return files
2424
}
2525

www/src/templates/template-api-markdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const mergeFunctions = (data, context) => {
5353
}
5454
} else {
5555
// API pages having apiCalls did not query for this in the page query,
56-
// so just remove it instead. Having one that returns nothing supresses
56+
// so just remove it instead. Having one that returns nothing suppresses
5757
// documentation git links completely.
5858
def.codeLocation = null
5959
}

0 commit comments

Comments
 (0)