style/noHexColors
style · since 2.3.14
No autofix
biome.json
{
"linter": {
"rules": {
"style": {
"noHexColors": "error"
}
}
}
}a { color: #000; }a { color: #fff1aa; }a { color: #123456aa; }a { color: black; }a { color: rgb(0, 0, 0); }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.
style/noHexColors
style · since 2.3.14
{
"linter": {
"rules": {
"style": {
"noHexColors": "error"
}
}
}
}Limit how complex selectors can be, and disallow chosen parts of selectors.
Flags text nodes with a trailing $ before a JSX expression.
Disallow using a Drizzle ORM instance inside its own transaction callback.
Detect return type annotations that are misleadingly wider than what the implementation actually returns.