diff --git a/.github/workflows/lint-css.yml b/.github/workflows/lint-css.yml index 8131cfeae..34122a853 100644 --- a/.github/workflows/lint-css.yml +++ b/.github/workflows/lint-css.yml @@ -37,7 +37,7 @@ jobs: run: npm ci - name: Stylelint - run: npx stylelint "**/*.css" -f github + run: npx stylelint "**/*.css" --custom-formatter @csstools/stylelint-formatter-github - name: Prettier run: npx prettier --check "**/*.css" diff --git a/package-lock.json b/package-lock.json index 7ba2297d4..5ec118efc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,6 +16,7 @@ "devDependencies": { "@babel/core": "^7.25.2", "@babel/eslint-parser": "^7.25.1", + "@csstools/stylelint-formatter-github": "^1.0.0", "ava": "^6.1.3", "cheerio": "^1.0.0-rc.12", "cross-spawn": "^7.0.3", @@ -997,6 +998,29 @@ "postcss-selector-parser": "^6.0.13" } }, + "node_modules/@csstools/stylelint-formatter-github": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@csstools/stylelint-formatter-github/-/stylelint-formatter-github-1.0.0.tgz", + "integrity": "sha512-YBKb4lNRXEpqrO6oJY0ql+D7lQGZcIwj/bs2bf3t95CU3NZFLrrZoJrKxVeyp5mCPo5iNopsp+wkksrjI7FI/Q==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/csstools" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/csstools" + } + ], + "license": "MIT-0", + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "stylelint": "^16.6.0" + } + }, "node_modules/@dual-bundle/import-meta-resolve": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@dual-bundle/import-meta-resolve/-/import-meta-resolve-4.1.0.tgz", @@ -8505,6 +8529,13 @@ "dev": true, "requires": {} }, + "@csstools/stylelint-formatter-github": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@csstools/stylelint-formatter-github/-/stylelint-formatter-github-1.0.0.tgz", + "integrity": "sha512-YBKb4lNRXEpqrO6oJY0ql+D7lQGZcIwj/bs2bf3t95CU3NZFLrrZoJrKxVeyp5mCPo5iNopsp+wkksrjI7FI/Q==", + "dev": true, + "requires": {} + }, "@dual-bundle/import-meta-resolve": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/@dual-bundle/import-meta-resolve/-/import-meta-resolve-4.1.0.tgz", diff --git a/package.json b/package.json index b11077a6b..9f505ca6c 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ "devDependencies": { "@babel/core": "^7.25.2", "@babel/eslint-parser": "^7.25.1", + "@csstools/stylelint-formatter-github": "^1.0.0", "ava": "^6.1.3", "cheerio": "^1.0.0-rc.12", "cross-spawn": "^7.0.3",