Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4ae9178

Browse files
7.6.0
1 parent 43f76df commit 4ae9178

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎docs/rules/html-button-has-type.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ pageClass: rule-details
33
sidebarDepth: 0
44
title: vue/html-button-has-type
55
description: 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-
1312
Forgetting the type attribute on a button defaults it to being a submit type.
1413
This 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)

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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": {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /