diff --git a/CHANGELOG.md b/CHANGELOG.md index 60155e7599..8a3f010d1e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ## Unreleased +### Changed +* [Docs] [`button-has-type`]: clean up phrasing ([#3909][] @hamirmahal) + +[#3909]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3909 + ## [7.37.4] - 2025.01.12 ### Fixed diff --git a/docs/rules/button-has-type.md b/docs/rules/button-has-type.md index 8bd8b6a85b..cf2d5914c8 100644 --- a/docs/rules/button-has-type.md +++ b/docs/rules/button-has-type.md @@ -2,8 +2,8 @@ -The default value of `type` attribute for `button` HTML element is `"submit"` which is often not the desired behavior and may lead to unexpected page reloads. -This rules enforces an explicit `type` attribute for all the `button` elements and checks that its value is valid per spec (i.e., is one of `"button"`, `"submit"`, and `"reset"`). +The default value of the `type` attribute for HTML `button` elements is `"submit"`. This is often not the desired behavior and may lead to unexpected page reloads. +This rules enforces an explicit `type` attribute for all `button` elements and checks that its value is valid per the spec (i.e., is one of `"button"`, `"submit"`, and `"reset"`). ## Rule Details