Skip to content

Commit

Permalink
[eslint config] [base] add no-nonoctal-decimal-escape rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Nov 21, 2020
1 parent f0df3a8 commit 5620bd5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/eslint-config-airbnb-base/rules/best-practices.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ module.exports = {
// disallows creating new instances of String, Number, and Boolean
'no-new-wrappers': 'error',

// Disallow \8 and \9 escape sequences in string literals
// https://eslint.org/docs/rules/no-nonoctal-decimal-escape
// todo: semver-major: enable when v7.14 is required
'no-nonoctal-decimal-escape': 'off',

// disallow use of (old style) octal literals
'no-octal': 'error',

Expand Down

0 comments on commit 5620bd5

Please sign in to comment.