Saltearse al contenido

noIrregularWhitespace

Esta página aún no está disponible en tu idioma.

Disallows the use of irregular whitespace characters.

Invalid or irregular whitespace causes issues with various parsers and also makes code harder to debug.

let count;
code-block.js:1:4 lint/suspicious/noIrregularWhitespace ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Irregular whitespaces found.

> 1 │ letcount;
^
2 │

Irregular whitespaces can cause issues to other parsers, and make the code harder to debug.

Replace the irregular whitespaces with normal whitespaces or tabs.

let foo;
code-block.js:1:4 lint/suspicious/noIrregularWhitespace ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Irregular whitespaces found.

> 1 │ letfoo;
^
2 │

Irregular whitespaces can cause issues to other parsers, and make the code harder to debug.

Replace the irregular whitespaces with normal whitespaces or tabs.

const count = 1;
const foo = ' ';
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noIrregularWhitespace": "error"
}
}
}
}