stablekit.ts 0.6.2 → 0.6.4
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/dist/chunk-MCKGQKYU.js +15 -0
- package/dist/eslint.js +2 -0
- package/dist/index.js +2 -0
- package/dist/stylelint.cjs +5886 -66
- package/dist/stylelint.d.cts +17 -2
- package/dist/stylelint.d.ts +17 -2
- package/dist/stylelint.js +5884 -63
- package/package.json +1 -1
package/dist/stylelint.d.cts
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* top/right/bottom/left). These trigger reflow on every frame.
|
|
28
28
|
* Use transform (scaleY, translateY) or opacity instead.
|
|
29
29
|
*
|
|
30
|
-
* 6. Don't duplicate rulesets — two selectors with
|
|
30
|
+
* 6. Don't duplicate rulesets — two selectors with identical
|
|
31
31
|
* declarations (after sorting) should be consolidated under one
|
|
32
32
|
* shared class name. The warning includes the matched declarations
|
|
33
33
|
* so the developer can see why they were flagged.
|
|
@@ -54,5 +54,20 @@ declare function createStyleLint(options?: StyleLintOptions): {
|
|
|
54
54
|
plugins: unknown[];
|
|
55
55
|
rules: Record<string, unknown>;
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Audit a CSS file for design fragmentation.
|
|
59
|
+
*
|
|
60
|
+
* Groups all rules by pseudo-class / state selector (:hover, :focus,
|
|
61
|
+
* [data-state], [data-status], etc.) and prints the declaration patterns
|
|
62
|
+
* so you can see how many ways you're expressing the same concept.
|
|
63
|
+
*
|
|
64
|
+
* Usage:
|
|
65
|
+
* import { auditCSS } from "stablekit/stylelint";
|
|
66
|
+
* auditCSS("/path/to/index.css");
|
|
67
|
+
*
|
|
68
|
+
* Or from CLI:
|
|
69
|
+
* node -e 'require("stablekit.ts/stylelint").auditCSS("src/index.css")'
|
|
70
|
+
*/
|
|
71
|
+
declare function auditCSS(filePath: string): void;
|
|
57
72
|
|
|
58
|
-
export { type StyleLintOptions, createStyleLint };
|
|
73
|
+
export { type StyleLintOptions, auditCSS, createStyleLint };
|
package/dist/stylelint.d.ts
CHANGED
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* top/right/bottom/left). These trigger reflow on every frame.
|
|
28
28
|
* Use transform (scaleY, translateY) or opacity instead.
|
|
29
29
|
*
|
|
30
|
-
* 6. Don't duplicate rulesets — two selectors with
|
|
30
|
+
* 6. Don't duplicate rulesets — two selectors with identical
|
|
31
31
|
* declarations (after sorting) should be consolidated under one
|
|
32
32
|
* shared class name. The warning includes the matched declarations
|
|
33
33
|
* so the developer can see why they were flagged.
|
|
@@ -54,5 +54,20 @@ declare function createStyleLint(options?: StyleLintOptions): {
|
|
|
54
54
|
plugins: unknown[];
|
|
55
55
|
rules: Record<string, unknown>;
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* Audit a CSS file for design fragmentation.
|
|
59
|
+
*
|
|
60
|
+
* Groups all rules by pseudo-class / state selector (:hover, :focus,
|
|
61
|
+
* [data-state], [data-status], etc.) and prints the declaration patterns
|
|
62
|
+
* so you can see how many ways you're expressing the same concept.
|
|
63
|
+
*
|
|
64
|
+
* Usage:
|
|
65
|
+
* import { auditCSS } from "stablekit/stylelint";
|
|
66
|
+
* auditCSS("/path/to/index.css");
|
|
67
|
+
*
|
|
68
|
+
* Or from CLI:
|
|
69
|
+
* node -e 'require("stablekit.ts/stylelint").auditCSS("src/index.css")'
|
|
70
|
+
*/
|
|
71
|
+
declare function auditCSS(filePath: string): void;
|
|
57
72
|
|
|
58
|
-
export { type StyleLintOptions, createStyleLint };
|
|
73
|
+
export { type StyleLintOptions, auditCSS, createStyleLint };
|