noIrregularWhitespace (CSS)
Summary
Section titled “Summary”- Rule available since:
v1.9.0 - Diagnostic Category:
lint/suspicious/noIrregularWhitespace - This rule is recommended, meaning it is enabled by default.
- This rule doesn’t have a fix.
- The default severity of this rule is warning.
- Sources:
- Same as
no-irregular-whitespace
- Same as
How to configure
Section titled “How to configure”{ "linter": { "rules": { "suspicious": { "noIrregularWhitespace": "error" } } }}Description
Section titled “Description”Disallows the use of irregular whitespace characters.
Using irregular whitespace would lead to the failure of selecting the correct target.
Examples
Section titled “Examples”Invalid
Section titled “Invalid”.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;}Related links
Section titled “Related links”Copyright (c) 2023-present Biome Developers and Contributors.