You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Note - the claims in the 'code' below are untrue because GitHub is replacing nbsp chars with standard spaces. To repro, you must supply your own nbsp chars.
// this comment contains nbsp charsconsts='this string contains nbsp chars';
with tslint.json configuration:
{
"rules": {
"no-irregular-whitespace": true
}
}
Actual behavior
Lint failures occur on nbsp chars in string literals and comments.
Expected behavior
Per docs: Disallow irregular whitespace outside of strings and comments
I'm less bothered by the actual behaviour & more-so by the incorrect documentation - disabling the rule when irregular whitespace belongs in a string literal is a perfectly acceptable solution to me.
The text was updated successfully, but these errors were encountered:
Bug Report
tslint -p ./tsconfig.json -c ./tslint.json -e '**/node_modules/**/*'
TypeScript code being linted
Note - the claims in the 'code' below are untrue because GitHub is replacing nbsp chars with standard spaces. To repro, you must supply your own nbsp chars.
with
tslint.json
configuration:Actual behavior
Lint failures occur on nbsp chars in string literals and comments.
Expected behavior
Per docs: Disallow irregular whitespace outside of strings and comments
I'm less bothered by the actual behaviour & more-so by the incorrect documentation - disabling the rule when irregular whitespace belongs in a string literal is a perfectly acceptable solution to me.
The text was updated successfully, but these errors were encountered: