Skip to content

A local-first personal finance app

Don’t run linting while building in CI (#689)

Jed Foxf43041a39f27
diff --git a/packages/desktop-client/config/webpack.config.js b/packages/desktop-client/config/webpack.config.js
index 09955b849b..498008e287 100644
--- a/packages/desktop-client/config/webpack.config.js
+++ b/packages/desktop-client/config/webpack.config.js
@@ -282,7 +282,7 @@ module.exports = function(webpackEnv) {
// First, run the linter.
// It's important to do this before Babel processes the JS.
- {
+ !process.env.CI && {
test: /\.(js|mjs|jsx)$/,
enforce: 'pre',
use: [
@@ -428,7 +428,7 @@ module.exports = function(webpackEnv) {
// Make sure to add the new loader(s) before the "file" loader.
]
}
- ]
+ ].filter(Boolean)
},
plugins: [
// Generates an `index.html` file with the <script> injected.