@bridge-ds/stylelint-plugin 0.2.13 → 0.2.15
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/index.js +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1073,7 +1073,8 @@ function defineConfig(input) {
|
|
|
1073
1073
|
styleSuffix: input.components.styleSuffix ?? ".module.css",
|
|
1074
1074
|
reference: input.components.reference,
|
|
1075
1075
|
index: input.components.index,
|
|
1076
|
-
specs: input.components.specs
|
|
1076
|
+
specs: input.components.specs,
|
|
1077
|
+
...input.components.styles ? { styles: input.components.styles.map(trimSlashes) } : {}
|
|
1077
1078
|
} : void 0,
|
|
1078
1079
|
docs: { ...input.docs },
|
|
1079
1080
|
changesets: pkg ? { dir: trimSlashes(input.changesets?.dir ?? ".changeset"), package: pkg } : void 0,
|
|
@@ -1197,6 +1198,7 @@ function loadConfig(source) {
|
|
|
1197
1198
|
problems.push('"contrast" must be { "path", "modes"? }');
|
|
1198
1199
|
const comps = d.components;
|
|
1199
1200
|
if (comps !== void 0 && (!isObj(comps) || !isStr(comps.dir))) problems.push('"components.dir" must be a non-empty string');
|
|
1201
|
+
if (isObj(comps) && comps.styles !== void 0 && !isStrList(comps.styles)) problems.push('"components.styles" must be a list of globs');
|
|
1200
1202
|
const cs = d.changeset;
|
|
1201
1203
|
if (cs !== void 0 && (!isObj(cs) || !isStr(cs.package))) problems.push('"changeset.package" must be a non-empty string');
|
|
1202
1204
|
const css = d.changesets;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bridge-ds/stylelint-plugin",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Stylelint rule bridge/use-tokens: no raw colors, lengths, radii, shadows, durations or z-index in product CSS where a design token exists. Autofixes exact matches. Reads the tokens through @bridge-ds/core and bridge.config.json.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,6 +56,6 @@
|
|
|
56
56
|
"stylelint": "16.26.1"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@bridge-ds/core": "^0.
|
|
59
|
+
"@bridge-ds/core": "^0.17.0"
|
|
60
60
|
}
|
|
61
61
|
}
|