Skip to content

noIrregularWhitespace (CSS)

biome.json
{
"linter": {
"rules": {
"suspicious": {
"noIrregularWhitespace": "error"
}
}
}
}

Disallows the use of irregular whitespace characters.

Using irregular whitespace would lead to the failure of selecting the correct target.

.firstClass .secondClass {
color: red;
}
code-block.css:1:12 lint/suspicious/noIrregularWhitespace ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Irregular whitespace found.

> 1 │ .firstClass.secondClass {
^
2 │ color: red;
3 │ }

Replace the irregular whitespace with normal whitespaces.

.firstClass .secondClass {
color: red;
}