Skip to content

Commit

Permalink
Add no-unsafe-optional-chaining rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 2, 2021
1 parent cab175e commit 417ca05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions index.js
Expand Up @@ -69,6 +69,12 @@ module.exports = {
'no-unreachable-loop': 'error',
'no-unsafe-finally': 'error',
'no-unsafe-negation': 'error',
'no-unsafe-optional-chaining': [
'error',
{
disallowArithmeticOperators: true
}
],
'no-useless-backreference': 'error',
'use-isnan': 'error',
'valid-typeof': [
Expand Down
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -51,15 +51,15 @@
"simple"
],
"dependencies": {
"confusing-browser-globals": "1.0.9"
"confusing-browser-globals": "1.0.10"
},
"devDependencies": {
"ava": "^2.4.0",
"eslint": "^7.14.0",
"eslint": "^7.17.0",
"is-plain-obj": "^3.0.0",
"temp-write": "^4.0.0"
},
"peerDependencies": {
"eslint": ">=7.14.0"
"eslint": ">=7.17.0"
}
}

0 comments on commit 417ca05

Please sign in to comment.