We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20be60d commit a35339fCopy full SHA for a35339f
lib/rules/use-v-on-exact.js
@@ -43,11 +43,8 @@ module.exports = {
43
return rv
44
}, {})
45
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
+ for (const group of groups) {
+ if (group.length > 1 && group.some(item => item.modifiers.length > 0)) { // check if there are directives with modifiers
51
const invalid = group.filter(item => item.modifiers.length === 0)
52
for (const node of invalid) {
53
context.report({
0 commit comments