Releases: vuejs/eslint-plugin-vue
Releases Β· vuejs/eslint-plugin-vue
v9.32.0
β¨ Enhancements
- #2598 Added
checkMultiRootNodes
option tovue/no-duplicate-attr-inheritance
rule and changed to ignore multi-root components by default. - #2610 Added
ignoreElementNamespaces
option tovue/no-v-text-v-html-on-component
rule. - #2609 Added
ignoreTags
option tovue/attribute-hyphenation
rule andvue/v-on-event-hyphenation
rule. - #2611 Added
vue/restricted-component-names
rule that enforces using only specific component names. - #2620 Added
vue/slot-name-casing
rule that enforces specific casing for slot names. - #2617 Added support for type references in
vue/require-explicit-slots
rule. - #2608 Added support for
shallowRef
invue/prefer-use-template-ref
rule.
π Bug Fixes
- #2612 Changed
vue/prefer-use-template-ref
rule to only check root-level variables.
Full Changelog: v9.31.0...v9.32.0
v9.31.0
β¨ Enhancements
- #2594 Added
caseSensitive
option tovue/no-reserved-component-names
rule. - #2554 Added
vue/prefer-use-template-ref
rule that requires usinguseTemplateRef()
instead ofref()
for template refs. - #2595 Made
vue/no-empty-component-block
rule auto-fixable.
π Bug Fixes
- #2591 Fixed false positives for
v-bind:name
invue/require-explicit-slots
rule.
βοΈ Updates
- #2593 Updated
vue/define-macros-order
rule to skip TypeScriptdeclare
statements.
Full Changelog: v9.30.0...v9.31.0
v9.30.0
π Bug Fixes
- #2585 Fixed
vue/custom-event-name-casing
rule to checkdefineEmits()
variable and$emit()
in<template>
. - #2586 Fixed false negatives and false positives in
vue/require-valid-default-prop
rule.
Full Changelog: v9.29.1...v9.30.0
v9.29.1
v9.29.0
β¨ Enhancements
New Rules
- #2540 Added
vue/no-deprecated-delete-set
rule that disallows using deprecated$delete
and$set
.
Others
- #2513 Added support for Vuex and Pinia to
vue/no-undef-properties
rule. - #2541 Added support for Vue 3.5's
useTemplateRef()
tovue/no-unused-refs
rule. - Added support for Vue 3.5's props destructure to various rules:
- #2551 to
vue/require-valid-default-prop
rule. - #2552 to
vue/require-default-prop
rule. - #2553 to
vue/no-boolean-default
rule. - #2560 to
vue/no-required-prop-with-default
rule. - #2562 to
vue/no-restricted-props
rule. - #2550 to
vue/no-setup-props-reactivity-loss
rule.
- #2551 to
βοΈ Updates
v9.28.0
β¨ Enhancements
New Rules
- #2430 Added
vue/max-props
rule that enforces the maximum number of props in Vue components. - #2494 Added
vue/require-default-export
rule that requires components to be thedefault
export. - #2525 Added
vue/max-template-depth
rule that enforces the maximum depth of<template>
.
New Features
- #2501 Allow specifying custom macros in
vue/define-macros-order
rule. - #2537 Added
additionalDirectives
option tovue/require-toggle-inside-transition
rule.
π Bug Fixes
- #2348 Fixed false positives/negatives for siblings in
vue/v-if-else-key
rule. - #2505 Fixed false positives for JavaScript components in
vue/require-typed-object-prop
rule. - #2511 Fixed false negatives for
v-model
directive invue/attribute-hyphenation
rule. - #2533 Fixed auto-fix for
vue/attribute-hyphenation
rule to skipv-bind.sync
. - #2529 Fixed auto-fix for
vue/no-deprecated-slot-attribute
rule to handlev-for
with dynamicslot
. - #2530 Fixed auto-fix for
vue/no-deprecated-slot-attribute
rule to skip dynamic components.
βοΈ Updates
- #2498 Renamed flat config names for inspector.
Full Changelog: v9.27.0...v9.28.0
v9.27.0
β¨ Enhancements
- #2487 Improved
vue/require-toggle-inside-transition
rule to understandv-bind:appear
.
π Bug Fixes
- #2489 Fixed false negatives for elements inside template literals in
vue/no-setup-props-reactivity-loss
rule.
βοΈ Updates
- #2476 Added name property to flat configs.
- #2488 Upgraded vue-eslint-parser to v9.4.3.
Full Changelog: v9.26.0...v9.27.0
v9.26.0
β¨ Enhancements
- #2457 Improved some rules to understand MathML elements:
vue/component-name-in-template-casing
vue/no-deprecated-html-element-is
vue/no-undef-components
vue/no-unused-components
vue/script-setup-uses-vars
(note that this rule is deprecated!)
π Bug Fixes
- #2456 Fixed
vue/require-default-prop
rule to ignore the spread and continue checking. - #2427 Fixed
vue/require-typed-ref
rule to ignore<script>
blocks withoutlang="ts"
in.vue
files.
Full Changelog: v9.25.0...v9.26.0
v9.25.0
β¨ Enhancements
- #2441 Added support for Pinia methods to
vue/no-unused-properties
rule.
π Bug Fixes
- #2438 Improved
vue/no-use-computed-property-like-method
rule to understand logical expressions. - #2435 Fixed false negatives for props in template in
vue/no-unused-properties
rule.
Full Changelog: v9.24.1...v9.25.0