Update STYLELINT.md

This commit is contained in:
Ludy87 2025-07-09 08:17:10 +02:00
parent 4407d75c5c
commit a75068a6c4
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

View File

@ -6,11 +6,16 @@ Apply Stylelint to your project's CSS with the following steps:
1. **NPM Script** 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`: - Add a script entry to your `package.json`:
```jsonc ```jsonc
{ {
"scripts": { "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: - Lint all CSS files:
```bash ```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: - Lint a single file:
```bash ```bash
@ -31,7 +36,7 @@ Apply Stylelint to your project's CSS with the following steps:
``` ```
- Apply automatic fixes: - Apply automatic fixes:
```bash ```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) For full configuration options and rule customization, refer to the official documentation: [https://stylelint.io](https://stylelint.io)