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-components
when there may be side effects.
π Bug Fixes
- #2410 Fixed false positives for non-kebab-case variables in
vue/v-bind-style
rule. - #2416 Fixed false positives for extra comma in
vue/v-for-delimiter-style
rule.
βοΈ 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-attribute
to wrap<template v-slot>
. - #2393 Added support for type assertions and non-null expressions in
vue/valid-v-model
rule.
π Bug Fixes
- #2389 Fixed wrong autofix for
{{'<'}}
invue/no-useless-mustaches
rule. - #2394 Fixed false negative for conditional expressions in
vue/no-setup-props-reactivity-loss
rule. - #2397 Fixed
vue/require-explicit-slots
rule to recognize slot names enclosed in quotes. - #2408 Fixed wrong autofix for
v-bind
with spaces invue/no-useless-v-bind
rule.
Full Changelog: v9.21.1...v9.22.0
v9.21.1
π Bug Fixes
- #2388 Fixed error in render functions in
vue/no-unused-emit-declarations
rule. - #2386 Fixed false positives/negatives for multiple
defineModel
calls invue/define-macros-order
rule.
Full Changelog: v9.21.0...v9.21.1
v9.21.0
β¨ Enhancements
- #2325 Added
vue/require-explicit-slots
rule that requires slots to be explicitly defined withdefineSlots
orslots
component option. - #2367 Added
vue/no-restricted-v-on
rule that disallows specific arguments inv-on
. - #2381 Added
sameNameShorthand
option tovue/v-bind-style
rule.
βοΈ Updates
- #2379 Upgraded
vue-eslint-parser
to v9.4.2.- Fixed false positive with camelCase
v-bind
same-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
defineModel
invue/no-undef-properties
rule.
Full Changelog: v9.20.0...v9.20.1
v9.20.0
β¨ Enhancements
Added Support for Vue 3.4 π
- #2357 Added support for
v-bind
same-name shorthand. - #2360 Added support for
defineModel
macro.
New Rules
- #2110 Added
vue/enforce-style-attribute
rule that enforces or forbids the use of thescoped
andmodule
attributes in SFC top level<style>
tags.
New Options
- #2323 Added
allow
list option tovue/no-template-shadow
rule. - #2339 Added
allow
list option tovue/no-v-text-v-html-on-component
rule. - #2346 Added
selfClosingTag
option tovue/html-closing-bracket-newline
rule. - #2349 Added
defineExposeLast
option tovue/define-macros-order
rule.
Improvements
- #2345 Added support for
$props.<prop>
tovue/no-unused-properties
rule. - #2276 Added support for Vuex to
vue/no-unused-properties
rule.
π Bug Fixes
- #2340 Fixed
vue/no-unused-emit-declarations
rule to detect emits in template with<script setup>
. - #2350 Fixed
vue/require-explicit-emits
rule 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-literal
option invue/define-emits-declaration
rule
Full Changelog: v9.19.1...v9.19.2
v9.19.1
v9.19.0
β¨ Enhancements
New Rules
- #2312 Added
vue/no-unused-emit-declarations
rule that disallows unused emit declarations. - #2280 Added
vue/v-if-else-key
rule that requires key attribute for conditionally rendered repeated components.
New Options
- #2315 Added
type-literal
option invue/define-emits-declaration
rule. - #2297 Added
externalIgnores
option invue/singleline-html-element-content-newline
rule. - #2314 Added
ignore
option invue/no-deprecated-slot-attribute
rule.
βοΈ Changes
- #2320 Changed
vue/v-on-event-hyphenation
rule 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
typeParameters
getter. - #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
, andappear
attribute invue/require-toggle-inside-transition
rule.
Full Changelog: v9.18.0...v9.18.1