Skip to content

Commit 20be60d

Browse files
committed
Change Object.values to fix node 6
1 parent 97ef276 commit 20be60d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rules/use-v-on-exact.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ module.exports = {
4343
return rv
4444
}, {})
4545

46-
const directives = Object.values(groups).filter(item => item.length > 1)
46+
const directives = Object.keys(groups).map(key => groups[key])
47+
// const directives = Object.values(groups) // Uncomment after node 6 is dropped
48+
.filter(item => item.length > 1)
4749
for (const group of directives) {
4850
if (group.some(item => item.modifiers.length > 0)) { // check if there are directives with modifiers
4951
const invalid = group.filter(item => item.modifiers.length === 0)

0 commit comments

Comments
 (0)