Socket
Socket
Sign inDemoInstall

eslint-plugin-vue

Package Overview
Dependencies
Maintainers
3
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-vue - npm Package Compare versions

Comparing version 4.0.1 to 4.1.0

lib/processor.js

1

lib/base-rules.js

@@ -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",

4

lib/index.js

@@ -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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc