From 84d6dcf49846778bd90f839252a3e182029da60f Mon Sep 17 00:00:00 2001 From: Germain Souquet Date: Fri, 16 Apr 2021 09:18:32 +0100 Subject: [PATCH] Revert overzealous ESLint updates --- webpack.config.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index a3d067d5a5..7bb3e696a5 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -138,11 +138,11 @@ module.exports = (env, argv) => { // overflows (https://github.com/webpack/webpack/issues/1721), and // there is no need for webpack to parse them - they can just be // included as-is. - /highlight\.js[\\/]lib[\\/]languages/, + /highlight\.js[\\\/]lib[\\\/]languages/, // olm takes ages for webpack to process, and it's already heavily // optimised, so there is little to gain by us uglifying it. - /olm[\\/](javascript[\\/])?olm\.js$/, + /olm[\\\/](javascript[\\\/])?olm\.js$/, ], rules: [ { @@ -184,8 +184,8 @@ module.exports = (env, argv) => { loader: 'postcss-loader', ident: 'postcss', options: { - "sourceMap": true, - "plugins": () => [ + sourceMap: true, + plugins: () => [ // Note that we use significantly fewer plugins on the plain // CSS parser. If we start to parse plain CSS, we end with all // kinds of nasty problems (like stylesheets not loading). @@ -212,7 +212,7 @@ module.exports = (env, argv) => { // up with broken CSS. require('postcss-preset-env')({stage: 3, browsers: 'last 2 versions'}), ], - "parser": "postcss-scss", + parser: "postcss-scss", "local-plugins": true, }, }, @@ -233,8 +233,8 @@ module.exports = (env, argv) => { loader: 'postcss-loader', ident: 'postcss', options: { - "sourceMap": true, - "plugins": () => [ + sourceMap: true, + plugins: () => [ // Note that we use slightly different plugins for SCSS. require('postcss-import')(), @@ -251,7 +251,7 @@ module.exports = (env, argv) => { // up with broken CSS. require('postcss-preset-env')({stage: 3, browsers: 'last 2 versions'}), ], - "parser": "postcss-scss", + parser: "postcss-scss", "local-plugins": true, }, },