From d81fd3890862345c36334482967eac0cc25e57cc Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 28 Mar 2024 08:44:24 +0100 Subject: [PATCH] fix: code factor and lint warns --- .eslintignore | 3 ++- src/sass/kompletr.demo.scss | 4 ++-- webpack.config.js | 1 + webpack.config.prod.js | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.eslintignore b/.eslintignore index f531817..2992fc0 100644 --- a/.eslintignore +++ b/.eslintignore @@ -2,4 +2,5 @@ build coverage dist node_modules -test \ No newline at end of file +test +cypress \ No newline at end of file diff --git a/src/sass/kompletr.demo.scss b/src/sass/kompletr.demo.scss index a4226dc..2abe526 100644 --- a/src/sass/kompletr.demo.scss +++ b/src/sass/kompletr.demo.scss @@ -45,11 +45,11 @@ body { } hgroup { - margin: 0 auto 40px auto; + margin: 0 auto 40px; text-align: center; img { - margin: 100px auto 20px auto; + margin: 100px auto 20px; display: block; max-width: 500px; } diff --git a/webpack.config.js b/webpack.config.js index 0c0fe4c..5275dc7 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,6 +2,7 @@ import path from 'path'; import * as url from 'url'; import DashboardPlugin from 'webpack-dashboard/plugin/index.js'; +// eslint-disable-next-line compat/compat const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); export default { diff --git a/webpack.config.prod.js b/webpack.config.prod.js index fd7df8a..5e818c9 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -1,6 +1,7 @@ import path from 'path'; import * as url from 'url'; +// eslint-disable-next-line compat/compat const __dirname = url.fileURLToPath(new URL('.', import.meta.url)); export default [