From 575c07fbdc6bf7d0797f2361938433109a802a56 Mon Sep 17 00:00:00 2001 From: noxil Date: Thu, 8 Aug 2024 03:37:03 +0200 Subject: [PATCH] fix(workflow): remove whitespace and config js linter --- .github/workflows/deploy-dev.yml | 2 +- .github/workflows/deploy-prod.yml | 2 +- postcss.config.js | 28 ++++++++++++++-------------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 9139181..f546880 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -29,7 +29,7 @@ jobs: node-version: '20' cache: 'npm' cache-dependency-path: '**/package-lock.json' - + - name: Prepare npm run: npm ci diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 95f3368..7d7496d 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -31,7 +31,7 @@ jobs: node-version: '20' cache: 'npm' cache-dependency-path: '**/package-lock.json' - + - name: Prepare npm run: npm ci diff --git a/postcss.config.js b/postcss.config.js index 825ebb8..5451bc7 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,14 +1,14 @@ -const purgecss = require("@fullhuman/postcss-purgecss")({ - content: ["./hugo_stats.json"], - defaultExtractor: (content) => { - const els = JSON.parse(content).htmlElements; - return [...(els.tags || []), ...(els.classes || []), ...(els.ids || [])]; - }, - safelist: [], - }); - - module.exports = { - plugins: [ - ...(process.env.HUGO_ENVIRONMENT === "production" ? [purgecss] : []), - ], - }; \ No newline at end of file +const purgecss = require('@fullhuman/postcss-purgecss')({ + content: ['./hugo_stats.json'], + defaultExtractor: (content) => { + const els = JSON.parse(content).htmlElements + return [...(els.tags || []), ...(els.classes || []), ...(els.ids || [])] + }, + safelist: [] +}) + +module.exports = { + plugins: [ + ...(process.env.HUGO_ENVIRONMENT === 'production' ? [purgecss] : []) + ] +}