Skip to content

Commit

Permalink
chore(docs) : fixed several typos (#22242)
Browse files Browse the repository at this point in the history
* fixed several typos

* Updated another typo
  • Loading branch information
shivaylamba authored Mar 13, 2020
1 parent 150da45 commit 2c08909
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import SEO from '../components/seo'
const SecondPage = () => (
<Layout>
<SEO title="Payment Success" />
<h1>Sucess!</h1>
<h1>Success!</h1>
<Link to="/">Shop again</Link>
</Layout>
)
Expand Down
6 changes: 3 additions & 3 deletions packages/gatsby-cli/src/reporter/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const addMessage = level => text => reporterActions.createLog({ level, text })

let isVerbose = false

const interuptActivities = () => {
const interruptActivities = () => {
const { activities } = getStore().getState().logs
Object.keys(activities).forEach(activityId => {
const activity = activities[activityId]
Expand All @@ -80,12 +80,12 @@ const prematureEnd = () => {
status: ActivityStatuses.Failed,
})

interuptActivities()
interruptActivities()
}

signalExit((code, signal) => {
if (code !== 0 && signal !== `SIGINT` && signal !== `SIGTERM`) prematureEnd()
else interuptActivities()
else interruptActivities()
})

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/gatsby/src/bootstrap/load-plugins/validate.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const _ = require(`lodash`)
const semver = require(`semver`)
const stringSimiliarity = require(`string-similarity`)
const stringSimilarity = require(`string-similarity`)
const { version: gatsbyVersion } = require(`gatsby/package.json`)
const reporter = require(`gatsby-cli/lib/reporter`)
const resolveModuleExports = require(`../resolve-module-exports`)
Expand Down Expand Up @@ -48,7 +48,7 @@ const getErrorContext = (badExports, exportType, currentAPIs, latestAPIs) => {
)

entries.forEach(entry => {
const similarities = stringSimiliarity.findBestMatch(
const similarities = stringSimilarity.findBestMatch(
entry.exportName,
currentAPIs[exportType]
)
Expand Down
4 changes: 2 additions & 2 deletions peril/rules/validate-yaml.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ const githubRepoRegex: RegExp = new RegExp(

const getExistingFiles = async (path: string, base: string) => {
const [owner, repo] = danger.github.pr.head.repo.full_name.split("/")
const imagesDirReponse: {
const imagesDirResponse: {
data: { name: string }[]
} = await danger.github.api.repos.getContent({
repo,
owner,
path,
ref: danger.github.pr.head.ref,
})
const files = imagesDirReponse.data.map(({ name }) => `${base}/${name}`)
const files = imagesDirResponse.data.map(({ name }) => `${base}/${name}`)
return files
}

Expand Down
2 changes: 1 addition & 1 deletion www/src/templates/template-api-markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const mergeFunctions = (data, context) => {
}
} else {
// API pages having apiCalls did not query for this in the page query,
// so just remove it instead. Having one that returns nothing supresses
// so just remove it instead. Having one that returns nothing suppresses
// documentation git links completely.
def.codeLocation = null
}
Expand Down

0 comments on commit 2c08909

Please sign in to comment.