Repository navigation
v1.7.0
- New opt-in
no-unguarded-async-buttonrule: a<button type="submit">, or a
button whoseonClickis an async function, with nodisabledbinding is
reported, since a second click starts the request again. A handler name is
followed in scope toasync function,const f = async () =>and
useCallback(async () => …); a spread passes, as it may carry the guard, and
aria-disableddoes not count.componentsadds a consumer's own button
components, andpendingComponent/submitComponentname the house
replacement in the message. Syntactic only, so it runs without type
information.
What's Changed
- feat(rules): add no-unguarded-async-button by @loredanamoanga in #11
Full Changelog: v1.6.0...v1.7.0