Skip to content

Commit

Permalink
Enable more typescript-eslint rules (#248)
Browse files Browse the repository at this point in the history
  • Loading branch information
calebeby committed Aug 24, 2020
1 parent 7071993 commit 5042cde
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .changeset/gold-moons-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'eslint-plugin-caleb': major
---

Enable 3 `@typescript-eslint` rules:

- [`@typescript-eslint/no-unnecessary-boolean-literal-compare`](https://github.com/typescript-eslint/typescript-eslint/blob/v3.9.0/packages/eslint-plugin/docs/rules/no-unnecessary-boolean-literal-compare.md)
- [`@typescript-eslint/no-unnecessary-condition`](https://github.com/typescript-eslint/typescript-eslint/blob/v3.9.0/packages/eslint-plugin/docs/rules/no-unnecessary-condition.md)
- [`@typescript-eslint/no-unnecessary-type-arguments`](https://github.com/typescript-eslint/typescript-eslint/blob/v3.9.0/packages/eslint-plugin/docs/rules/no-unnecessary-type-arguments.md)
3 changes: 3 additions & 0 deletions src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ module.exports.configs = {
},
},
],
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
'@typescript-eslint/no-unnecessary-condition': 'error',
'@typescript-eslint/no-unnecessary-type-arguments': 'error',
}),
},
{
Expand Down

0 comments on commit 5042cde

Please sign in to comment.