File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ pageClass: rule-details
33sidebarDepth : 0
44title : vue/html-button-has-type
55description : disallow usage of button without an explicit type attribute
6+ since : v7.6.0
67---
78# vue/html-button-has-type
89
910> disallow usage of button without an explicit type attribute
1011
11- - :exclamation : <badge text =" This rule has not been released yet. " vertical =" middle " type =" error " > *** This rule has not been released yet.*** </badge >
12-
1312Forgetting the type attribute on a button defaults it to being a submit type.
1413This is nearly never what is intended, especially in your average one-page application.
1514
@@ -57,6 +56,10 @@ This rule aims to warn if no type or an invalid type is used on a button type at
5756 - ` true ` (default) ... allow value ` reset ` .
5857 - ` false" ` ... disallow value ` reset ` .
5958
59+ ## :rocket : Version
60+
61+ This rule was introduced in eslint-plugin-vue v7.6.0
62+
6063## :mag : Implementation
6164
6265- [ Rule source] ( https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/html-button-has-type.js )
Original file line number Diff line number Diff line change 11{
22 "name" : " eslint-plugin-vue" ,
3- "version" : " 7.5 .0" ,
3+ "version" : " 7.6 .0" ,
44 "description" : " Official ESLint plugin for Vue.js" ,
55 "main" : " lib/index.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments