Skip to content

Commit

Permalink
add missing format checks (#86)
Browse files Browse the repository at this point in the history
- let prettier format CSS & SCSS
- also `npm audit fix`
  • Loading branch information
irahopkinson authored Nov 20, 2024
1 parent 8902864 commit 93d4b0a
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ module.exports = {
},
],
rules: {
// Disable Stylelint's indentation control
'@stylistic/indentation': null,
// Let Prettier handle selector list formatting
'@stylistic/selector-list-comma-newline-after': null,
'color-named': null,
'max-nesting-depth': 2,
'no-descending-specificity': null,
Expand Down
25 changes: 20 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
"watch": "npm run build -- --watch",
"build:production": "cross-env NODE_ENV=production TS_NODE_TRANSPILE_ONLY=false webpack",
"watch:production": "npm run build:production -- --watch",
"format": "prettier --write .",
"format:check": "prettier --check .",
"zip": "zip-build dist release --template '%NAME%_%VERSION%.%EXT%' --override",
"package": "npm run build:production && npm run zip",
"package:debug": "cross-env DEBUG_PROD=true npm run package",
Expand All @@ -23,7 +25,7 @@
"lint:scripts": "eslint --ext .cjs,.js,.jsx,.ts,.tsx --cache .",
"lint:styles": "stylelint **/*.{css,scss}",
"lint-fix": "npm run lint-fix:scripts && npm run lint:styles -- --fix",
"lint-fix:scripts": "prettier --write \"**/*.{ts,tsx,js,jsx,cjs}\" && npm run lint:scripts"
"lint-fix:scripts": "npm run format && npm run lint:scripts"
},
"browserslist": [],
"peerDependencies": {
Expand Down

0 comments on commit 93d4b0a

Please sign in to comment.