From 0de973d293e5f489f0fd55d2409d5d2cbea4809c Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 2 Jul 2022 23:01:13 +0900 Subject: [PATCH] update eslint rules --- packages/client/.eslintrc.js | 3 +-- packages/shared/.eslintrc.js | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/.eslintrc.js b/packages/client/.eslintrc.js index 981b08d74c..a5a4fd0f43 100644 --- a/packages/client/.eslintrc.js +++ b/packages/client/.eslintrc.js @@ -22,9 +22,8 @@ module.exports = { }, ], // window の禁止理由: グローバルスコープと衝突し、予期せぬ結果を招くため - // data の禁止理由: 抽象的すぎるため // e の禁止理由: error や event など、複数のキーワードの頭文字であり分かりにくいため - 'id-denylist': ['error', 'window', 'data', 'e'], + 'id-denylist': ['error', 'window', 'e'], 'no-shadow': ['warn'], 'vue/attributes-order': ['error', { 'alphabetical': false, diff --git a/packages/shared/.eslintrc.js b/packages/shared/.eslintrc.js index dc53218824..3aef6484e9 100644 --- a/packages/shared/.eslintrc.js +++ b/packages/shared/.eslintrc.js @@ -21,6 +21,7 @@ module.exports = { }], 'eol-last': ['error', 'always'], 'semi': ['error', 'always'], + 'semi-spacing': ['error', { 'before': false, 'after': true }], 'quotes': ['warn', 'single'], 'comma-dangle': ['warn', 'always-multiline'], 'keyword-spacing': ['error', {