correctness/useImageSize
correctness · since 2.1.4
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"useImageSize": "error"
}
}
}
}<img src="/image.png"/><img src="/static/images/portrait-01.webp"/><img src="/image.png" width="200"/><img width="200" height="600" src="/static/images/portrait-01.webp" /><img width="100" height="100" src="https://example.com/image.png" />Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/useImageSize
correctness · since 2.1.4
{
"linter": {
"rules": {
"correctness": {
"useImageSize": "error"
}
}
}
}Require a name for every explicit GraphQL operation definition.
Disallow an anonymous operation in a document with other operations.
Require a generic fallback in font-family lists.
Require the cpu field in package.json to be a valid list of processor types.
Require a reason when using the @deprecated directive.
Enforce that the engines field in package.json is valid.