Skip to content

Commit

Permalink
Require strict equality
Browse files Browse the repository at this point in the history
The guide dictates that [strict equality must be used](https://google.github.io/styleguide/jsguide.html#features-equality-checks) with an exception for `x == null`, which matches ESLint's `eqeqeq: 'smart'` behaviour.
  • Loading branch information
mykhalov authored and Pavlo Mykhalov committed Mar 3, 2021
1 parent cc39cf5 commit 3d18783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ module.exports = {
// 'default-case': 'off',
// 'dot-location': 'off',
// 'dot-notation': 'off',
// 'eqeqeq': 'off',
'eqeqeq': ['error', 'smart'],
'guard-for-in': 'error',
// 'no-alert': 'off',
'no-caller': 'error',
Expand Down

0 comments on commit 3d18783

Please sign in to comment.