Releases: vuejs/eslint-plugin-vue
Releases · vuejs/eslint-plugin-vue
v7.0.0-alpha.3
💥 Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/vue3-essentialconfig. - Changed
plugin:vue/vue3-strongly-recommendedconfig. - Changed
plugin:vue/vue3-recommendedconfig.
- Changed
- #1120 Added the support of descriptions in directive comments.
- #1120 Added the support for block-level directive comments.
✨ Enhancements
Core:
- #1120 Added the support of descriptions in directive HTML comments.
- #1120 Added the support for block-level directive HTML comments.
New Rules:
- #1114 Added
vue/no-unregistered-componentsrule that disallow using components that are not registered inside templates. - #1124 Added
vue/require-explicit-emitsrule that reports event triggers not declared with the emits option. RFC0030 - #1129 Added
vue/return-in-emits-validatorrule enforces that a return statement is present in emits validators. RFC0030 - #1130 Added
vue/no-deprecated-v-on-native-modifierrule that reports use of deprecated.nativemodifier onv-ondirective. RFC0031 - #1133 Added
vue/no-deprecated-dollar-listeners-apirule that reports use of deprecated$listeners. RFC0031 - #755 Added
vue/html-comment-indentrule that enforce consistent indentation in HTML comments. - #755 Added
vue/html-comment-content-newlinerule that enforce unified line brake in HTML comments. - #755 Added
vue/html-comment-content-spacingrule that enforce unified spacing in HTML comments.
🐛 Bug Fixes
- #1125 Fixed wrong autofix in
vue/no-deprecated-v-on-number-modifiersrule.
All commits: v7.0.0-alpha.2 -> v7.0.0-alpha.3
v7.0.0-alpha.2
💥 Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/vue3-essentialconfig. - Changed
plugin:vue/vue3-strongly-recommendedconfig. - Changed
plugin:vue/vue3-recommendedconfig.
- Changed
- #1105 Renamed
vue/require-v-if-inside-transitionrule tovue/require-toggle-inside-transition.
✨ Enhancements
Core:
- #1077 Supports ESLint v7.x.
New Rules:
- #1117 Added
vue/no-deprecated-html-element-isrule that reports deprecated the is attribute on HTML elements (removed in Vue.js v3.0.0+). RFC0027 - #1118 Added
vue/no-deprecated-vue-config-keycodesrule that reports use of deprecated Vue.config.keyCodes (removed in Vue.js 3.0.0+). RFC0014 - #1119 Added
vue/no-deprecated-functional-templaterule that reports deprecated the functional template (removed in Vue.js 3.0.0+). RFC0007
Other changes in Rules:
- #1105 Renamed
vue/require-v-if-inside-transitionrule tovue/require-toggle-inside-transition. - #1116 Added
disallowVueBuiltInComponentsanddisallowVue3BuiltInComponentsoption that reports Vue built-in component names to thevue/no-reserved-component-namesrule.
All commits: v7.0.0-alpha.1 -> v7.0.0-alpha.2
v7.0.0-alpha.1
💥 Breaking Changes
- Updated presets configs.
- Changed
plugin:vue/vue3-essentialconfig - Changed
plugin:vue/vue3-strongly-recommendedconfig - Changed
plugin:vue/vue3-recommendedconfig- Added
vue/no-deprecated-v-on-number-modifiersrule - Added
vue/no-deprecated-data-object-declarationrule - Added
vue/no-deprecated-events-apirule - Added
vue/no-watch-after-awaitrule - Added
vue/require-v-if-inside-transitionrule - Added
vue/no-deprecated-inline-templaterule
- 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-modifiersrule that reports use of deprecatedKeyboardEvent.keyCodemodifier onv-ondirective. RFC0014 - #1083 Added
vue/no-deprecated-data-object-declarationrule that reports use of deprecated object declaration ondataproperty. RFC0019 - #1086 Added
vue/no-template-no-target-blankrule that disallows usingtarget="_blank"attribute withoutrel="noopener noreferrer"to avoid a security vulnerability. - #1097 Added
vue/no-deprecated-events-apirule that reports use of deprecated$on,$offand$onceapi (removed in Vue.js v3.0.0+). RFC0020 - #1068 Added
vue/no-watch-after-awaitrule that reports thewatch()afterawaitexpression. RFC0013 - #1099 Added
vue/require-v-if-inside-transitionrule that reports elements inside<transition>that do not control the display. RFC0017 - #1100 Add
vue/no-deprecated-inline-templaterule that reports deprecatedinline-templateattributes (removed in Vue.js v3.0.0+) RFC0016
Other changes in Rules:
- #1082 Changed
vue/no-dupe-key,vue/no-reserved-keysrule 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/essentialconfig- Added
vue/valid-v-bind-syncrule - Added
vue/valid-v-slotrule - Added
vue/no-custom-modifiers-on-v-modelrule - Added
vue/no-multiple-template-rootrule - Added
vue/no-v-model-argumentrule
- Added
- Changed
plugin:vue/strongly-recommendedconfig- Added
vue/component-definition-name-casingrule - Added
vue/v-slot-stylerule - Removed
vue/name-property-casingrule
- Added
- Changed
plugin:vue/recommendedconfig- Added
vue/component-tags-orderrule
- Added
- Changed
- #1036 Changed
vue/name-property-casingrule to be deprecate. - #1038 Changed to remove a single root element check from
vue/valid-template-rootrule. - #1039 Changed
vue/valid-v-modelrule to allowv-modelargument. RFC0011 - #1039 Changed
vue/valid-v-modelrule to allowv-modelcustom 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-essentialconfig - #1061 Added
plugin:vue/vue3-strongly-recommendedconfig - #1061 Added
plugin:vue/vue3-recommendedconfig
New Rules:
- #1038 Added
vue/no-multiple-template-rootrule 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-argumentrule that does not allow argument to v-model. - #1039 Added
vue/no-deprecated-v-bind-syncrule that reports when deprecated.syncmodifier is used onv-binddirective. RFC0005 - #1039 Added
vue/no-custom-modifiers-on-v-modelrule that reports whenv-modelis used with custom modifiers on Vue Component. - #1043 Added
vue/no-deprecated-filterrule that reports usage of filters syntax removed in Vue.js 3.0.0+. RFC0015 - #1065 Added
vue/no-ref-as-operandrule that reports cases where a ref is used incorrectly as an operand. RFC0013 - #1066 Added
vue/no-setup-props-destructurerule that reports the destructuring of props passed to setup causing the value to lose reactivity. RFC0013 - #1067 Added
vue/no-lifecycle-after-awaitrule that reports the lifecycle hooks after await expression. RFC0013
New Options:
- #1070 Added
ignorePatternoption tovue/no-unsed-varsrule 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-keysrule that thesort-keysrule which is compatible with order-in-components. - #1021 Added
vue/padding-line-between-blocksrule requires or disallows blank lines between the given 2 blocks.
New Options:
- #1022 Added
alphabeticaloption tovue/attributes-orderrule to alphabetical ordering within groupings. - #1031 Added
avoidEscapeoption tovue/html-quotesrule.
🐛 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-orderrule that enforce the order of static class names. - #945 Added
vue/require-name-propertyrule that require a name property in Vue components. - #757 Added
vue/no-reserved-component-namesrule that disallow the use of reserved names in component definitions. - #763 Added
vue/component-tags-orderrule that enforce the order of component top-level elements. - #646 Added
vue/component-definition-name-casingrule that enforce specific casing for component definition name. - #647 Added
vue/valid-v-bind-syncrule that checks whether every.syncmodifier onv-binddirectives is valid. - #839 Added
vue/no-deprecated-slot-attributerule that disallowsslotattribute. - #840 Added
vue/no-deprecated-slot-scope-attributerule that disallowsslot-scopeattribute. - #841 Added
vue/no-unsupported-featuresrule that disallow unsupported Vue.js syntax on the specified version. - #843 Added
vue/no-static-inline-stylesrule that disallow static inlinestyleattributes. - #959 Added
vue/max-lenrule that enforces a maximum line length. - #964 Added
vue/no-irregular-whitespacerule that disallow irregular whitespace.
🐛 Bug Fixes
All commits: v6.0.2 -> v6.1.0