@vyriy/stylelint-config 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -5,6 +5,7 @@ Shared Stylelint config for Vyriy projects.
|
|
|
5
5
|
## Purpose
|
|
6
6
|
|
|
7
7
|
This package provides the base Stylelint setup used in Vyriy repositories for SCSS-friendly CSS linting and conventional property ordering.
|
|
8
|
+
It keeps CSS and SCSS linting consistent across applications, libraries, examples, and internal packages without copying the same Stylelint rules into every project.
|
|
8
9
|
|
|
9
10
|
## Install
|
|
10
11
|
|
|
@@ -48,6 +49,13 @@ export default {
|
|
|
48
49
|
};
|
|
49
50
|
```
|
|
50
51
|
|
|
52
|
+
Run Stylelint against CSS or SCSS files:
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
npx stylelint styles.scss
|
|
56
|
+
npx stylelint "src/**/*.{css,scss}"
|
|
57
|
+
```
|
|
58
|
+
|
|
51
59
|
## Ignore Files
|
|
52
60
|
|
|
53
61
|
The shared config ignores common generated and dependency directories:
|
|
@@ -64,3 +72,7 @@ Project-specific generated output, such as `coverage/**` or framework-specific o
|
|
|
64
72
|
- `customSyntax` is `postcss-scss`.
|
|
65
73
|
- `ignoreFiles` contains common generated and dependency directories.
|
|
66
74
|
- selected rules are disabled where the shared Vyriy style stays intentionally flexible.
|
|
75
|
+
|
|
76
|
+
## Full Example
|
|
77
|
+
|
|
78
|
+
See the article with a complete SCSS linting walkthrough: <https://vyriy.dev/examples/vyriy-stylelint-config/>.
|