Skip to content
Permalink
Browse files

chore(docs) : fixed several typos (#22242)

* fixed several typos

* Updated another typo
  • Loading branch information
shivaylamba committed Mar 13, 2020
1 parent 150da45 commit 2c089098a841fc74c4db57cc111ebf68988f3397
@@ -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>
)
@@ -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]
@@ -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()
})

/**
@@ -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`)
@@ -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]
)
@@ -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
}

@@ -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
}

0 comments on commit 2c08909

Please sign in to comment.
You can’t perform that action at this time.