From 5aec410be552b5f5d8c46e736edd3a0e467ef1ef Mon Sep 17 00:00:00 2001 From: Ludy87 Date: Tue, 8 Jul 2025 12:29:26 +0200 Subject: [PATCH] Create STYLELINT.md --- devGuide/STYLELINT.md | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 devGuide/STYLELINT.md diff --git a/devGuide/STYLELINT.md b/devGuide/STYLELINT.md new file mode 100644 index 000000000..7d2a3a0eb --- /dev/null +++ b/devGuide/STYLELINT.md @@ -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) +