All rules

Sheath rule

blade-livewire-directive-integrity

Livewire directives must use the values, modifiers, and companions its runtime consumes.
Package
Core
Category
Blade
Default severity
error by default
Auto-fix
Manual fix

#Why

Invalid Livewire directives can warn, return early, miss an initializer selector, or silently ignore authored behavior. Coverage includes model modifier ordering, bindings, loading, dirty and offline output modes, polling, navigation, targets, intersections, sorting, streams, islands, confirmation, and fixed-directive modifier grammar.

Validation activates only when Livewire is installed. Bound values whose runtime result cannot be resolved are not checked. Generic Blade and Livewire component invocation attributes are outside scope because the rendered root is not known.

Supported behavior follows Livewire 4.x. When Livewire's bundled Alpine behavior differs, including .passive.false, Sheath follows the installed Livewire distribution.

#Examples

wire:navigate requires a usable href, fragment-only links cannot use wire:current, wire:confirm.prompt requires both a prompt and expectation, and wire:sort:item requires a compatible sortable ancestor on the same Blade render path.