Skip to content

Commit

Permalink
Coax Stylelint to check files in hidden folders
Browse files Browse the repository at this point in the history
Stylelint ignores hidden folders by default, so we need to pass --globby-options '{"dot":true}' to ensure that CSS files in `.github` workflow folders are checked.

For background, see:
- stylelint/stylelint#6109
- stylelint/stylelint#6437 (comment)
  • Loading branch information
infotexture committed Jan 8, 2024
1 parent 70806f7 commit c52887c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -20,7 +20,7 @@
"prepare": "husky install",
"prettier": "prettier --write \"**/*.{css,dita*,json,md,xml,xsl,yml}\"",
"prettier-check": "prettier --check \"**/*.{css,dita*,json,md,xml,xsl,yml}\"",
"stylelint": "stylelint \"**/*.css\"",
"stylelint": "stylelint \"**/*.css\" --globby-options '{\"dot\":true}'",
"test": "prettier --list-different \"**/*.{css,dita*,json,md,xml,xsl,yml}\""
},
"lint-staged": {
Expand Down

0 comments on commit c52887c

Please sign in to comment.