Releases: vuejs/eslint-plugin-vue
Releases Β· vuejs/eslint-plugin-vue
v9.31.0
β¨ Enhancements
- #2594 Added
caseSensitiveoption tovue/no-reserved-component-namesrule. - #2554 Added
vue/prefer-use-template-refrule that requires usinguseTemplateRef()instead ofref()for template refs. - #2595 Made
vue/no-empty-component-blockrule auto-fixable.
π Bug Fixes
- #2591 Fixed false positives for
v-bind:nameinvue/require-explicit-slotsrule.
βοΈ Updates
- #2593 Updated
vue/define-macros-orderrule to skip TypeScriptdeclarestatements.
Full Changelog: v9.30.0...v9.31.0
v9.30.0
π Bug Fixes
- #2585 Fixed
vue/custom-event-name-casingrule to checkdefineEmits()variable and$emit()in<template>. - #2586 Fixed false negatives and false positives in
vue/require-valid-default-proprule.
Full Changelog: v9.29.1...v9.30.0
v9.29.1
v9.29.0
β¨ Enhancements
New Rules
- #2540 Added
vue/no-deprecated-delete-setrule that disallows using deprecated$deleteand$set.
Others
- #2513 Added support for Vuex and Pinia to
vue/no-undef-propertiesrule. - #2541 Added support for Vue 3.5's
useTemplateRef()tovue/no-unused-refsrule. - Added support for Vue 3.5's props destructure to various rules:
- #2551 to
vue/require-valid-default-proprule. - #2552 to
vue/require-default-proprule. - #2553 to
vue/no-boolean-defaultrule. - #2560 to
vue/no-required-prop-with-defaultrule. - #2562 to
vue/no-restricted-propsrule. - #2550 to
vue/no-setup-props-reactivity-lossrule.
- #2551 to
βοΈ Updates
v9.28.0
β¨ Enhancements
New Rules
- #2430 Added
vue/max-propsrule that enforces the maximum number of props in Vue components. - #2494 Added
vue/require-default-exportrule that requires components to be thedefaultexport. - #2525 Added
vue/max-template-depthrule that enforces the maximum depth of<template>.
New Features
- #2501 Allow specifying custom macros in
vue/define-macros-orderrule. - #2537 Added
additionalDirectivesoption tovue/require-toggle-inside-transitionrule.
π Bug Fixes
- #2348 Fixed false positives/negatives for siblings in
vue/v-if-else-keyrule. - #2505 Fixed false positives for JavaScript components in
vue/require-typed-object-proprule. - #2511 Fixed false negatives for
v-modeldirective invue/attribute-hyphenationrule. - #2533 Fixed auto-fix for
vue/attribute-hyphenationrule to skipv-bind.sync. - #2529 Fixed auto-fix for
vue/no-deprecated-slot-attributerule to handlev-forwith dynamicslot. - #2530 Fixed auto-fix for
vue/no-deprecated-slot-attributerule 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-transitionrule to understandv-bind:appear.
π Bug Fixes
- #2489 Fixed false negatives for elements inside template literals in
vue/no-setup-props-reactivity-lossrule.
βοΈ 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-casingvue/no-deprecated-html-element-isvue/no-undef-componentsvue/no-unused-componentsvue/script-setup-uses-vars(note that this rule is deprecated!)
π Bug Fixes
- #2456 Fixed
vue/require-default-proprule to ignore the spread and continue checking. - #2427 Fixed
vue/require-typed-refrule to ignore<script>blocks withoutlang="ts"in.vuefiles.
Full Changelog: v9.25.0...v9.26.0
v9.25.0
β¨ Enhancements
- #2441 Added support for Pinia methods to
vue/no-unused-propertiesrule.
π Bug Fixes
- #2438 Improved
vue/no-use-computed-property-like-methodrule to understand logical expressions. - #2435 Fixed false negatives for props in template in
vue/no-unused-propertiesrule.
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-classrule
Full Changelog: v9.23.0...v9.24.0