mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
refactor: disallow some variable names
This commit is contained in:
parent
79c78bb6f2
commit
76dd3e8ebb
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}],
|
||||
|
|
Loading…
Reference in a new issue