eslint-plugin-vue
Advanced tools
Comparing version 3.13.1 to 3.14.0
/* | ||
* IMPORTANT! | ||
* This file has been automatically generated, | ||
* in order to update it's content execute "npm run update" | ||
* in order to update its content execute "npm run update" | ||
*/ | ||
@@ -9,2 +9,3 @@ module.exports = { | ||
"vue/html-end-tags": "off", | ||
"vue/html-indent": "off", | ||
"vue/html-no-self-closing": "off", | ||
@@ -43,2 +44,3 @@ "vue/html-quotes": "off", | ||
"vue/no-textarea-mustache": "error", | ||
"vue/no-unused-vars": "off", | ||
"vue/order-in-components": "off", | ||
@@ -45,0 +47,0 @@ "vue/require-component-is": "error", |
@@ -30,2 +30,3 @@ /** | ||
const hasEndTag = node.endTag != null | ||
const isSelfClosing = node.startTag.selfClosing | ||
@@ -41,3 +42,3 @@ if (isVoid && hasEndTag) { | ||
} | ||
if (!isVoid && !hasEndTag) { | ||
if (!isVoid && !(hasEndTag || isSelfClosing)) { | ||
context.report({ | ||
@@ -44,0 +45,0 @@ node: node.startTag, |
@@ -15,4 +15,5 @@ /** | ||
// this.xxx <=|+=|-=> | ||
'AssignmentExpression > MemberExpression' (node) { | ||
if (utils.parseMemberExpression(node)[0] === 'this') { | ||
'AssignmentExpression' (node) { | ||
if (node.left.type !== 'MemberExpression') return | ||
if (utils.parseMemberExpression(node.left)[0] === 'this') { | ||
forbiddenNodes.push(node) | ||
@@ -19,0 +20,0 @@ } |
@@ -42,3 +42,3 @@ /** | ||
node: cp, | ||
message: 'Prop "{{name}}" should define at least it\'s type.', | ||
message: 'Prop "{{name}}" should define at least its type.', | ||
data: { | ||
@@ -45,0 +45,0 @@ name: cp.key.name |
@@ -24,3 +24,3 @@ /** | ||
function checkKey (context, element) { | ||
if (element.name === 'template') { | ||
if (element.name === 'template' || element.name === 'slot') { | ||
for (const child of element.children) { | ||
@@ -27,0 +27,0 @@ if (child.type === 'VElement') { |
@@ -250,3 +250,3 @@ /** | ||
/** | ||
* Parse member expression node to get array with all of it's parts | ||
* Parse member expression node to get array with all of its parts | ||
* @param {ASTNode} MemberExpression | ||
@@ -253,0 +253,0 @@ * @returns {Array} |
{ | ||
"name": "eslint-plugin-vue", | ||
"version": "3.13.1", | ||
"version": "3.14.0", | ||
"description": "Official ESLint plugin for Vue.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -24,3 +24,3 @@ # eslint-plugin-vue | ||
``` | ||
```bash | ||
npm install --save-dev eslint eslint-plugin-vue@beta | ||
@@ -101,2 +101,3 @@ ``` | ||
| | [no-template-key](./docs/rules/no-template-key.md) | disallow `key` attribute on `<template>` | | ||
| | [no-unused-vars](./docs/rules/no-unused-vars.md) | disallow unused variable definitions of v-for directives or scope attributes | | ||
| | [require-render-return](./docs/rules/require-render-return.md) | enforce render function to always return value | | ||
@@ -144,2 +145,3 @@ | | [require-valid-default-prop](./docs/rules/require-valid-default-prop.md) | enforce props default values to be valid | | ||
| :wrench: | [attribute-hyphenation](./docs/rules/attribute-hyphenation.md) | enforce attribute naming style in template | | ||
| :wrench: | [html-indent](./docs/rules/html-indent.md) | enforce consistent indentation in `<template>` | | ||
| | [html-quotes](./docs/rules/html-quotes.md) | enforce quotes style of HTML attributes | | ||
@@ -146,0 +148,0 @@ | :wrench: | [html-self-closing](./docs/rules/html-self-closing.md) | enforce self-closing style | |
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
235293
76
6617
235