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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # stylelint-config-nick2bad4u
2
2
 
3
- [![NPM license.](https://flat.badgen.net/npm/license/eslint-plugin-typefest?color=purple)](https://github.com/Nick2bad4u/eslint-plugin-typefest/blob/main/LICENSE) [![NPM total downloads.](https://flat.badgen.net/npm/dt/eslint-plugin-typefest?color=pink)](https://www.npmjs.com/package/eslint-plugin-typefest) [![Latest GitHub release.](https://flat.badgen.net/github/release/Nick2bad4u/eslint-plugin-typefest?color=cyan)](https://github.com/Nick2bad4u/eslint-plugin-typefest/releases) [![GitHub stars.](https://flat.badgen.net/github/stars/Nick2bad4u/eslint-plugin-typefest?color=yellow)](https://github.com/Nick2bad4u/eslint-plugin-typefest/stargazers) [![GitHub forks.](https://flat.badgen.net/github/forks/Nick2bad4u/eslint-plugin-typefest?color=green)](https://github.com/Nick2bad4u/eslint-plugin-typefest/forks) [![GitHub open issues.](https://flat.badgen.net/github/open-issues/Nick2bad4u/eslint-plugin-typefest?color=red)](https://github.com/Nick2bad4u/eslint-plugin-typefest/issues) [![Codecov.](https://flat.badgen.net/codecov/github/Nick2bad4u/eslint-plugin-typefest?color=blue)](https://codecov.io/gh/Nick2bad4u/eslint-plugin-typefest)
3
+ [![NPM license.](https://flat.badgen.net/npm/license/stylelint-config-nick2bad4u?color=purple)](https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/blob/main/LICENSE) [![NPM total downloads.](https://flat.badgen.net/npm/dt/stylelint-config-nick2bad4u?color=pink)](https://www.npmjs.com/package/stylelint-config-nick2bad4u) [![Latest GitHub release.](https://flat.badgen.net/github/release/Nick2bad4u/stylelint-config-nick2bad4u?color=cyan)](https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/releases) [![GitHub stars.](https://flat.badgen.net/github/stars/Nick2bad4u/stylelint-config-nick2bad4u?color=yellow)](https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/stargazers) [![GitHub forks.](https://flat.badgen.net/github/forks/Nick2bad4u/stylelint-config-nick2bad4u?color=green)](https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/forks) [![GitHub open issues.](https://flat.badgen.net/github/open-issues/Nick2bad4u/stylelint-config-nick2bad4u?color=red)](https://github.com/Nick2bad4u/stylelint-config-nick2bad4u/issues) [![Codecov.](https://flat.badgen.net/codecov/github/Nick2bad4u/stylelint-config-nick2bad4u?color=blue)](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.9.1`
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
 
@@ -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": "2.2.0",
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-font": "^1.1.6",
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.9.1"
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.0.0"
179
+ "node": ">=22.12.0"
179
180
  },
180
181
  "devEngines": {
181
182
  "runtime": {