Skip to content

Commit

Permalink
fix(config): Use TS version of no-unused-expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
calebeby committed May 18, 2020
1 parent 62c243e commit f4487b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ module.exports.configs = {
'@typescript-eslint/unbound-method': 'off', // unbound methods are often fine
'@typescript-eslint/no-misused-promises': 'off', // disregarding a promise value doesn't mean it is being misused

'no-unused-expressions': 'off', // TS version of rule fixes to support optional chaining
'@typescript-eslint/no-unused-expressions': 'error',
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
'@typescript-eslint/prefer-optional-chain': 'error',
}),
Expand Down

0 comments on commit f4487b9

Please sign in to comment.