@bridge-ds/stylelint-plugin 0.2.9 → 0.2.11

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1092,7 +1092,8 @@ function defineConfig(input) {
1092
1092
  minReasonLength: g.override.minReasonLength ?? DEFAULT_OVERRIDE.minReasonLength
1093
1093
  }
1094
1094
  } : {},
1095
- ...g.rights ? { rights: normalizeRights(g.rights) } : {}
1095
+ ...g.rights ? { rights: normalizeRights(g.rights) } : {},
1096
+ ...g.soloOwnerCanApproveBoth === true ? { soloOwnerCanApproveBoth: true } : {}
1096
1097
  },
1097
1098
  products: input.products?.length ? input.products.map((p) => ({ ...p })) : DEFAULT_PRODUCTS.map((p) => ({ ...p })),
1098
1099
  changes: input.changes === "direct" ? "direct" : DEFAULT_CHANGES_MODE,
@@ -1216,6 +1217,7 @@ function loadConfig(source) {
1216
1217
  }
1217
1218
  }
1218
1219
  problems.push(...rightsProblems(gov.rights));
1220
+ if (gov.soloOwnerCanApproveBoth !== void 0 && typeof gov.soloOwnerCanApproveBoth !== "boolean") problems.push('"governance.soloOwnerCanApproveBoth" must be true or false');
1219
1221
  }
1220
1222
  }
1221
1223
  problems.push(...visualImpactProblems(d.visualImpact));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bridge-ds/stylelint-plugin",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
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.11.0"
59
+ "@bridge-ds/core": "^0.13.0"
60
60
  }
61
61
  }