diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-20 12:47:51 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-03-20 12:47:51 +0900 |
| commit | fccaadacf0558f9ae976d3c093df3ca33475d1c3 (patch) | |
| tree | 442936a4006b981f82eaaa393b50aed7a8d291d8 /packages | |
| parent | 🎨 for install-extensions (diff) | |
| download | misskey-fccaadacf0558f9ae976d3c093df3ca33475d1c3.tar.gz misskey-fccaadacf0558f9ae976d3c093df3ca33475d1c3.tar.bz2 misskey-fccaadacf0558f9ae976d3c093df3ca33475d1c3.zip | |
lint(frontend): improve id-denylist rule
Diffstat (limited to 'packages')
| -rw-r--r-- | packages/frontend/eslint.config.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/frontend/eslint.config.js b/packages/frontend/eslint.config.js index 8aa70c66a2..fa2fcce95a 100644 --- a/packages/frontend/eslint.config.js +++ b/packages/frontend/eslint.config.js @@ -52,7 +52,11 @@ export default [ 'import/consistent-type-specifier-style': ['error', 'prefer-top-level'], // window の禁止理由: グローバルスコープと衝突し、予期せぬ結果を招くため // e の禁止理由: error や event など、複数のキーワードの頭文字であり分かりにくいため - 'id-denylist': ['error', 'window', 'e'], + // close ... window.closeと衝突 or 紛らわしい + // open ... window.openと衝突 or 紛らわしい + // fetch ... window.fetchと衝突 or 紛らわしい + // location ... window.locationと衝突 or 紛らわしい + 'id-denylist': ['error', 'window', 'e', 'close', 'open', 'fetch', 'location'], 'no-shadow': ['warn'], 'vue/attributes-order': ['error', { alphabetical: false, |