Skip to content

Commit

Permalink
fix: linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt authored and dependabot-preview[bot] committed Aug 21, 2019
1 parent 0092452 commit 9b5a8be
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions www/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ const path = require('path');

const config = require('./config');

const stringifiedConfig = {};
// eslint-disable-next-line no-restricted-syntax
for (const [key, value] of Object.entries(config)) {
stringifiedConfig[key] = JSON.stringify(value);
}
const stringifiedConfig = Object.entries(config).reduce(
(acc, [key, value]) => ({ ...acc, [key]: JSON.stringify(value) }),
{},
);

exports.onCreateWebpackConfig = function onCreateWebpackConfig({
actions,
Expand Down

0 comments on commit 9b5a8be

Please sign in to comment.