Releases: vuejs/eslint-plugin-vue
Releases · vuejs/eslint-plugin-vue
v8.7.0
✨ Enhancements
- #1825, #1842 Added support for CSS selectors to order option for
vue/component-tags-order
rule. - #1831 Added
vue/match-component-import-name
rule that requires the registered component name to match the imported component name. - #1856 Added
vue/define-macros-order
rule that enforces the order ofdefineEmits
anddefineProps
compiler macros.
🐛 Bug Fixes
- #1844 Fixed false negatives for
<script setup>
invue/multi-word-component-names
rule. - #1854 Fixed false positives for
<script setup>
with TS literal type invue/require-valid-default-prop
rule.
Full Changelog: v8.6.0...v8.7.0
v8.6.0
✨ Enhancements
- #1811 Made
vue/component-tags-order
rule auto-fixable. - #1822 Added
vue/prefer-prop-type-boolean-first
rule that enforces thatBoolean
comes first in component prop types - #1820 Added
vue/no-restricted-html-elements
rule that disallows specific HTML elements.
🐛 Bug Fixes
- #1826 Fixed false negatives for
<slot>
invue/attribute-hyphenation
rule.
Full Changelog: v8.5.0...v8.6.0
v8.5.0
✨ Enhancements
- #1796 Added
prefer-true-attribute-shorthand
rule that forces thev-bind
attribute withtrue
value to use the shorthand. - #1804 Added
vue/prefer-import-from-vue
rule that aims to use imports from'vue'
instead of imports from'@vue/*'
.
Full Changelog: v8.4.1...v8.5.0
v8.4.1
🐛 Bug Fixes
- #1782 Support template literal component names in
vue/no-undef-components
rule. - #1790 Fixed false positives due to conflicts with other rules in
vue/no-unused-properties
rule.
Full Changelog: v8.4.0...v8.4.1
v8.4.0
✨ Enhancements
- #1760 Added
vue/no-v-text-v-html-on-component
rule that disallows the use ofv-text
/v-html
on component. - #1762 Added
vue/object-shorthand
rule that appliesobject-shorthand
rule to expressions in<template>
. - #1763 Added
vue/no-undef-components
rule that warns reports component that are used in the<template>
, but that are not defined in the<script setup>
or the Options API'scomponents
section. - #1769 Added
vue/quote-props
rule that appliesquote-props
rule to expressions in<template>
. - #1761 Added support for Vue2 functional component to
vue/no-unused-properties
rule. - #1761 Added support for Vue2 functional component to
vue/no-undef-properties
rule.
🐛 Bug Fixes
- #1770 Fixed false positives for import brace in
vue/script-indent
rule. - #1771 Fixed false positives for
v-bind="obj"
withv-model
invue/attributes-order
rule. - #1775 Fixed false positives for CSS
v-bind()
invue/no-extra-parens
rule. - #1777 Skip conditional expressions in
vue/valid-next-tick
rule.
⚙️ Updates
- #1763 Deprecated
vue/no-unregistered-components
rule.
Full Changelog: v8.3.0...v8.4.0
v8.3.0
🐛 Bug Fixes
- #1755 Fix crash on
<textarea>
without end tag invue/html-indent
rule. - #1756 Fix false positive for unknown emits definition in
vue/require-explicit-emits
rule.
⚙️ Updates
Full Changelog: v8.2.0...v8.3.0
v8.2.0
✨ Enhancements
- #1725 Added
vue/component-options-name-casing
rule that enforces the casing of component name incomponents
options. - #1729 Added
vue/prefer-separate-static-class
rule that requires static class names in template to be in a separateclass
attribute.
🐛 Bug Fixes
- #1736 Fixed false positives for import binding in
vue/valid-define-emits
andvue/valid-define-props
rules.
⚙️ Updates
- #1719 Added support for TypeScript 4.5 to
vue/script-indent
rule. - #1735 Changed to allow
asyncData
invue/no-dupe-keys
rule.
Full Changelog: v8.1.1...v8.2.0
v8.1.1
v8.1.0
✨ Enhancements
- #1707 Added
vue/no-child-content
rule that reports child content of elements that have a directive which overwrites that child content. - #1712 Added
vue/no-expose-after-await
rule that reports theexpose()
afterawait
expression. - #1703 Added
composition-vue2
style option invue/component-api-style
rule.
🐛 Bug Fixes
- #1713 Fixed false positives for type-only exports in
vue/no-export-in-script-setup
rule. - #1715 Fixed false negatives for
v-bind.sync
invue/no-mutating-props
rule. - #1715 Fixed false positives for shadowed props in
vue/no-mutating-props
rule. - #1718 Fixed memory leak.
Full Changelog: v8.0.3...v8.1.0
v8.0.3
🐛 Bug Fixes
- #1691 Upgrade vue-eslint-parser to use patch.
It upgrade fixes the wrong location in multiple<script>
Full Changelog: v8.0.2...v8.0.3