From 414b8b322d0f2a49bb10b14e3765242a3f56bb06 Mon Sep 17 00:00:00 2001 From: codefactor-io Date: Mon, 16 May 2022 17:31:43 +0000 Subject: [PATCH] [CodeFactor] Apply fixes --- gatsby-config.js | 2 +- plugins/gatsby-remark-page-creator/gatsby-node.js | 2 +- plugins/gatsby-source-data/gatsby-node.js | 4 ++-- src/sass/imports/_posts.scss | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gatsby-config.js b/gatsby-config.js index 28a03d8ac6..9c51b6e6a2 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,4 +1,4 @@ -const siteMetadata = require('./site-metadata.json') +const siteMetadata = require('./site-metadata.json'); module.exports = { pathPrefix: '/', siteMetadata: siteMetadata, diff --git a/plugins/gatsby-remark-page-creator/gatsby-node.js b/plugins/gatsby-remark-page-creator/gatsby-node.js index d53f924a0c..901f688dd9 100644 --- a/plugins/gatsby-remark-page-creator/gatsby-node.js +++ b/plugins/gatsby-remark-page-creator/gatsby-node.js @@ -28,7 +28,7 @@ function findFileNode({node, getNode}) { return null; } - return fileNode + return fileNode; } exports.onCreateNode = ({node, getNode, actions}, options) => { diff --git a/plugins/gatsby-source-data/gatsby-node.js b/plugins/gatsby-source-data/gatsby-node.js index 3707e23803..4c77475429 100644 --- a/plugins/gatsby-source-data/gatsby-node.js +++ b/plugins/gatsby-source-data/gatsby-node.js @@ -28,7 +28,7 @@ exports.sourceNodes = (props, pluginOptions = {}) => { } if (!path.isAbsolute(pluginOptions.path)) { - pluginOptions.path = path.resolve(process.cwd(), pluginOptions.path) + pluginOptions.path = path.resolve(process.cwd(), pluginOptions.path); } reporter.info(`[gatsby-source-data] setup file watcher and create site data`); @@ -118,6 +118,6 @@ function convertDataFilesToJSON(dataFiles, dataDirPath, reporter) { }); }); return Promise.all(promises).then(results => { - return _.reduce(results, (data, res) => _.merge(data, res), {}) + return _.reduce(results, (data, res) => _.merge(data, res), {}); }); } diff --git a/src/sass/imports/_posts.scss b/src/sass/imports/_posts.scss index a2a4893d56..fa6dde861a 100644 --- a/src/sass/imports/_posts.scss +++ b/src/sass/imports/_posts.scss @@ -69,7 +69,7 @@ .post-full { .post-content { - padding: 1.5em 1.5em; + padding: 1.5em; } .post-meta {