Ensures that local blocks are being used correctly. This check enforces rules to maintain consistency and prevent errors in theme structure.
## Validation on local blocks
This section covers validations for local blocks in sections and in theme blocks.
### ✗ Fail
In this example, local blocks are being defined within theme blocks:
In this example, theme blocks are being used along with local blocks:
### ✓ Pass
In this example, local blocks are being used correctly within sections, and are not being used alongside theme blocks:
## Options
The following example contains the default configuration for this check:
```yaml
ValidLocalBlocks:
enabled: true
severity: error
```
| Parameter | Description |
| --- | --- |
| `enabled` | Whether this check is enabled. |
| `severity` | The [severity](/docs/storefronts/themes/tools/theme-check/configuration#check-severity) of the check. |
## Disabling this check
Disabling this check isn't recommended.