Skip to content

Commit

Permalink
7.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Feb 15, 2021
1 parent 43f76df commit 4ae9178
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions docs/rules/html-button-has-type.md
Expand Up @@ -3,13 +3,12 @@ pageClass: rule-details
sidebarDepth: 0
title: vue/html-button-has-type
description: disallow usage of button without an explicit type attribute
since: v7.6.0
---
# vue/html-button-has-type

> disallow usage of button without an explicit type attribute
- :exclamation: <badge text="This rule has not been released yet." vertical="middle" type="error"> ***This rule has not been released yet.*** </badge>

Forgetting the type attribute on a button defaults it to being a submit type.
This is nearly never what is intended, especially in your average one-page application.

Expand Down Expand Up @@ -57,6 +56,10 @@ This rule aims to warn if no type or an invalid type is used on a button type at
- `true` (default) ... allow value `reset`.
- `false"` ... disallow value `reset`.

## :rocket: Version

This rule was introduced in eslint-plugin-vue v7.6.0

## :mag: Implementation

- [Rule source](https://github.com/vuejs/eslint-plugin-vue/blob/master/lib/rules/html-button-has-type.js)
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-vue",
"version": "7.5.0",
"version": "7.6.0",
"description": "Official ESLint plugin for Vue.js",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 4ae9178

Please sign in to comment.