nursery/noJsonUnsafeValues
nursery 路 since 2.5.14
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"nursery": {
"noJsonUnsafeValues": "error"
}
}
}
}Disallow unsafe JSON values that may cause interoperability issues.
{
"invalid1": 2e308
}{
"invalid2": -2e308
}{
"invalid3": "\ud83d"
}[
123,
1234,
12345, // Regular numbers within safe range
"馃敟", // Properly formed Unicode character (fire emoji)
"\ud83d\udd25", // Same character with proper surrogate pair
0.00000,
0e0000000,
0.00000e0000 // Zero represented in different valid ways
]Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noJsonUnsafeValues
nursery 路 since 2.5.14
{
"linter": {
"rules": {
"nursery": {
"noJsonUnsafeValues": "error"
}
}
}
}Checks that the initial-value of an @property rule follows the value format declared by its syntax.
Require <li> elements with an HTML element parent to be children of <ul>, <ol>, or <menu>.
Disallow invalid named areas in CSS grid templates.
Disallow shorthand assign when variable appears on both sides.