Releases: vuejs/eslint-plugin-vue
Releases · vuejs/eslint-plugin-vue
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
v9.15.0
✨ Enhancements
- #2194 Added
vue/no-console
rule that applies the coreno-console
rule to expressions in<template>
. - #2198 Added
vue/require-macro-variable-name
rule that requires a certain macro variable name. - #2204 Added
vue/require-typed-ref
rule that requiresref
andshallowRef
functions to be strongly typed. - #2210 Added
vue/no-restricted-component-names
rule that disallows specific component names. - #2213 Added
vue/max-lines-per-block
rule that enforces a maximum number of lines in Vue SFC blocks.
Full Changelog: v9.14.1...v9.15.0
v9.14.1
🐛 Bug Fixes
- #2189 Fixed false positives for
toRef
props invue/no-dupe-keys
rule.
Full Changelog: v9.14.0...v9.14.1