Skip to content

Commit

Permalink
refactor: turn off @typescript-eslint/no-unsafe-enum-comparison (#160)
Browse files Browse the repository at this point in the history
  • Loading branch information
gao-sun authored Apr 18, 2024
1 parent f401043 commit 80f910b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/stupid-falcons-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@silverhand/eslint-config": patch
---

turn off `@typescript-eslint/no-unsafe-enum-comparison`
2 changes: 2 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,8 @@ module.exports = {
},
],
'@typescript-eslint/no-explicit-any': 'error',
/** This brings more trouble than it solves. We have a lot of dynamic enum checks. */
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
/** No need as we have exhaustiveness check */
'default-case': 'off',
},
Expand Down

0 comments on commit 80f910b

Please sign in to comment.