Socket
Socket
Sign inDemoInstall

eslint-plugin-vue

Package Overview
Dependencies
Maintainers
4
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.6.0 to 4.7.0

lib/rules/no-v-html.js

1

lib/index.js

@@ -36,2 +36,3 @@ /*

'no-use-v-if-with-v-for': require('./rules/no-use-v-if-with-v-for'),
'no-v-html': require('./rules/no-v-html'),
'order-in-components': require('./rules/order-in-components'),

@@ -38,0 +39,0 @@ 'prop-name-casing': require('./rules/prop-name-casing'),

8

lib/rules/attribute-hyphenation.js

@@ -19,3 +19,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/attribute-hyphenation.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/attribute-hyphenation.md'
},

@@ -53,6 +53,6 @@ fixable: 'code',

const useHyphenated = option !== 'never'
const ignoredAttributes = ['data-', 'aria-', 'slot-scope']
let ignoredAttributes = ['data-', 'aria-', 'slot-scope']
if (optionsPayload && optionsPayload.ignore) {
ignoredAttributes.push(optionsPayload.ignore)
ignoredAttributes = ignoredAttributes.concat(optionsPayload.ignore)
}

@@ -68,3 +68,3 @@

loc: node.loc,
message: useHyphenated ? "Attribute '{{text}}' must be hyphenated." : "Attribute '{{text}}' cann't be hyphenated.",
message: useHyphenated ? "Attribute '{{text}}' must be hyphenated." : "Attribute '{{text}}' can't be hyphenated.",
data: {

@@ -71,0 +71,0 @@ text

@@ -112,3 +112,3 @@ /**

category: 'base',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/comment-directive.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/comment-directive.md'
},

@@ -115,0 +115,0 @@ schema: []

@@ -35,3 +35,3 @@ /**

category: undefined,
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/html-closing-bracket-newline.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/html-closing-bracket-newline.md'
},

@@ -38,0 +38,0 @@ fixable: 'whitespace',

@@ -56,3 +56,3 @@ /**

category: undefined,
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/html-closing-bracket-spacing.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/html-closing-bracket-spacing.md'
},

@@ -59,0 +59,0 @@ schema: [{

@@ -23,3 +23,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/html-end-tags.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/html-end-tags.md'
},

@@ -26,0 +26,0 @@ fixable: 'code',

@@ -32,3 +32,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/html-indent.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/html-indent.md'
},

@@ -35,0 +35,0 @@ fixable: 'whitespace',

@@ -23,3 +23,3 @@ /**

category: 'recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/html-quotes.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/html-quotes.md'
},

@@ -26,0 +26,0 @@ fixable: 'code',

@@ -91,3 +91,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/html-self-closing.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/html-self-closing.md'
},

@@ -94,0 +94,0 @@ fixable: 'code',

@@ -42,3 +42,3 @@ // the following rule is based on yannickcr/eslint-plugin-react

category: 'base',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/jsx-uses-vars.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/jsx-uses-vars.md'
},

@@ -45,0 +45,0 @@ schema: []

@@ -17,3 +17,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/max-attributes-per-line.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/max-attributes-per-line.md'
},

@@ -20,0 +20,0 @@ fixable: 'whitespace', // or "code" or "whitespace"

@@ -22,3 +22,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/mustache-interpolation-spacing.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/mustache-interpolation-spacing.md'
},

@@ -25,0 +25,0 @@ fixable: 'whitespace',

@@ -20,3 +20,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/name-property-casing.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/name-property-casing.md'
},

@@ -23,0 +23,0 @@ fixable: 'code', // or "code" or "whitespace"

@@ -67,3 +67,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-async-in-computed-properties.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-async-in-computed-properties.md'
},

@@ -70,0 +70,0 @@ fixable: null,

@@ -42,3 +42,3 @@ /**

category: 'recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-confusing-v-for-v-if.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-confusing-v-for-v-if.md'
},

@@ -45,0 +45,0 @@ fixable: null,

@@ -20,3 +20,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-dupe-keys.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-dupe-keys.md'
},

@@ -23,0 +23,0 @@ fixable: null, // or "code" or "whitespace"

@@ -42,3 +42,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-duplicate-attributes.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-duplicate-attributes.md'
},

@@ -45,0 +45,0 @@ fixable: null,

@@ -16,3 +16,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-multi-spaces.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-multi-spaces.md'
},

@@ -19,0 +19,0 @@ fixable: 'whitespace', // or "code" or "whitespace"

@@ -61,3 +61,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-parsing-error.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-parsing-error.md'
},

@@ -64,0 +64,0 @@ fixable: null,

@@ -21,3 +21,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-reserved-keys.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-reserved-keys.md'
},

@@ -24,0 +24,0 @@ fixable: null,

@@ -43,3 +43,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-shared-component-data.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-shared-component-data.md'
},

@@ -46,0 +46,0 @@ fixable: 'code',

@@ -18,3 +18,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-side-effects-in-computed-properties.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-side-effects-in-computed-properties.md'
},

@@ -21,0 +21,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-template-key.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-template-key.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-textarea-mustache.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-textarea-mustache.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -18,3 +18,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-unused-vars.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-unused-vars.md'
},

@@ -21,0 +21,0 @@ fixable: null,

@@ -55,3 +55,3 @@ /**

category: undefined,
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/no-use-v-if-with-v-for.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/no-use-v-if-with-v-for.md'
},

@@ -58,0 +58,0 @@ fixable: null,

@@ -138,3 +138,3 @@ /**

category: 'recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/order-in-components.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/order-in-components.md'
},

@@ -141,0 +141,0 @@ fixable: 'code', // null or "code" or "whitespace"

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/require-component-is.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/require-component-is.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -18,3 +18,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/require-default-prop.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/require-default-prop.md'
},

@@ -21,0 +21,0 @@ fixable: null, // or "code" or "whitespace"

@@ -18,3 +18,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/require-prop-types.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/require-prop-types.md'
},

@@ -21,0 +21,0 @@ fixable: null, // or "code" or "whitespace"

@@ -18,3 +18,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/require-render-return.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/require-render-return.md'
},

@@ -21,0 +21,0 @@ fixable: null, // or "code" or "whitespace"

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/require-v-for-key.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/require-v-for-key.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -27,3 +27,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/require-valid-default-prop.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/require-valid-default-prop.md'
},

@@ -30,0 +30,0 @@ fixable: null,

@@ -18,3 +18,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/return-in-computed-property.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/return-in-computed-property.md'
},

@@ -21,0 +21,0 @@ fixable: null, // or "code" or "whitespace"

@@ -22,3 +22,3 @@ /**

category: undefined,
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/script-indent.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/script-indent.md'
},

@@ -25,0 +25,0 @@ fixable: 'whitespace',

@@ -23,3 +23,3 @@ /**

category: 'recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/this-in-template.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/this-in-template.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/v-bind-style.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/v-bind-style.md'
},

@@ -26,0 +26,0 @@ fixable: 'code',

@@ -23,3 +23,3 @@ /**

category: 'strongly-recommended',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/v-on-style.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/v-on-style.md'
},

@@ -26,0 +26,0 @@ fixable: 'code',

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-template-root.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-template-root.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -29,3 +29,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-bind.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-bind.md'
},

@@ -32,0 +32,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-cloak.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-cloak.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-else-if.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-else-if.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-else.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-else.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -109,3 +109,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-for.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-for.md'
},

@@ -112,0 +112,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-html.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-html.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-if.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-if.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -85,3 +85,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-model.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-model.md'
},

@@ -88,0 +88,0 @@ fixable: null,

@@ -118,3 +118,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-on.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-on.md'
},

@@ -121,0 +121,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-once.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-once.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-pre.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-pre.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-show.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-show.md'
},

@@ -26,0 +26,0 @@ fixable: null,

@@ -23,3 +23,3 @@ /**

category: 'essential',
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.6.0/docs/rules/valid-v-text.md'
url: 'https://github.com/vuejs/eslint-plugin-vue/blob/v4.7.0/docs/rules/valid-v-text.md'
},

@@ -26,0 +26,0 @@ fixable: null,

{
"name": "eslint-plugin-vue",
"version": "4.6.0",
"version": "4.7.0",
"description": "Official ESLint plugin for Vue.js",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -224,2 +224,3 @@ # eslint-plugin-vue

| | [vue/no-use-v-if-with-v-for](./docs/rules/no-use-v-if-with-v-for.md) | disallow use v-if on the same element as v-for |
| | [vue/no-v-html](./docs/rules/no-v-html.md) | disallow use of v-html to prevent XSS attack |
| :wrench: | [vue/prop-name-casing](./docs/rules/prop-name-casing.md) | enforce specific casing for the Prop name in Vue components |

@@ -226,0 +227,0 @@ | :wrench: | [vue/script-indent](./docs/rules/script-indent.md) | enforce consistent indentation in `<script>` |

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