mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-08 17:51:20 +02:00
Update STYLELINT.md
This commit is contained in:
parent
4407d75c5c
commit
a75068a6c4
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user