Skip to content

Commit

Permalink
Feat: es2021, more rules
Browse files Browse the repository at this point in the history
- Enabled support for es2021 syntax.
- Added no-nonoctal-decimal-escape rule.
- Added no-unsafe-optional-chaining rule.
  • Loading branch information
ridays2001 committed Feb 9, 2021
1 parent a496ad4 commit 1b0315f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
parserOptions: {
ecmaVersion: 2020
ecmaVersion: 2021
},
env: {
amd: true,
es2020: true,
es2021: true,
node: true
},
rules: {
Expand Down Expand Up @@ -201,6 +201,7 @@ module.exports = {
'no-new-object': 'error',
'no-new-symbol': 'warn',
'no-new-wrappers': 'warn',
'no-nonoctal-decimal-escape': 'warn',
'no-obj-calls': 'warn',
'no-octal': 'error',
'no-octal-escape': 'error',
Expand Down Expand Up @@ -242,6 +243,7 @@ module.exports = {
'no-unreachable-loop': 'warn',
'no-unsafe-finally': 'warn',
'no-unsafe-negation': 'error',
'no-unsafe-optional-chaining': 'error',
'no-unused-expressions': 'off',
'no-unused-labels': 'error',
'no-unused-vars': [
Expand Down

0 comments on commit 1b0315f

Please sign in to comment.