mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-27 18:43:08 +02:00
refactor: disallow some variable names
This commit is contained in:
parent
8322c90834
commit
cc6b2d578f
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