Skip to content

Commit

Permalink
Merge pull request #15 from kremalicious/dependabot/npm_and_yarn/pret…
Browse files Browse the repository at this point in the history
…tier-2.0.5

Bump prettier from 1.19.1 to 2.0.5
  • Loading branch information
kremalicious committed May 17, 2020
2 parents 2ec917a + b8322b2 commit 660ca7d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
"eslint-plugin-prettier": "^3.1.0",
"prettier": "^1.18.2",
"prettier": "^2.0.5",
"release-it": "^12.3.0"
},
"peerDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions src/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function createPages({ graphql, actions }, pluginOptions) {
}
}
`
).then(result => {
).then((result) => {
if (result.errors) {
console.log(result.errors) // eslint-disable-line no-console
reject(result.errors)
Expand All @@ -38,7 +38,7 @@ export function createPages({ graphql, actions }, pluginOptions) {

// For all posts with redirect_from frontmatter,
// extract all values and push to redirects array
allPosts.forEach(post => {
allPosts.forEach((post) => {
redirects.push({
from: post.node.frontmatter.redirect_from,
to: post.node.fields.slug
Expand All @@ -48,7 +48,7 @@ export function createPages({ graphql, actions }, pluginOptions) {
// Create redirects from the just constructed array
redirects.forEach(({ from, to }) => {
// iterate through all `from` array items
from.forEach(from => {
from.forEach((from) => {
createRedirect({
fromPath: from,
toPath: to,
Expand Down

0 comments on commit 660ca7d

Please sign in to comment.