File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,12 @@ pageClass: rule-details
3
3
sidebarDepth : 0
4
4
title : vue/html-button-has-type
5
5
description : disallow usage of button without an explicit type attribute
6
+ since : v7.6.0
6
7
---
7
8
# vue/html-button-has-type
8
9
9
10
> disallow usage of button without an explicit type attribute
10
11
11
- - :exclamation : <badge text =" This rule has not been released yet. " vertical =" middle " type =" error " > *** This rule has not been released yet.*** </badge >
12
-
13
12
Forgetting the type attribute on a button defaults it to being a submit type.
14
13
This is nearly never what is intended, especially in your average one-page application.
15
14
@@ -57,6 +56,10 @@ This rule aims to warn if no type or an invalid type is used on a button type at
57
56
- ` true ` (default) ... allow value ` reset ` .
58
57
- ` false" ` ... disallow value ` reset ` .
59
58
59
+ ## :rocket : Version
60
+
61
+ This rule was introduced in eslint-plugin-vue v7.6.0
62
+
60
63
## :mag : Implementation
61
64
62
65
- [ 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 1
1
{
2
2
"name" : " eslint-plugin-vue" ,
3
- "version" : " 7.5 .0" ,
3
+ "version" : " 7.6 .0" ,
4
4
"description" : " Official ESLint plugin for Vue.js" ,
5
5
"main" : " lib/index.js" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments