ValidLocalBlocks
Ensures that locally scoped and static theme blocks are being used correctly. This check enforces rules to maintain consistency and prevent errors in theme structure.
Validation on local blocks
Anchor link to section titled "Validation on local blocks"This section covers validations for local blocks in sections and in theme blocks.
In this example, local blocks are being defined within theme blocks:
In this example, theme blocks are being used along with local blocks:
In this example, local blocks are being used correctly within sections, and are not being used alongside theme blocks:
Validation on static theme blocks
Anchor link to section titled "Validation on static theme blocks"This section covers validations for static theme blocks.
In this example, static theme blocks are being used along with local blocks:
In this example, a static theme block is being defined with a name
property, which is invalid:
In this example, a static theme block is being defined correctly since it does not have a name
property and isn't being used alongside local blocks:
The following example contains the default configuration for this check:
Parameter | Description |
---|---|
enabled |
Whether this check is enabled. |
severity |
The severity of the check. |
Disabling this check
Anchor link to section titled "Disabling this check"Disabling this check isn't recommended.