From 76dd3e8ebbfa1acd119e8d7861300682cdbde9bf Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 16 Jan 2022 10:20:23 +0900 Subject: [PATCH] refactor: disallow some variable names --- packages/client/.eslintrc.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/client/.eslintrc.js b/packages/client/.eslintrc.js index 8e4ff6e45..e0113019a 100644 --- a/packages/client/.eslintrc.js +++ b/packages/client/.eslintrc.js @@ -14,6 +14,10 @@ module.exports = { "plugin:vue/vue3-recommended" ], rules: { + // window の禁止理由: グローバルスコープと衝突し、予期せぬ結果を招くため + // data の禁止理由: 抽象的すぎるため + // e の禁止理由: error や event など、複数のキーワードの頭文字であり分かりにくいため + "id-denylist": ["error", "window", "data", "e"], "vue/attributes-order": ["error", { "alphabetical": false }],