mirror of
https://github.com/paricafe/misskey.git
synced 2025-04-01 09:09:29 -05:00
lint(frontend): relax id-denylist rule
This commit is contained in:
parent
fd3e28812e
commit
fac59d75e2
1 changed files with 3 additions and 3 deletions
|
@ -50,13 +50,13 @@ export default [
|
|||
// defineExposeが誤検知されてしまう
|
||||
'@typescript-eslint/no-unused-expressions': 'off',
|
||||
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
|
||||
// window の禁止理由: グローバルスコープと衝突し、予期せぬ結果を招くため
|
||||
// e の禁止理由: error や event など、複数のキーワードの頭文字であり分かりにくいため
|
||||
// window ... グローバルスコープと衝突し、予期せぬ結果を招くため
|
||||
// e ... error や event など、複数のキーワードの頭文字であり分かりにくいため
|
||||
// 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'],
|
||||
'id-denylist': ['warn', 'window', 'e', 'close', 'open', 'fetch', 'location'],
|
||||
'no-shadow': ['warn'],
|
||||
'vue/attributes-order': ['error', {
|
||||
alphabetical: false,
|
||||
|
|
Loading…
Add table
Reference in a new issue