From 85ec3b06acd2408d2f3066704e05391d60adaa27 Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Sat, 16 May 2020 23:55:39 +0000 Subject: [PATCH 1/2] Bump prettier from 1.19.1 to 2.0.5 Bumps [prettier](https://github.com/prettier/prettier) from 1.19.1 to 2.0.5. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/1.19.1...2.0.5) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 501260a..9e9c6b9 100644 --- a/package.json +++ b/package.json @@ -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": { From b8322b2f3cc0f42b1b19a8226351207594e80c70 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Sun, 17 May 2020 01:58:03 +0200 Subject: [PATCH 2/2] formatting changes --- src/gatsby-node.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gatsby-node.js b/src/gatsby-node.js index 21358d8..938744b 100644 --- a/src/gatsby-node.js +++ b/src/gatsby-node.js @@ -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) @@ -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 @@ -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,