Skip to content

Commit 5b4e4f0

Browse files
committed
add eslint rule to detect unused properties
1 parent 89135d5 commit 5b4e4f0

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ module.exports = {
7373
rules: {
7474
'vue/v-on-style': ['error', 'longform'],
7575
'vue/v-bind-style': ['error', 'longform'],
76+
'vue/no-unused-properties': ['error', {
77+
'groups': ['props', 'data', 'computed', 'methods', 'setup'],
78+
'deepData': true,
79+
'ignorePublicMembers': false
80+
}],
7681
'indent': ['error', 4],
7782
'vue/html-indent': ['error', 4, {
7883
'attribute': 1,

0 commit comments

Comments
 (0)