rhythmguard 3.8.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/LICENSE +21 -0
- package/README.md +23 -0
- package/bin.js +7 -0
- package/package.json +46 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# rhythmguard
|
|
2
|
+
|
|
3
|
+
```bash
|
|
4
|
+
npx rhythmguard
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
No install, no config. It detects your stack and token files, infers your spacing scale from your own tokens, audits the current directory, and prints the exact `.stylelintrc.json` to paste. Then:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx rhythmguard audit ./src --format markdown
|
|
11
|
+
npx rhythmguard audit ./src --write-baseline
|
|
12
|
+
npx rhythmguard audit ./src --since-baseline --fail-on-new-drift
|
|
13
|
+
npx rhythmguard init
|
|
14
|
+
npx rhythmguard doctor
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
This package is the command name only. It depends on [stylelint-plugin-rhythmguard](https://www.npmjs.com/package/stylelint-plugin-rhythmguard) and runs its CLI; the Stylelint rules, the ESLint companion and the audit all live there. Once the plugin is a dev dependency, `npx rhythmguard` resolves to the same command without this package.
|
|
18
|
+
|
|
19
|
+
Full reference: [docs/AUDIT.md](https://github.com/PetriLahdelma/stylelint-plugin-rhythmguard/blob/main/docs/AUDIT.md).
|
|
20
|
+
|
|
21
|
+
## License
|
|
22
|
+
|
|
23
|
+
MIT.
|
package/bin.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
// `npx rhythmguard` resolves the package named rhythmguard. This is that package:
|
|
5
|
+
// one dependency and one line, so the command in the README works in a project
|
|
6
|
+
// that has installed nothing. The CLI itself lives in stylelint-plugin-rhythmguard.
|
|
7
|
+
require('stylelint-plugin-rhythmguard/cli').main();
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rhythmguard",
|
|
3
|
+
"version": "3.8.0",
|
|
4
|
+
"description": "The rhythmguard command: zero-config spacing-scale audit for CSS, SCSS and Tailwind. `npx rhythmguard` runs the CLI of stylelint-plugin-rhythmguard.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Petri Lahdelma",
|
|
7
|
+
"bin": {
|
|
8
|
+
"rhythmguard": "bin.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"bin.js",
|
|
12
|
+
"README.md",
|
|
13
|
+
"LICENSE"
|
|
14
|
+
],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"stylelint",
|
|
17
|
+
"css",
|
|
18
|
+
"scss",
|
|
19
|
+
"tailwindcss",
|
|
20
|
+
"design-system",
|
|
21
|
+
"design-tokens",
|
|
22
|
+
"spacing-scale",
|
|
23
|
+
"spacing",
|
|
24
|
+
"audit",
|
|
25
|
+
"cli"
|
|
26
|
+
],
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"stylelint-plugin-rhythmguard": "^3.8.0"
|
|
29
|
+
},
|
|
30
|
+
"engines": {
|
|
31
|
+
"node": ">=20.19.0"
|
|
32
|
+
},
|
|
33
|
+
"repository": {
|
|
34
|
+
"type": "git",
|
|
35
|
+
"url": "git+https://github.com/PetriLahdelma/stylelint-plugin-rhythmguard.git",
|
|
36
|
+
"directory": "packages/rhythmguard"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/petrilahdelma/stylelint-plugin-rhythmguard#readme",
|
|
39
|
+
"bugs": {
|
|
40
|
+
"url": "https://github.com/petrilahdelma/stylelint-plugin-rhythmguard/issues"
|
|
41
|
+
},
|
|
42
|
+
"publishConfig": {
|
|
43
|
+
"access": "public",
|
|
44
|
+
"provenance": true
|
|
45
|
+
}
|
|
46
|
+
}
|