Rule reference
Rules
Search Sheath Core and first-party plugin rules by name, package, category, severity, or auto-fix support.
- Rules
- 132
- Packages
- 4
- Categories
- 7
- Auto-fixable
- 38
Core rules ship with Sheath. Plugin rules require their corresponding first-party package and preset. Start with preset configuration, then adjust individual rules for your project.
#Choosing a Preset
Presets provide a useful starting point without configuring every rule individually:
| Preset | Use it for |
|---|---|
recommended |
Defects most projects should catch |
strict |
Broader correctness, performance, and document-level checks |
stylistic |
Formatting and syntax preferences |
migration |
A single rewrite pass over older Blade syntax |
empty |
A rule list you define entirely yourself |
recommended is the default. Combine it with stylistic when you want both
correctness and consistent formatting:
'preset' => ['recommended', 'stylistic'],
See Configuration for severity overrides, rule options, and preset composition.
#Enabling an Optional Rule
blade-require-props is not included in a preset. Enable it directly
when every anonymous component in your project must declare @props:
'rules' => [
'blade-require-props' => 'warning',
],