Skip to content

Commit

Permalink
Add option to no-unsafe-negation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 14, 2021
1 parent 68e48ca commit e5c4861
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ module.exports = {
'no-unreachable': 'error',
'no-unreachable-loop': 'error',
'no-unsafe-finally': 'error',
'no-unsafe-negation': 'error',
'no-unsafe-negation': [
'error',
{
enforceForOrderingRelations: true
}
],
'no-unsafe-optional-chaining': [
'error',
{
Expand Down

0 comments on commit e5c4861

Please sign in to comment.