AbstractAbstractAppliesScope where this rule applies:
AbstractNameUnique name of the rule (e.g., 'no-import-statements'). Must match the key used in @RegisterClass(BaseLintRule, 'rule-name').
AbstractTestTest function that analyzes the AST and returns violations.
The parsed Babel AST of the component code
Name of the component being linted
OptionalcomponentSpec: ComponentSpecOptional component specification with metadata
Optionaloptions: LinterOptionsOptional execution options for the component
OptionaltypeContext: TypeContextOptional shared type context with inferred variable types, entity/query field metadata, and callback parameter types
Array of violations found by this rule
Base class for all component linter rules.
Rules extend this class and decorate with
@RegisterClass(BaseLintRule, 'rule-name')to be automatically discovered by the linter via MJGlobal's ClassFactory.External packages (e.g., Skip-Brain) can define custom rules by extending this class and registering them — the linter will discover them at runtime through the manifest system.
Example