Releases: vuejs/eslint-plugin-vue
Releases · vuejs/eslint-plugin-vue
v9.23.0
✨ Enhancements
- #2422 Added support for auto-imported Vue APIs (e.g. in vue/no-ref-as-operand).
- #2423 Added suggestions for reordering to vue/order-in-componentswhen there may be side effects.
🐛 Bug Fixes
- #2410 Fixed false positives for non-kebab-case variables in vue/v-bind-stylerule.
- #2416 Fixed false positives for extra comma in vue/v-for-delimiter-stylerule.
⚙️ Updates
- #2417 Improve performance by removing unnecessary second filter.
Full Changelog: v9.22.0...v9.23.0
v9.22.0
✨ Enhancements
- #2390 Improved autofix for vue/no-deprecated-slot-attributeto wrap<template v-slot>.
- #2393 Added support for type assertions and non-null expressions in vue/valid-v-modelrule.
🐛 Bug Fixes
- #2389 Fixed wrong autofix for {{'<'}}invue/no-useless-mustachesrule.
- #2394 Fixed false negative for conditional expressions in vue/no-setup-props-reactivity-lossrule.
- #2397 Fixed vue/require-explicit-slotsrule to recognize slot names enclosed in quotes.
- #2408 Fixed wrong autofix for v-bindwith spaces invue/no-useless-v-bindrule.
Full Changelog: v9.21.1...v9.22.0
v9.21.1
🐛 Bug Fixes
- #2388 Fixed error in render functions in vue/no-unused-emit-declarationsrule.
- #2386 Fixed false positives/negatives for multiple defineModelcalls invue/define-macros-orderrule.
Full Changelog: v9.21.0...v9.21.1
v9.21.0
✨ Enhancements
- #2325 Added vue/require-explicit-slotsrule that requires slots to be explicitly defined withdefineSlotsorslotscomponent option.
- #2367 Added vue/no-restricted-v-onrule that disallows specific arguments inv-on.
- #2381 Added sameNameShorthandoption tovue/v-bind-stylerule.
⚙️ Updates
- #2379 Upgraded vue-eslint-parserto v9.4.2.- Fixed false positive with camelCase v-bindsame-name shorthand invue/no-unused-property.
 
- Fixed false positive with camelCase 
Full Changelog: v9.20.1...v9.21.0
v9.20.1
🐛 Bug Fixes
- #2364 Fixed false positives for defineModelinvue/no-undef-propertiesrule.
Full Changelog: v9.20.0...v9.20.1
v9.20.0
✨ Enhancements
Added Support for Vue 3.4 🏀
- #2357 Added support for v-bindsame-name shorthand.
- #2360 Added support for defineModelmacro.
New Rules
- #2110 Added vue/enforce-style-attributerule that enforces or forbids the use of thescopedandmoduleattributes in SFC top level<style>tags.
New Options
- #2323 Added allowlist option tovue/no-template-shadowrule.
- #2339 Added allowlist option tovue/no-v-text-v-html-on-componentrule.
- #2346 Added selfClosingTagoption tovue/html-closing-bracket-newlinerule.
- #2349 Added defineExposeLastoption tovue/define-macros-orderrule.
Improvements
- #2345 Added support for $props.<prop>tovue/no-unused-propertiesrule.
- #2276 Added support for Vuex to vue/no-unused-propertiesrule.
🐛 Bug Fixes
- #2340 Fixed vue/no-unused-emit-declarationsrule to detect emits in template with<script setup>.
- #2350 Fixed vue/require-explicit-emitsrule to detect emits in template with<script setup>.
Full Changelog: v9.19.2...v9.20.0
v9.19.2
🐛 Bug Fixes
- #2336 Fixed crash for TSFunctionType with type-literaloption invue/define-emits-declarationrule
Full Changelog: v9.19.1...v9.19.2
v9.19.1
v9.19.0
✨ Enhancements
New Rules
- #2312 Added vue/no-unused-emit-declarationsrule that disallows unused emit declarations.
- #2280 Added vue/v-if-else-keyrule that requires key attribute for conditionally rendered repeated components.
New Options
- #2315 Added type-literaloption invue/define-emits-declarationrule.
- #2297 Added externalIgnoresoption invue/singleline-html-element-content-newlinerule.
- #2314 Added ignoreoption invue/no-deprecated-slot-attributerule.
⚙️ Changes
- #2320 Changed vue/v-on-event-hyphenationrule to be auto-fixable by default in Vue 3.
- #2330 Changed stylistic rules for expressions in <template>to extend from ESLint Stylistic.
⚙️ Updates
- #2327 Fixed avoid calling typeParametersgetter.
- #2331 Improved compatibility with planned changes in ESLint v9.
Full Changelog: v9.18.1...v9.19.0
v9.18.1
🐛 Bug Fixes
- #2303 Fixed false positives for <slot>,:key, andappearattribute invue/require-toggle-inside-transitionrule.
Full Changelog: v9.18.0...v9.18.1