Skip to main content

Function: getTopLevelRulesObject()

getTopLevelRulesObject(configObject: Readonly<TSESTree.ObjectExpression>): ObjectExpression | undefined

Defined in: _internal/stylelint-config-rules-object.ts:24

Resolve the top-level Stylelint rules object expression.

Parametersโ€‹

configObjectโ€‹

Readonly<TSESTree.ObjectExpression>

Exported Stylelint config object expression.

Returnsโ€‹

ObjectExpression | undefined

The rules object when present and statically analyzable.