Releases: vuejs/eslint-plugin-vue
Releases Β· vuejs/eslint-plugin-vue
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
v9.18.0
π Bug Fixes
- #2275 Fixed auto-fix of
vue/prefer-define-options
rule to insertdefineOptions
after import declaration. - #2293 Fixed false negatives for whitespace in
vue/require-toggle-inside-transition
rule. - #2301 Fixed
vue/component-name-in-template-casing
to ignore elements in vue template syntax.
βοΈ Updates
- #2292 Fixed to replace
typeParameters
withtypeArguments
.
Full Changelog: v9.17.0...v9.18.0
v9.17.0
β¨ Enhancements
- #2258 Added support for template literals in
vue/no-deprecated-model-definition
.
βοΈ Updates
- #2260 Improved error message for
vue/no-dupe-keys
. - #2268 Renamed
vue/no-setup-props-destructure
(now deprecated) tovue/no-setup-props-reactivity-loss
, and removed both rules from any preset configs. - #2269 Renamed
vue/no-ref-object-destructure
(now deprecated) tovue/no-ref-object-reactivity-loss
.
Full Changelog: v9.16.1...v9.17.0
v9.16.1
π Bug Fixes
- #2256 Fixed incompatibility with
@typescript-eslint
v6 invue/script-indent
rule
Full Changelog: v9.16.0...v9.16.1
v9.16.0
β¨ Enhancements
- #2224 Added
vue/no-use-v-else-with-v-for
rule that disallows usingv-else-if
/v-else
on the same element asv-for
. - #1983 Added
vue/require-typed-object-prop
rule that enforces adding type declarations to object props. - #2238 Added
vue/no-deprecated-model-definition
rule that disallows themodel
definition, which is deprecated in Vue 3.
π Bug Fixes
- #2229 Don't auto fix in
vue/attribute-hyphenation
rule when it would break props.
βοΈ Updates
- #2223 Ignore blocks in
vue/html-self-closing
rule. - #2244 Improved the
vue/no-setup-props-destructure
rule (expect more lint issues!). - #2222 Renamed
vue/component-tags-order
tovue/block-order
(the old rule is still included in the preset configs, but it is now deprecated).
Full Changelog: v9.15.1...v9.16.0
v9.15.1
π Bug Fixes
- #2221 Fixed
vue/no-console
rule false positives outside the<template>
block.
Full Changelog: v9.15.0...v9.15.1