From 3d1878344dfd39e79e8f22f95a66bb6b3266311b Mon Sep 17 00:00:00 2001 From: Pavlo Mykhalov Date: Wed, 3 Mar 2021 15:17:12 +0200 Subject: [PATCH] Require strict equality 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. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 053e7cb..5e2abb2 100644 --- a/index.js +++ b/index.js @@ -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',