Releases: vuejs/eslint-plugin-vue
Releases · vuejs/eslint-plugin-vue
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
v9.24.1
v9.24.0
✨ Enhancements
- #2407, #2436 Added support for the flat config format.
🐛 Bug Fixes
- #2425 Fixed error for empty value in
vue/no-restricted-class
rule
Full Changelog: v9.23.0...v9.24.0