yeonjuan / html-eslint

ESLint plugin for linting HTML
https://html-eslint.org
MIT License
161 stars 28 forks source link

[Feature request] Auto fix for require-button-type #198

Open maheshbansod opened 4 months ago

maheshbansod commented 4 months ago

This issue is regarding the rule require-button-type The default for button type is "submit" if unspecified or invalid. ref: https://html.spec.whatwg.org/multipage/form-elements.html#attr-button-type

For missing button type (and maybe for invalid too?), I would suggest having the auto fix to set the type to "submit"

yeonjuan commented 4 months ago

@maheshbansod I agree! Thanks for the suggestion 👍