From e4d50b7429e687ed0510f1d99bd401ec0ec95a68 Mon Sep 17 00:00:00 2001 From: Calvin Koepke Date: Fri, 20 Mar 2020 14:32:02 -0600 Subject: [PATCH 1/4] update webpack config --- config/webpack.common.js | 2 -- config/webpack.dev.js | 2 -- config/webpack.prod.js | 2 -- config/webpack.settings.js | 2 -- 4 files changed, 8 deletions(-) diff --git a/config/webpack.common.js b/config/webpack.common.js index cc8e2db..56cdd14 100644 --- a/config/webpack.common.js +++ b/config/webpack.common.js @@ -1,5 +1,3 @@ -/* global process, module, require */ - const path = require( 'path' ); const { CleanWebpackPlugin } = require( 'clean-webpack-plugin' ); const CopyWebpackPlugin = require( 'copy-webpack-plugin' ); diff --git a/config/webpack.dev.js b/config/webpack.dev.js index 18d8429..42874a7 100644 --- a/config/webpack.dev.js +++ b/config/webpack.dev.js @@ -1,5 +1,3 @@ -/* global module, require */ - const merge = require( 'webpack-merge' ); const common = require( './webpack.common.js' ); const BrowserSyncPlugin = require( 'browser-sync-webpack-plugin' ); diff --git a/config/webpack.prod.js b/config/webpack.prod.js index 2490623..8ee75a3 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -1,5 +1,3 @@ -/* global module, require */ - const merge = require( 'webpack-merge' ); const common = require( './webpack.common.js' ); const TerserPlugin = require( 'terser-webpack-plugin' ); diff --git a/config/webpack.settings.js b/config/webpack.settings.js index 85d4b46..827a6b5 100644 --- a/config/webpack.settings.js +++ b/config/webpack.settings.js @@ -1,5 +1,3 @@ -/* global module */ - // Webpack settings exports. module.exports = { entries: { From 33fc1d63d44625d8abc7c7b765423698b0c1f3ee Mon Sep 17 00:00:00 2001 From: Calvin Koepke Date: Fri, 20 Mar 2020 14:32:36 -0600 Subject: [PATCH 2/4] add require to global variables --- .eslintrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index c9fec71..393a860 100644 --- a/.eslintrc +++ b/.eslintrc @@ -11,6 +11,7 @@ "module": true, "process": true, "wp": true, - "lodash": true + "lodash": true, + "require": true } } From e76e9b8bafa7ee6a458a8b42458d45769a248b6c Mon Sep 17 00:00:00 2001 From: Calvin Koepke Date: Mon, 23 Mar 2020 11:15:01 -0600 Subject: [PATCH 3/4] convert name file --- .eslintrc => .eslintrc.json | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .eslintrc => .eslintrc.json (100%) diff --git a/.eslintrc b/.eslintrc.json similarity index 100% rename from .eslintrc rename to .eslintrc.json From 48f3574ea271b9e651412f0c5b46da664e0aa573 Mon Sep 17 00:00:00 2001 From: Calvin Koepke Date: Mon, 23 Mar 2020 11:15:40 -0600 Subject: [PATCH 4/4] fix indent --- .eslintrc.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 393a860..121466a 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -8,10 +8,10 @@ "react/jsx-uses-vars": "error" }, "globals": { - "module": true, - "process": true, - "wp": true, - "lodash": true, - "require": true + "module": true, + "process": true, + "wp": true, + "lodash": true, + "require": true } }