From c52887cd5d618c74b925712ab021e2c9b10ef6ba Mon Sep 17 00:00:00 2001 From: Roger Sheen Date: Mon, 8 Jan 2024 17:45:15 +0100 Subject: [PATCH] Coax Stylelint to check files in hidden folders 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: - https://github.com/stylelint/stylelint/issues/6109 - https://github.com/stylelint/stylelint/pull/6437#issuecomment-1314522436 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e24942c..a0832e9 100644 --- a/package.json +++ b/package.json @@ -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": {