stylelint-plugin-rhythmguard 3.16.1 → 3.17.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/CHANGELOG.md +10 -0
- package/CONTRIBUTING.md +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
- package/src/core/token-packages.json +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,16 @@ The format follows Keep a Changelog principles and semantic versioning.
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [3.17.0] - 2026-11-04
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- `scale: "auto"` reads WordPress's spacing scale when `@wordpress/base-styles` or `@wordpress/theme` is installed: the Sass `$grid-unit-05` to `$grid-unit-80` (4 to 64px) from `_variables.scss`, and `--wpds-dimension-gap-*` and `--wpds-dimension-padding-*` (4 to 40px) from `prebuilt/css/design-tokens.css`. The `--wpds-dimension-size-*` and `surface-*` tokens are sizes, not spacing, and are left out. Gutenberg's benchmark row is measured against both packages, as a Gutenberg maintainer pointed out in WordPress/gutenberg#82502: 34 off-scale values on `packages/components/src`, against 35 on the fallback, because 20px is a WordPress padding step.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- `npm run test:pack-smoke`, which CI and the release run before publishing, now packs `rhythmguard` and `eslint-plugin-rhythmguard` as well as the plugin, and runs on each tarball the same check the post-publish smoke runs from npm (`scripts/ci/smoke-checks.mjs`). Before this it packed only the plugin, so the 3.16.0 CLI failure could reach npm; with the CLI's `stylelint` dependency removed, the pack smoke now fails at `rhythmguard audit`.
|
|
18
|
+
|
|
9
19
|
## [3.16.1] - 2026-11-01
|
|
10
20
|
|
|
11
21
|
### Fixed
|
package/CONTRIBUTING.md
CHANGED
|
@@ -66,7 +66,7 @@ Optional, depending on what you touched:
|
|
|
66
66
|
|
|
67
67
|
```bash
|
|
68
68
|
npm run test:compat-floor # Stylelint 16.0.0, the oldest supported
|
|
69
|
-
npm run test:pack-smoke # pack
|
|
69
|
+
npm run test:pack-smoke # pack all three packages and smoke-test each in a temp project
|
|
70
70
|
npm run scales:validate # community scale JSON
|
|
71
71
|
npm run bench:quiet -- --check # findings on the benchmark repos must match snapshots
|
|
72
72
|
npm run build:agents # after editing the block in docs/FOR_AGENTS.md
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Nobody chose 13px. Rhythmguard catches off-scale spacing in CSS and Tailwind class strings, tells you the nearest steps on your scale, and snaps to them or to your tokens when you ask.
|
|
8
8
|
|
|
9
9
|
[](https://github.com/petrilahdelma/stylelint-plugin-rhythmguard/actions/workflows/ci.yml)
|
|
10
|
-
[](https://www.npmjs.com/package/stylelint-plugin-rhythmguard)
|
|
11
11
|
[](https://www.npmjs.com/package/stylelint-plugin-rhythmguard)
|
|
12
12
|
[](./LICENSE)
|
|
13
13
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stylelint-plugin-rhythmguard",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.17.0",
|
|
4
4
|
"description": "Nobody chose 13px. Catches off-scale spacing in CSS and Tailwind class strings and snaps it to your scale or tokens. Stylelint rules, an ESLint companion, and an audit CLI.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"rhythmguard": "src/cli/index.js"
|
|
@@ -93,6 +93,22 @@
|
|
|
93
93
|
"dist/units/units.custom-properties.css"
|
|
94
94
|
],
|
|
95
95
|
"note": "--spacing-xs..2xl in px; Protocol's Sass $spacing-* come from the same package"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "@wordpress/base-styles",
|
|
99
|
+
"files": [
|
|
100
|
+
"_variables.scss"
|
|
101
|
+
],
|
|
102
|
+
"tokenPattern": "^\\$grid-unit-\\d+$",
|
|
103
|
+
"note": "WordPress names its spacing scale $grid-unit-05..80 (4 to 64px, multiples of $grid-unit)"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "@wordpress/theme",
|
|
107
|
+
"files": [
|
|
108
|
+
"prebuilt/css/design-tokens.css"
|
|
109
|
+
],
|
|
110
|
+
"tokenPattern": "^--wpds-dimension-(?:gap|padding)-",
|
|
111
|
+
"note": "--wpds-dimension-gap-* and --wpds-dimension-padding-* in px; size and surface tokens are not spacing"
|
|
96
112
|
}
|
|
97
113
|
]
|
|
98
114
|
}
|