nursery/noNonScalableViewport
nursery · since 2.5.7
No autofix
biome.json
{
"linter": {
"rules": {
"nursery": {
"noNonScalableViewport": "error"
}
}
}
}Disallow disabling zoom with user-scalable=no in the <meta name="viewport"> element.
<meta name="viewport" content="width=device-width, user-scalable=no" /><meta name={"viewport"} content={"user-scalable=no"} /><>
<meta name="viewport" content="width=device-width, user-scalable=yes" />
<meta name="viewport" content="width=device-width" />
<Meta name="viewport" content="user-scalable=no" />
</>Examples from the Biome documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
ESLint does not have this rule.
Oxlint does not have this rule.
nursery/noNonScalableViewport
nursery · since 2.5.7
{
"linter": {
"rules": {
"nursery": {
"noNonScalableViewport": "error"
}
}
}
}Disallows defining React components inside other components.
Disallow usage of element handles (page.$() and page.$$()).
Disallow Sass variables and function calls in custom property values without #{} interpolation.