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)