From 9d668b99cb7ff53c88a42c8a9ee1340e4316bfb3 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Fri, 27 Apr 2018 21:19:19 +0200 Subject: [PATCH] package updates --- gatsby-node.js | 28 ++++++++++++++-------------- package.json | 3 ++- 2 files changed, 16 insertions(+), 15 deletions(-) diff --git a/gatsby-node.js b/gatsby-node.js index 3a2e9ff..33bf652 100644 --- a/gatsby-node.js +++ b/gatsby-node.js @@ -1,5 +1,19 @@ const path = require('path') +// https://github.com/saschajullmann/gatsby-starter-gatsbythemes/blob/master/gatsby-node.js +exports.modifyWebpackConfig = ({ config, stage }) => { + switch (stage) { + case 'develop': + config.preLoader('eslint-loader', { + test: /\.(js|jsx)$/, + exclude: /node_modules/, + }) + + break + } + return config +} + exports.createPages = ({ boundActionCreators, graphql }) => { const { createPage } = boundActionCreators @@ -59,17 +73,3 @@ exports.createPages = ({ boundActionCreators, graphql }) => { })) }) } - -// https://github.com/saschajullmann/gatsby-starter-gatsbythemes/blob/master/gatsby-node.js -exports.modifyWebpackConfig = ({ config, stage }) => { - switch (stage) { - case 'develop': - config.preLoader('eslint-loader', { - test: /\.(js|jsx)$/, - exclude: /node_modules/, - }) - - break - } - return config -} diff --git a/package.json b/package.json index 98a14ee..9bc9592 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "deploy": "./deploy.sh" }, "dependencies": { - "gatsby": "^1.9.254", + "gatsby": "^1.9.255", "gatsby-link": "^1.6.41", "gatsby-plugin-google-analytics": "^1.0.31", "gatsby-plugin-react-helmet": "^2.0.11", @@ -30,6 +30,7 @@ "devDependencies": { "babel-eslint": "^8.2.3", "eslint": "^4.19.1", + "eslint-loader": "^2.0.0", "eslint-plugin-compat": "^2.2.0", "eslint-plugin-graphql": "^2.1.0", "eslint-plugin-prettier": "^2.6.0",