refactor: disallow some variable names
This commit is contained in:
parent
8322c90834
commit
cc6b2d578f
@ -14,6 +14,10 @@ module.exports = {
|
|||||||
"plugin:vue/vue3-recommended"
|
"plugin:vue/vue3-recommended"
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
|
// window の禁止理由: グローバルスコープと衝突し、予期せぬ結果を招くため
|
||||||
|
// data の禁止理由: 抽象的すぎるため
|
||||||
|
// e の禁止理由: error や event など、複数のキーワードの頭文字であり分かりにくいため
|
||||||
|
"id-denylist": ["error", "window", "data", "e"],
|
||||||
"vue/attributes-order": ["error", {
|
"vue/attributes-order": ["error", {
|
||||||
"alphabetical": false
|
"alphabetical": false
|
||||||
}],
|
}],
|
||||||
|
Loading…
Reference in New Issue
Block a user