stylelint-config-nick2bad4u 2.2.1 → 3.0.1

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,49 @@ 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
+ The display matches `eslint-config-nick2bad4u`: dim activity text, a dots spinner,
102
+ colored relative directories, and an emphasized green filename on the next line.
103
+ The success message is `Linting complete!`; detailed metrics are disabled by
104
+ default. The shared rule explicitly sets all current display options, using
105
+ `pathFormat: "relative"` for the ESLint config's legacy
106
+ `hideDirectoryNames: false` setting. Version 3.0.1 requires progress-plugin 1.0.2
107
+ or newer within major 1 to include the matching terminal colors and formatting.
108
+
109
+ Counts cover observed file-processing events across the process; cached files
110
+ and files that fail to parse before rules execute may not appear. The summary
111
+ runs when the process exits, including in applications that call Stylelint
112
+ more than once.
113
+
114
+ Disable progress through a local rule override:
115
+
116
+ ```js
117
+ export default {
118
+ extends: ["stylelint-config-nick2bad4u"],
119
+ rules: {
120
+ "file-progress/activate": null,
121
+ },
122
+ };
123
+ ```
124
+
125
+ To keep only the summary, set `"file-progress/activate"` to
126
+ `[true, { mode: "summary-only" }]`. See the
127
+ [plugin options and colored demonstrations](https://nick2bad4u.github.io/stylelint-plugin-file-progress/)
128
+ for the other display modes and presets.
85
129
 
86
130
  ## Development checks
87
131
 
@@ -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",
@@ -727,6 +728,29 @@ const config = {
727
728
  "defensive-css/require-scrollbar-gutter": null,
728
729
  "defensive-css/require-system-font-fallback": null,
729
730
  "display-notation": "short",
731
+ // Match the effective progress settings from eslint-config-nick2bad4u.
732
+ "file-progress/activate": [
733
+ true,
734
+ {
735
+ detailedSuccess: false,
736
+ failureMark: "✖",
737
+ fileNameOnNewLine: true,
738
+ hide: false,
739
+ hideFileName: false,
740
+ hidePrefix: false,
741
+ minFilesBeforeShow: 0,
742
+ mode: "file",
743
+ outputStream: "stderr",
744
+ pathFormat: "relative",
745
+ prefixMark: "•",
746
+ showSummaryWhenHidden: false,
747
+ spinnerStyle: "dots",
748
+ successMark: "✔",
749
+ successMessage: "Linting complete!",
750
+ throttleMs: 0,
751
+ ttyOnly: false,
752
+ },
753
+ ],
730
754
  "font-family-name-quotes": "always-where-recommended",
731
755
  "font-family-no-duplicate-names": true,
732
756
  "font-family-no-missing-generic-family-keyword": true,
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.1",
4
+ "version": "3.0.1",
5
5
  "private": false,
6
6
  "description": "Shared Stylelint config for Nick2bad4u projects.",
7
7
  "keywords": [
@@ -120,6 +120,7 @@
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-file-progress": "^1.0.2",
123
124
  "stylelint-plugin-font": "^1.1.7",
124
125
  "stylelint-plugin-grid": "^1.0.6",
125
126
  "stylelint-plugin-use-baseline": "^1.4.5",
@@ -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": {