eslint-plugin-vue
Advanced tools
Comparing version 3.2.2 to 3.3.0
@@ -8,3 +8,3 @@ /* | ||
"vue/html-end-tags": "off", | ||
"vue/html-no-self-closing": "error", | ||
"vue/html-no-self-closing": "off", | ||
"vue/html-quotes": "off", | ||
@@ -11,0 +11,0 @@ "vue/jsx-uses-vars": "error", |
@@ -52,3 +52,3 @@ /** | ||
category: 'Best Practices', | ||
recommended: true | ||
recommended: false | ||
}, | ||
@@ -55,0 +55,0 @@ fixable: 'code', |
@@ -23,2 +23,5 @@ /** | ||
]) | ||
const VERB_MODIFIERS = new Set([ | ||
'stop', 'prevent' | ||
]) | ||
@@ -51,7 +54,7 @@ /** | ||
} | ||
if (!utils.hasAttributeValue(node)) { | ||
if (!utils.hasAttributeValue(node) && !node.key.modifiers.some(VERB_MODIFIERS.has, VERB_MODIFIERS)) { | ||
context.report({ | ||
node, | ||
loc: node.loc, | ||
message: "'v-on' directives require that attribute value." | ||
message: "'v-on' directives require that attribute value or verb modifiers." | ||
}) | ||
@@ -58,0 +61,0 @@ } |
{ | ||
"name": "eslint-plugin-vue", | ||
"version": "3.2.2", | ||
"version": "3.3.0", | ||
"description": "Official ESLint plugin for Vue.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -68,3 +68,3 @@ # eslint-plugin-vue | ||
| :wrench: | [html-end-tags](./docs/rules/html-end-tags.md) | enforce end tag style. | | ||
| :white_check_mark::wrench: | [html-no-self-closing](./docs/rules/html-no-self-closing.md) | disallow self-closing elements. | | ||
| :wrench: | [html-no-self-closing](./docs/rules/html-no-self-closing.md) | disallow self-closing elements. | | ||
| :white_check_mark: | [no-confusing-v-for-v-if](./docs/rules/no-confusing-v-for-v-if.md) | disallow confusing `v-for` and `v-if` on the same element. | | ||
@@ -71,0 +71,0 @@ | | [no-duplicate-attributes](./docs/rules/no-duplicate-attributes.md) | disallow duplicate arguments. | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
81488
2252