stylelint-config-nick2bad4u 2.2.0 → 3.0.0
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 +38 -2
- package/dist/stylelint.config.js +1 -0
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# stylelint-config-nick2bad4u
|
|
2
2
|
|
|
3
|
-
[](https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/blob/main/LICENSE) [](https://www.npmjs.com/package/stylelint-config-nick2bad4u) [](https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/releases) [](https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/stargazers) [](https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/forks) [](https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/issues) [](https://codecov.io/gh/Nick2bad4u/stylelint-config-nick2bad4u)
|
|
4
4
|
|
|
5
5
|
Shared Stylelint config for Nick2bad4u projects.
|
|
6
6
|
|
|
@@ -51,6 +51,8 @@ export default {
|
|
|
51
51
|
|
|
52
52
|
- Standard modern Stylelint presets
|
|
53
53
|
- SCSS support
|
|
54
|
+
- File progress and a process-shutdown summary via
|
|
55
|
+
`stylelint-plugin-file-progress/configs/recommended`
|
|
54
56
|
- Tailwind compatibility
|
|
55
57
|
- Docusaurus CSS support
|
|
56
58
|
- Accessibility, logical CSS, and performance plugins
|
|
@@ -81,7 +83,41 @@ The shared config includes overrides and parsers for:
|
|
|
81
83
|
- Package entrypoint: `dist/stylelint.config.js`
|
|
82
84
|
- Build command: `npm run build`
|
|
83
85
|
- Export style: ESM only
|
|
84
|
-
- Peer dependency: `stylelint@^17.
|
|
86
|
+
- Peer dependency: `stylelint@^17.14.0`
|
|
87
|
+
- Node.js: `>=22.12.0`
|
|
88
|
+
|
|
89
|
+
## File progress
|
|
90
|
+
|
|
91
|
+
Version 3 enables file progress by default and requires Stylelint 17.14.0 or
|
|
92
|
+
newer within major 17, plus Node.js 22.12.0 or newer. Upgrade Stylelint and Node.js
|
|
93
|
+
when moving from version 2. Some included CommonJS plugins load Stylelint's ESM
|
|
94
|
+
entrypoint, which requires Node.js 22.12.0 in the supported Node 22 line.
|
|
95
|
+
|
|
96
|
+
Progress uses `stderr`, leaving `stdout` available to API callers and fixed CSS.
|
|
97
|
+
The Stylelint CLI also writes diagnostics to `stderr`. For a separate JSON report,
|
|
98
|
+
use `stylelint "**/*.css" --formatter json --output-file stylelint-report.json`;
|
|
99
|
+
read the report file instead of combining progress and diagnostics into one pipe.
|
|
100
|
+
Progress also appears in CI and other non-interactive terminals.
|
|
101
|
+
Counts cover observed file-processing events across the process; cached files
|
|
102
|
+
and files that fail to parse before rules execute may not appear. The summary
|
|
103
|
+
runs when the process exits, including in applications that call Stylelint
|
|
104
|
+
more than once.
|
|
105
|
+
|
|
106
|
+
Disable progress through a local rule override:
|
|
107
|
+
|
|
108
|
+
```js
|
|
109
|
+
export default {
|
|
110
|
+
extends: ["stylelint-config-nick2bad4u"],
|
|
111
|
+
rules: {
|
|
112
|
+
"file-progress/activate": null,
|
|
113
|
+
},
|
|
114
|
+
};
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
To keep only the summary, set `"file-progress/activate"` to
|
|
118
|
+
`[true, { mode: "summary-only" }]`. See the
|
|
119
|
+
[plugin options and colored demonstrations](https://nick2bad4u.github.io/stylelint-plugin-file-progress/)
|
|
120
|
+
for the other display modes and presets.
|
|
85
121
|
|
|
86
122
|
## Development checks
|
|
87
123
|
|
package/dist/stylelint.config.js
CHANGED
|
@@ -74,6 +74,7 @@ const config = {
|
|
|
74
74
|
"stylelint-config-standard",
|
|
75
75
|
"stylelint-config-recess-order",
|
|
76
76
|
"stylelint-config-standard-scss",
|
|
77
|
+
"stylelint-plugin-file-progress/configs/recommended",
|
|
77
78
|
"stylelint-plugin-docusaurus/configs/docusaurus-all",
|
|
78
79
|
"stylelint-plugin-font/configs/font-all",
|
|
79
80
|
"stylelint-plugin-grid/configs/grid-all",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://www.schemastore.org/package.json",
|
|
3
3
|
"name": "stylelint-config-nick2bad4u",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Shared Stylelint config for Nick2bad4u projects.",
|
|
7
7
|
"keywords": [
|
|
@@ -120,7 +120,8 @@
|
|
|
120
120
|
"stylelint-plugin-css-performance-budget": "^2.0.7",
|
|
121
121
|
"stylelint-plugin-defensive-css": "^2.9.6",
|
|
122
122
|
"stylelint-plugin-docusaurus": "^2.0.5",
|
|
123
|
-
"stylelint-plugin-
|
|
123
|
+
"stylelint-plugin-file-progress": "^1.0.0",
|
|
124
|
+
"stylelint-plugin-font": "^1.1.7",
|
|
124
125
|
"stylelint-plugin-grid": "^1.0.6",
|
|
125
126
|
"stylelint-plugin-use-baseline": "^1.4.5",
|
|
126
127
|
"stylelint-prettier": "^5.0.3",
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
"yamllint-config-nick2bad4u": "^1.1.1"
|
|
167
168
|
},
|
|
168
169
|
"peerDependencies": {
|
|
169
|
-
"stylelint": "^17.
|
|
170
|
+
"stylelint": "^17.14.0"
|
|
170
171
|
},
|
|
171
172
|
"peerDependenciesMeta": {
|
|
172
173
|
"stylelint": {
|
|
@@ -175,7 +176,7 @@
|
|
|
175
176
|
},
|
|
176
177
|
"packageManager": "npm@12.0.2",
|
|
177
178
|
"engines": {
|
|
178
|
-
"node": ">=22.
|
|
179
|
+
"node": ">=22.12.0"
|
|
179
180
|
},
|
|
180
181
|
"devEngines": {
|
|
181
182
|
"runtime": {
|