Releases: vuejs/eslint-plugin-vue
Releases Β· vuejs/eslint-plugin-vue
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
v9.18.0
π Bug Fixes
- #2275 Fixed auto-fix of
vue/prefer-define-optionsrule to insertdefineOptionsafter import declaration. - #2293 Fixed false negatives for whitespace in
vue/require-toggle-inside-transitionrule. - #2301 Fixed
vue/component-name-in-template-casingto ignore elements in vue template syntax.
βοΈ Updates
- #2292 Fixed to replace
typeParameterswithtypeArguments.
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-eslintv6 invue/script-indentrule
Full Changelog: v9.16.0...v9.16.1
v9.16.0
β¨ Enhancements
- #2224 Added
vue/no-use-v-else-with-v-forrule that disallows usingv-else-if/v-elseon the same element asv-for. - #1983 Added
vue/require-typed-object-proprule that enforces adding type declarations to object props. - #2238 Added
vue/no-deprecated-model-definitionrule that disallows themodeldefinition, which is deprecated in Vue 3.
π Bug Fixes
- #2229 Don't auto fix in
vue/attribute-hyphenationrule when it would break props.
βοΈ Updates
- #2223 Ignore blocks in
vue/html-self-closingrule. - #2244 Improved the
vue/no-setup-props-destructurerule (expect more lint issues!). - #2222 Renamed
vue/component-tags-ordertovue/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-consolerule false positives outside the<template>block.
Full Changelog: v9.15.0...v9.15.1
v9.15.0
β¨ Enhancements
- #2194 Added
vue/no-consolerule that applies the coreno-consolerule to expressions in<template>. - #2198 Added
vue/require-macro-variable-namerule that requires a certain macro variable name. - #2204 Added
vue/require-typed-refrule that requiresrefandshallowReffunctions to be strongly typed. - #2210 Added
vue/no-restricted-component-namesrule that disallows specific component names. - #2213 Added
vue/max-lines-per-blockrule 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
toRefprops invue/no-dupe-keysrule.
Full Changelog: v9.14.0...v9.14.1
v9.14.0
β¨ Enhancements
- #2178 Added support for
defineOptionstovue/no-duplicate-attr-inheritancerule. - #2185 Added support for
<script setup>tovue/no-dupe-keysrule.
π Bug Fixes
- #2177 Added
additionalPropertiestovue/no-deprecated-router-link-tag-propschema. - #2186 Fixed false positive for unknown prop in
vue/no-undef-propertiesrule.
Full Changelog: v9.13.0...v9.14.0