From 69272b49a467ae5a8890afbeb8ef2d268a8b3770 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 981b08d74..a5a4fd0f4 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 dc5321882..3aef6484e 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', {