Skip to content

Commit a35339f

Browse files
committed
Make code more complain with node 6
1 parent 20be60d commit a35339f

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

Diff for: lib/rules/use-v-on-exact.js

+2-5
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,8 @@ module.exports = {
4343
return rv
4444
}, {})
4545

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)
49-
for (const group of directives) {
50-
if (group.some(item => item.modifiers.length > 0)) { // check if there are directives with modifiers
46+
for (const group of groups) {
47+
if (group.length > 1 && group.some(item => item.modifiers.length > 0)) { // check if there are directives with modifiers
5148
const invalid = group.filter(item => item.modifiers.length === 0)
5249
for (const node of invalid) {
5350
context.report({

0 commit comments

Comments
 (0)