A string uses a legacy octal escape or escapes a digit
What it finds
"\251" is a legacy octal escape for ©, and "\8" an escape of the digit itself. Both are left over from early JavaScript: they are syntax errors in strict code, modules and templates, and hard to read anywhere. "\xA9" or "©" say the same.
Reported are escapes of a digit other than \0 alone in string literals.
From the rule's source, legacy_octal_escape.rs.
Turn it on, off or suppress it
The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:
[rules]
"tx0/ts:legacy-octal-escape" = "warning"To keep one finding, suppress it with a reason. tx0 suppress ID --reason "..." writes the comment on the line before the code:
// tx0: ignore[tx0/ts:legacy-octal-escape] reason="..."tx0 explain tx0/ts:legacy-octal-escape shows the same in the terminal. Found a false positive? Report it.