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