Skip to content

Commit ebc2af7

Browse files
committed
Revert "Make code more complain with node 6"
This reverts commit a35339f.
1 parent a35339f commit ebc2af7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

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

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
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
4851
const invalid = group.filter(item => item.modifiers.length === 0)
4952
for (const node of invalid) {
5053
context.report({

0 commit comments

Comments
 (0)