@moderneinc/biome-plugins 6.0.0-next.9bb44a → 6.0.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/package.json +2 -2
- package/plugins/no-css-variables.grit +1 -1
- package/plugins/no-hardcoded-border-radius.grit +1 -1
- package/plugins/no-hardcoded-colors.grit +1 -1
- package/plugins/no-hardcoded-font-sizes.grit +1 -1
- package/plugins/no-hardcoded-font-weights.grit +1 -1
- package/plugins/no-hardcoded-shadows.grit +1 -1
- package/plugins/no-hardcoded-spacing.grit +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moderneinc/biome-plugins",
|
|
3
|
-
"version": "6.0.0
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Biome GritQL lint plugins for Moderne design token enforcement",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -18,6 +18,6 @@
|
|
|
18
18
|
"license": "UNLICENSED",
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "git+https://github.com/moderneinc/
|
|
21
|
+
"url": "git+https://github.com/moderneinc/design-system.git"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
$val <: r"['\x22].*var\(--.*['\x22]",
|
|
3
3
|
register_diagnostic(
|
|
4
4
|
span = $val,
|
|
5
|
-
message = "CSS variable usage in styled component. Import tokens directly from @moderneinc/
|
|
5
|
+
message = "CSS variable usage in styled component. Import tokens directly from @moderneinc/design-system-tokens instead of using var(--...).",
|
|
6
6
|
severity = "error"
|
|
7
7
|
)
|
|
8
8
|
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
$val <: r"^[1-9][0-9]*$",
|
|
8
8
|
register_diagnostic(
|
|
9
9
|
span = $val,
|
|
10
|
-
message = "Hardcoded border radius. Use borderRadius.* tokens from @moderneinc/
|
|
10
|
+
message = "Hardcoded border radius. Use borderRadius.* tokens from @moderneinc/design-system-tokens (xXS=2, xS=4, s=8, m=12, l=20, xL=30, full=999).",
|
|
11
11
|
severity = "error"
|
|
12
12
|
)
|
|
13
13
|
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
$val <: r"['\x22]#[0-9a-fA-F]{3,8}['\x22]",
|
|
7
7
|
register_diagnostic(
|
|
8
8
|
span = $val,
|
|
9
|
-
message = "Hardcoded hex color. Use semanticColors.* or colors.* from @moderneinc/
|
|
9
|
+
message = "Hardcoded hex color. Use semanticColors.* or colors.* from @moderneinc/design-system-tokens instead.",
|
|
10
10
|
severity = "error"
|
|
11
11
|
)
|
|
12
12
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
$val <: r"^\d+$",
|
|
3
3
|
register_diagnostic(
|
|
4
4
|
span = $val,
|
|
5
|
-
message = "Hardcoded font size. Use theme.typography.pxToRem() or typography.fontSize.* from @moderneinc/
|
|
5
|
+
message = "Hardcoded font size. Use theme.typography.pxToRem() or typography.fontSize.* from @moderneinc/design-system-tokens instead.",
|
|
6
6
|
severity = "error"
|
|
7
7
|
)
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
$val <: or { `300`, `400`, `500`, `600`, `700`, `800`, `900` },
|
|
3
3
|
register_diagnostic(
|
|
4
4
|
span = $val,
|
|
5
|
-
message = "Hardcoded font weight. Use typography.fontWeight.* from @moderneinc/
|
|
5
|
+
message = "Hardcoded font weight. Use typography.fontWeight.* from @moderneinc/design-system-tokens (light=300, regular=400, medium=500, semibold=600, bold=700).",
|
|
6
6
|
severity = "error"
|
|
7
7
|
)
|
|
8
8
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
$val <: r"'[^']*\d+px[^']*'",
|
|
3
3
|
register_diagnostic(
|
|
4
4
|
span = $val,
|
|
5
|
-
message = "Hardcoded box shadow. Use shadows.* from @moderneinc/
|
|
5
|
+
message = "Hardcoded box shadow. Use shadows.* from @moderneinc/design-system-tokens (e.g., shadows.neutralSmall, shadows.dropdown).",
|
|
6
6
|
severity = "error"
|
|
7
7
|
)
|
|
8
8
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
$val <: r"^[2-9]$|^[1-9][0-9]+$",
|
|
11
11
|
register_diagnostic(
|
|
12
12
|
span = $val,
|
|
13
|
-
message = "Hardcoded spacing value. Use theme.spacing() or spacing.* tokens from @moderneinc/
|
|
13
|
+
message = "Hardcoded spacing value. Use theme.spacing() or spacing.* tokens from @moderneinc/design-system-tokens instead.",
|
|
14
14
|
severity = "error"
|
|
15
15
|
)
|
|
16
16
|
}
|