Skip to content

Commit 5620bd5

Browse files
committed
[eslint config] [base] add no-nonoctal-decimal-escape rule
1 parent f0df3a8 commit 5620bd5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/eslint-config-airbnb-base/rules/best-practices.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,11 @@ module.exports = {
182182
// disallows creating new instances of String, Number, and Boolean
183183
'no-new-wrappers': 'error',
184184

185+
// Disallow \8 and \9 escape sequences in string literals
186+
// https://eslint.org/docs/rules/no-nonoctal-decimal-escape
187+
// todo: semver-major: enable when v7.14 is required
188+
'no-nonoctal-decimal-escape': 'off',
189+
185190
// disallow use of (old style) octal literals
186191
'no-octal': 'error',
187192

0 commit comments

Comments
 (0)