A rule that isn't on the recommended list (as sometimes, though I can't think of a case, a developer may want to implement it themselves) that ensures that all <form> elements have a use:enhance directive.
Examples
<script>
import { enhance } from '$app/forms';
</script>
<!-- ✓ GOOD -->
<form method="POST" use:enhance>
<form use:enhance={{ ... }}>
<!-- ✗ BAD -->
<form>
<form method="POST">
<form use:otherMethod>
Motivation
To stop developers from forgetting to enhance forms
Description
A rule that isn't on the recommended list (as sometimes, though I can't think of a case, a developer may want to implement it themselves) that ensures that all
<form>
elements have ause:enhance
directive.Examples
Additional comments
No response