Skip to content

Commit

Permalink
fix(workflow): remove whitespace and config js linter
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Aug 8, 2024
1 parent 960f112 commit 836ece6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 16 deletions.
4 changes: 4 additions & 0 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
---
ignorePatterns: ["layouts/page/single.json", "assets/js/bootstrap.js"]
parserOptions:
ecmaVersion: latest
env:
es6: true
2 changes: 1 addition & 1 deletion .github/workflows/deploy-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
node-version: '20'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Prepare npm
run: npm ci

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
node-version: '20'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Prepare npm
run: npm ci

Expand Down
28 changes: 14 additions & 14 deletions postcss.config.js
Original file line number Diff line number Diff line change
@@ -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] : []),
],
};
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] : [])
]
}

0 comments on commit 836ece6

Please sign in to comment.