@primer/stylelint-config 13.0.0-rc.b40b184 → 13.0.0-rc.ba0e7d1
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.cjs +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +2 -2
- package/plugins/lib/primitives.js +5 -2
package/dist/index.cjs
CHANGED
|
@@ -738,8 +738,11 @@ async function primitivesVariables(type) {
|
|
|
738
738
|
for (const key of Object.keys(data)) {
|
|
739
739
|
const size = data[key];
|
|
740
740
|
const values = size['value'];
|
|
741
|
-
|
|
742
|
-
|
|
741
|
+
const intValue = parseInt(size['original']['value']);
|
|
742
|
+
if (![2, 6].includes(intValue)) {
|
|
743
|
+
values.push(`${intValue + 1}px`);
|
|
744
|
+
values.push(`${intValue - 1}px`);
|
|
745
|
+
}
|
|
743
746
|
|
|
744
747
|
variables.push({
|
|
745
748
|
name: `--${size['name']}`,
|
package/dist/index.mjs
CHANGED
|
@@ -735,8 +735,11 @@ async function primitivesVariables(type) {
|
|
|
735
735
|
for (const key of Object.keys(data)) {
|
|
736
736
|
const size = data[key];
|
|
737
737
|
const values = size['value'];
|
|
738
|
-
|
|
739
|
-
|
|
738
|
+
const intValue = parseInt(size['original']['value']);
|
|
739
|
+
if (![2, 6].includes(intValue)) {
|
|
740
|
+
values.push(`${intValue + 1}px`);
|
|
741
|
+
values.push(`${intValue - 1}px`);
|
|
742
|
+
}
|
|
740
743
|
|
|
741
744
|
variables.push({
|
|
742
745
|
name: `--${size['name']}`,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/stylelint-config",
|
|
3
|
-
"version": "13.0.0-rc.
|
|
3
|
+
"version": "13.0.0-rc.ba0e7d1",
|
|
4
4
|
"description": "Sharable stylelint config used by GitHub's CSS",
|
|
5
5
|
"author": "GitHub, Inc.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@github/browserslist-config": "^1.0.0",
|
|
47
47
|
"@primer/css": "^21.0.8",
|
|
48
|
-
"@primer/primitives": "^
|
|
48
|
+
"@primer/primitives": "^8.2.0",
|
|
49
49
|
"anymatch": "^3.1.1",
|
|
50
50
|
"postcss-scss": "^4.0.2",
|
|
51
51
|
"postcss-styled-syntax": "^0.6.4",
|
|
@@ -19,8 +19,11 @@ export async function primitivesVariables(type) {
|
|
|
19
19
|
for (const key of Object.keys(data)) {
|
|
20
20
|
const size = data[key]
|
|
21
21
|
const values = size['value']
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
const intValue = parseInt(size['original']['value'])
|
|
23
|
+
if (![2, 6].includes(intValue)) {
|
|
24
|
+
values.push(`${intValue + 1}px`)
|
|
25
|
+
values.push(`${intValue - 1}px`)
|
|
26
|
+
}
|
|
24
27
|
|
|
25
28
|
variables.push({
|
|
26
29
|
name: `--${size['name']}`,
|