ValidDocParamTypes
Each parameter defined in LiquidDoc should be string
, number
, boolean
, object
, or any liquid object that isn't exclusively a global object. Parameter types are optional, and are surrounded by curly braces. Add square brackets,[]
, after the type to denote a typed array.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
The following example shows multiple parameters with invalid types:
Anchor to ✗ Fail✗ Fail
The following example shows multidimensional arrays:
Anchor to ✓ Pass✓ Pass
The following example shows multiple parameters with valid basic types:
Anchor to ✓ Pass✓ Pass
The following example shows multiple parameters with valid liquid objects as their type:
Anchor to ✓ Pass✓ Pass
The following example shows parameter types with arrays:
Anchor to OptionsOptions
The following example contains the default configuration for this check:
Parameter | Description |
---|---|
enabled | Whether this check is enabled. |
severity | The severity of the check. |
Anchor to Disabling this checkDisabling this check
Disabling this check isn't recommended.