Create STYLELINT.md

This commit is contained in:
Ludy87 2025-07-08 12:29:26 +02:00
parent ab56b721bc
commit 5aec410be5
No known key found for this signature in database
GPG Key ID: 92696155E0220F94

38
devGuide/STYLELINT.md Normal file
View File

@ -0,0 +1,38 @@
# STYLELINT.md
## Usage
Apply Stylelint to your project's CSS with the following steps:
1. **NPM Script**
- Add a script entry to your `package.json`:
```jsonc
{
"scripts": {
"lint:css": "stylelint \"stirling-pdf/src/main/**/*.css\""
}
}
```
- Run the linter:
```bash
npm run lint:css
```
2. **CLI Usage**
- Lint all CSS files:
```bash
npx stylelint "stirling-pdf/src/main/**/*.css"
```
- Lint a single file:
```bash
npx stylelint path/to/file.css
```
- Apply automatic fixes:
```bash
npx stylelint "stirling-pdf/src/main/**/*.css" --fix
```
For full configuration options and rule customization, refer to the official documentation: [https://stylelint.io](https://stylelint.io)