Releases: vuejs/eslint-plugin-vue
Releases Β· vuejs/eslint-plugin-vue
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
v9.14.0
β¨ Enhancements
- #2178 Added support for
defineOptions
tovue/no-duplicate-attr-inheritance
rule. - #2185 Added support for
<script setup>
tovue/no-dupe-keys
rule.
π Bug Fixes
- #2177 Added
additionalProperties
tovue/no-deprecated-router-link-tag-prop
schema. - #2186 Fixed false positive for unknown prop in
vue/no-undef-properties
rule.
Full Changelog: v9.13.0...v9.14.0
v9.13.0
Support for Vue 3.3 "Rurouni Kenshin" π
see https://blog.vuejs.org/posts/vue-3-3
β¨ Enhancements
New Rules
- #2167 Added
vue/prefer-define-options
rule that enforces use ofdefineOptions
instead of default export. - #2165 Added
vue/valid-define-options
rule that checks whetherdefineOptions
compiler macro is valid.
Other Changes
- #2154 Added support for
defineOptions
anddefineSlots
tovue/define-macros-order
rule. - #2163 Added support for
defineOptions
anddefineSlots
tovue/no-unsupported-features
rule. - #2152 Added support for new
defineEmits
type syntax tovue/require-explicit-emits
rule. - #2159 Added support for
defineOptions
tovue/component-definition-name-casing
rule. - #2161 Added support for
defineOptions
tovue/match-component-file-name
rule. - #2157 Added support for
defineOptions
tovue/multi-word-component-names
rule. - #2158 Added support for
defineOptions
tovue/no-reserved-component-names
rule. - #2162 Added support for
defineOptions
tovue/no-restricted-component-options
rule. - #2160 Added support for
defineOptions
tovue/order-in-components
rule. - #2164 Added support for
defineOptions
tovue/padding-lines-in-component-definition
rule. - #2134 Added support for imported types in SFC macros.
βοΈ Updates
- #2170 Upgraded to vue-eslint-parser v9.3 that supports Vue 3.3.
Full Changelog: v9.12.0...v9.13.0
v9.12.0
β¨ Enhancements
- #2135 Added
shallowOnly
option tovue/no-mutating-props
rule. - #2138 Added
vue/no-root-v-if
rule that disallows thev-if
directive on the root element.
βοΈ Updates
Full Changelog: v9.11.1...v9.12.0