eslint-plugin-vue
Advanced tools
Comparing version 4.0.1 to 4.1.0
@@ -7,3 +7,4 @@ /* | ||
module.exports = { | ||
"vue/comment-directive": "error", | ||
"vue/jsx-uses-vars": "error" | ||
} |
@@ -7,2 +7,3 @@ /* | ||
module.exports = { | ||
"vue/comment-directive": "error", | ||
"vue/jsx-uses-vars": "error", | ||
@@ -9,0 +10,0 @@ "vue/no-async-in-computed-properties": "error", |
@@ -14,6 +14,8 @@ 'use strict' | ||
}) | ||
const processor = require('./processor') | ||
module.exports = { | ||
rules, | ||
configs | ||
configs, | ||
processors: { '.vue': processor } | ||
} |
@@ -8,2 +8,3 @@ /* | ||
"vue/attribute-hyphenation": "error", | ||
"vue/comment-directive": "error", | ||
"vue/html-end-tags": "error", | ||
@@ -10,0 +11,0 @@ "vue/html-indent": "error", |
@@ -67,3 +67,5 @@ /** | ||
checkProperties(node.value.properties) | ||
} else { | ||
} | ||
if (node.value.type === 'ArrayExpression') { | ||
context.report({ | ||
@@ -70,0 +72,0 @@ node, |
@@ -8,2 +8,3 @@ /* | ||
"vue/attribute-hyphenation": "error", | ||
"vue/comment-directive": "error", | ||
"vue/html-end-tags": "error", | ||
@@ -10,0 +11,0 @@ "vue/html-indent": "error", |
{ | ||
"name": "eslint-plugin-vue", | ||
"version": "4.0.1", | ||
"version": "4.1.0", | ||
"description": "Official ESLint plugin for Vue.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -74,2 +74,16 @@ # eslint-plugin-vue | ||
### `eslint-disable` functionality in `<template>` | ||
You can use `<!-- eslint-disable -->`-like HTML comments in `<template>` of `.vue` files. For example: | ||
```html | ||
<template> | ||
<!-- eslint-disable-next-line vue/max-attributes-per-line --> | ||
<div a="1" b="2" c="3" d="4"> | ||
</div> | ||
</template> | ||
``` | ||
If you want to disallow `eslint-disable` functionality, please disable [vue/comment-directive](./docs/rules/comment-directive.md) rule. | ||
## :gear: Configs | ||
@@ -99,2 +113,3 @@ | ||
|:---|:--------|:------------| | ||
| | [comment-directive](./docs/rules/comment-directive.md) | support comment-directives in `<template>` | | ||
| | [jsx-uses-vars](./docs/rules/jsx-uses-vars.md) | prevent variables used in JSX to be marked as unused | | ||
@@ -183,2 +198,18 @@ | ||
### Uncategorized | ||
| | Rule ID | Description | | ||
|:---|:--------|:------------| | ||
| :wrench: | [html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md) | require or disallow a line break before tag's closing brackets | | ||
| :wrench: | [html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | | ||
### Uncategorized | ||
| | Rule ID | Description | | ||
|:---|:--------|:------------| | ||
| :wrench: | [html-closing-bracket-newline](./docs/rules/html-closing-bracket-newline.md) | require or disallow a line break before tag's closing brackets | | ||
| :wrench: | [html-closing-bracket-spacing](./docs/rules/html-closing-bracket-spacing.md) | require or disallow a space before tag's closing brackets | | ||
<!--RULES_TABLE_END--> | ||
@@ -185,0 +216,0 @@ |
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
214700
69
5883
272