Releases: vuejs/eslint-plugin-vue
Releases Β· vuejs/eslint-plugin-vue
v7.0.0-alpha.1
π₯ Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/vue3-essential
config - Changed
plugin:vue/vue3-strongly-recommended
config - Changed
plugin:vue/vue3-recommended
config- Added
vue/no-deprecated-v-on-number-modifiers
rule - Added
vue/no-deprecated-data-object-declaration
rule - Added
vue/no-deprecated-events-api
rule - Added
vue/no-watch-after-await
rule - Added
vue/require-v-if-inside-transition
rule - Added
vue/no-deprecated-inline-template
rule
- Added
- Changed
- #1088 Updated the rules of this plugin to detect Vue.js 3.x components.
β¨ Enhancements
Core:
- #1088 Updated the rules of this plugin to detect Vue.js 3.x components.
New Rules:
- #1079 Added
vue/no-deprecated-v-on-number-modifiers
rule that reports use of deprecatedKeyboardEvent.keyCode
modifier onv-on
directive. RFC0014 - #1083 Added
vue/no-deprecated-data-object-declaration
rule that reports use of deprecated object declaration ondata
property. RFC0019 - #1086 Added
vue/no-template-no-target-blank
rule that disallows usingtarget="_blank"
attribute withoutrel="noopener noreferrer"
to avoid a security vulnerability. - #1097 Added
vue/no-deprecated-events-api
rule that reports use of deprecated$on
,$off
and$once
api (removed in Vue.js v3.0.0+). RFC0020 - #1068 Added
vue/no-watch-after-await
rule that reports thewatch()
afterawait
expression. RFC0013 - #1099 Added
vue/require-v-if-inside-transition
rule that reports elements inside<transition>
that do not control the display. RFC0017 - #1100 Add
vue/no-deprecated-inline-template
rule that reports deprecatedinline-template
attributes (removed in Vue.js v3.0.0+) RFC0016
Other changes in Rules:
- #1082 Changed
vue/no-dupe-key
,vue/no-reserved-keys
rule to handlesetup
.
All commits: v7.0.0-alpha.0 -> v7.0.0-alpha.1
v7.0.0-alpha.0
π₯ Breaking Changes
- #1036 Updated presets configs.
- Changed
plugin:vue/essential
config- Added
vue/valid-v-bind-sync
rule - Added
vue/valid-v-slot
rule - Added
vue/no-custom-modifiers-on-v-model
rule - Added
vue/no-multiple-template-root
rule - Added
vue/no-v-model-argument
rule
- Added
- Changed
plugin:vue/strongly-recommended
config- Added
vue/component-definition-name-casing
rule - Added
vue/v-slot-style
rule - Removed
vue/name-property-casing
rule
- Added
- Changed
plugin:vue/recommended
config- Added
vue/component-tags-order
rule
- Added
- Changed
- #1036 Changed
vue/name-property-casing
rule to be deprecate. - #1038 Changed to remove a single root element check from
vue/valid-template-root
rule. - #1039 Changed
vue/valid-v-model
rule to allowv-model
argument. RFC0011 - #1039 Changed
vue/valid-v-model
rule to allowv-model
custom modifiers. RFC0011
β¨ Enhancements
Core:
- #1038, #1039, 1043, #1061, #1065, #1066, #1067 and #1073 Support for Vue.js 3.x.
- #1073 Updated the rules of this plugin to detect Vue.js 3.x components.
- #1064 Updated the rules of this plugin to be able to analyze the arrow function component options.
New Rulesets:
- #1061 Added
plugin:vue/vue3-essential
config - #1061 Added
plugin:vue/vue3-strongly-recommended
config - #1061 Added
plugin:vue/vue3-recommended
config
New Rules:
- #1038 Added
vue/no-multiple-template-root
rule to template to check for a single root element. This rule has been separated from the previousvue/valid-template-root
. - #1039 Added
vue/no-v-model-argument
rule that does not allow argument to v-model. - #1039 Added
vue/no-deprecated-v-bind-sync
rule that reports when deprecated.sync
modifier is used onv-bind
directive. RFC0005 - #1039 Added
vue/no-custom-modifiers-on-v-model
rule that reports whenv-model
is used with custom modifiers on Vue Component. - #1043 Added
vue/no-deprecated-filter
rule that reports usage of filters syntax removed in Vue.js 3.0.0+. RFC0015 - #1065 Added
vue/no-ref-as-operand
rule that reports cases where a ref is used incorrectly as an operand. RFC0013 - #1066 Added
vue/no-setup-props-destructure
rule that reports the destructuring of props passed to setup causing the value to lose reactivity. RFC0013 - #1067 Added
vue/no-lifecycle-after-await
rule that reports the lifecycle hooks after await expression. RFC0013
New Options:
- #1070 Added
ignorePattern
option tovue/no-unsed-vars
rule to disables reporting of variable names that match the regular expression.
All commits: v6.2.2 -> v7.0.0-alpha.0
v6.2.2
v6.2.1
v6.2.0
β¨ Enhancements
New Rules:
- #997 Added
vue/sort-keys
rule that thesort-keys
rule which is compatible with order-in-components. - #1021 Added
vue/padding-line-between-blocks
rule requires or disallows blank lines between the given 2 blocks.
New Options:
- #1022 Added
alphabetical
option tovue/attributes-order
rule to alphabetical ordering within groupings. - #1031 Added
avoidEscape
option tovue/html-quotes
rule.
π Bug Fixes
- #1027 Fixed false positives in
vue/no-side-effects-in-computed-properties
- #1046 Fixed an error when using spread elements in
vue/require-default-prop
.
All commits: v6.1.2 -> v6.2.0
v6.1.2
v6.1.1
v6.1.0
β¨ Enhancements
Core:
- #985 Upgrade vue-eslint-parser to 7.0.0
New Rules:
- #886 Added
vue/static-class-names-order
rule that enforce the order of static class names. - #945 Added
vue/require-name-property
rule that require a name property in Vue components. - #757 Added
vue/no-reserved-component-names
rule that disallow the use of reserved names in component definitions. - #763 Added
vue/component-tags-order
rule that enforce the order of component top-level elements. - #646 Added
vue/component-definition-name-casing
rule that enforce specific casing for component definition name. - #647 Added
vue/valid-v-bind-sync
rule that checks whether every.sync
modifier onv-bind
directives is valid. - #839 Added
vue/no-deprecated-slot-attribute
rule that disallowsslot
attribute. - #840 Added
vue/no-deprecated-slot-scope-attribute
rule that disallowsslot-scope
attribute. - #841 Added
vue/no-unsupported-features
rule that disallow unsupported Vue.js syntax on the specified version. - #843 Added
vue/no-static-inline-styles
rule that disallow static inlinestyle
attributes. - #959 Added
vue/max-len
rule that enforces a maximum line length. - #964 Added
vue/no-irregular-whitespace
rule that disallow irregular whitespace.
π Bug Fixes
All commits: v6.0.2 -> v6.1.0
v6.0.2
π Bug Fixes
- #962 Fixed false positives inside the ternary operator in
no-async-in-computed-properties
. - #963 Fixed an issue that caused an error when extra commas were included in
require-prop-type-constructor
. - #1009 Fixed an issue that code was broken by autofix of
require-prop-type-constructor
. - #1010 Fixed broken links in messages.
All commits: v6.0.1 -> v6.0.2