From da0e1895e5a72e7e6f5cb0b87050439444c8cdcc Mon Sep 17 00:00:00 2001 From: syuilo Date: Mon, 31 Jan 2022 21:24:11 +0900 Subject: [PATCH] add eslint rule --- packages/client/.eslintrc.js | 1 + packages/shared/.eslintrc.js | 1 + 2 files changed, 2 insertions(+) diff --git a/packages/client/.eslintrc.js b/packages/client/.eslintrc.js index d414f86ed..222b5b5a7 100644 --- a/packages/client/.eslintrc.js +++ b/packages/client/.eslintrc.js @@ -18,6 +18,7 @@ module.exports = { // data の禁止理由: 抽象的すぎるため // e の禁止理由: error や event など、複数のキーワードの頭文字であり分かりにくいため "id-denylist": ["error", "window", "data", "e"], + 'eqeqeq': ['error', { 'null': 'ignore' }], "vue/attributes-order": ["error", { "alphabetical": false }], diff --git a/packages/shared/.eslintrc.js b/packages/shared/.eslintrc.js index 9d7d4159e..d52b16395 100644 --- a/packages/shared/.eslintrc.js +++ b/packages/shared/.eslintrc.js @@ -37,6 +37,7 @@ module.exports = { ] }], */ + 'eqeqeq': ['error', { 'null': 'ignore' }], 'no-multi-spaces': ['error'], 'no-var': ['error'], 'prefer-arrow-callback': ['error'],