Skip to content

Commit

Permalink
Enforce usage of type-safe equality operators
Browse files Browse the repository at this point in the history
Using == / != is a source of bugs.

Rule doc page: https://eslint.org/docs/latest/rules/eqeqeq
  • Loading branch information
victorlin committed Oct 21, 2024
1 parent c719978 commit a2e4c54
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ globals:

rules:
# Code quality rules
eqeqeq: error
"@typescript-eslint/no-empty-function": ["error", { "allow": ["arrowFunctions"] }]
"@typescript-eslint/no-explicit-any": off # Allow explicit any to make incremental TypeScript adoption easier.
no-unused-vars: off
Expand Down

0 comments on commit a2e4c54

Please sign in to comment.