New rule proposal: no-nonoctal-decimal-escape #13765
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
feature
This change adds a new feature to ESLint
rule
Relates to ESLint's core rules
Projects
Please describe what the rule should do:
Disallow
\8
and\9
escape sequences in string literals.What new ECMAScript feature does this rule relate to?
NonOctalDecimalEscapeSequence has been recently added to the specification:
tc39/ecma262#2054
What category of rule is this? (place an "X" next to just one item)
[ ] Warns about a potential error (problem)
[X] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule will warn about:
Why should this rule be included in ESLint (instead of a plugin)?
It disallows the use of an Annex B feature:
Are you willing to submit a pull request to implement this rule?
Yes.
Previous discussion about including this in some of the existing rules: #13740
The text was updated successfully, but these errors were encountered: