💥 Breaking changes
- #2630 Changed Versioning Policy:
- Allow minor versions of this plugin to enhance the checks for new features in Vue and Nuxt.
- Allow updating deprecated/reserved HTML+SVG element tag names in minor versions, see #2171.
- #2645 Removed deprecated rules (see removed rules).
- #2669 Dropped support for old versions of ESLint and Node.js. New minimum requirements:
- Node.js:
^18.18.0 || ^20.9.0 || >=21.1.0
- ESLint:
^8.57.0 || ^9.0.0
- Node.js:
- Updated configs:
- #2627 Added
vue/block-order
rule to recommended configs (replaces the removedvue/component-tags-order
rule). - #2628 Added
vue/no-deprecated-delete-set
rule to vue3-essential config. - #2629 Added
vue/no-deprecated-model-definition
rule to vue3-essential config. - #2640 Added
vue/no-required-prop-with-default
rule to recommended configs. - #2653 Added
vue/valid-define-options
rule to vue3-essential config. - #2674 Removed globals from configs.
- #2648 Renamed
.eslintrc
configs (to matcheslint.config.js
config names; see PR for comparison). - #2668 Changed
.eslintrc
base config so that vue-eslint-parser is only used for.vue
files.
- #2627 Added
- #2670 Changed vue-eslint-parser to peer dependency.
- #2697 Upgraded vue-eslint-parser to v10.
- This includes vuejs/vue-eslint-parser#195, which should make the parser much faster for large TypeScript projects ⚡
- #2153 Added
slots
andexpose
to the default order ofvue/order-in-components
rule. - #2626 Removed legacy option from
vue/custom-event-name-casing
rule. - #2655 Removed unused
runOutsideVue
option fromvue/sort-keys
rule. - #2652 Removed
setup-compiler-macros
environments.
✨ Enhancements
- #2693 Improved type resolution for generic types and improved the rules for checking type-only macros.
- #2684 Added
vue/no-import-compiler-macros
rule that disallows importing Vue compiler macros. - #2694 Added
except
option tovue/prefer-true-attribute-shorthand
rule. - #2311 Improved the plugin to check for objects declared with Nuxt3
defineNuxtComponent()
.
⚙️ Updates
- #2171 Updated resources.
- #2675 Deprecated Vue 2 only rules. They will be removed in eslint-plugin-vue v11.
Full Changelog: v9.33.0...v10.0.0