From a75068a6c4c68f65e2b2ef0262bd873ae1df6611 Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Wed, 9 Jul 2025 08:17:10 +0200 Subject: [PATCH] Update STYLELINT.md --- devGuide/STYLELINT.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/devGuide/STYLELINT.md b/devGuide/STYLELINT.md index 7d2a3a0eb..a5c89939d 100644 --- a/devGuide/STYLELINT.md +++ b/devGuide/STYLELINT.md @@ -6,11 +6,16 @@ Apply Stylelint to your project's CSS with the following steps: 1. **NPM Script** + - Add Stylelint & stylistic/stylelint-plugin + ```bash + npm install --save-dev stylelint stylelint-config-standard + npm install --save-dev @stylistic/stylelint-plugin + ``` - Add a script entry to your `package.json`: ```jsonc { "scripts": { - "lint:css": "stylelint \"stirling-pdf/src/main/**/*.css\"" + "lint:css": "stylelint \"stirling-pdf/src/main/**/*.css\" \"proprietary/src/main/resources/static/css/*.css\" --fix" } } ``` @@ -23,7 +28,7 @@ Apply Stylelint to your project's CSS with the following steps: - Lint all CSS files: ```bash - npx stylelint "stirling-pdf/src/main/**/*.css" + npx stylelint "stylelint \"stirling-pdf/src/main/**/*.css\" \"proprietary/src/main/resources/static/css/*.css\"" ``` - Lint a single file: ```bash @@ -31,7 +36,7 @@ Apply Stylelint to your project's CSS with the following steps: ``` - Apply automatic fixes: ```bash - npx stylelint "stirling-pdf/src/main/**/*.css" --fix + npx stylelint "stirling-pdf/src/main/**/*.css" "proprietary/src/main/resources/static/css/*.css" --fix ``` For full configuration options and rule customization, refer to the official documentation: [https://stylelint.io](https://stylelint.io)