RuleConfig
Hierarchy
- RuleConfig
Index
Constructors
Properties
Accessors
Methods
Constructors
constructor
+ new RuleConfig(rule
: Rule, rawConfig?
: any): RuleConfig
Parameters:
Name | Type |
---|---|
rule | Rule |
rawConfig? | any |
Returns: RuleConfig
Properties
config
• config: any
Accessors
id
• get id(): any
Returns: any
rule
• get rule(): any
Returns: any
Methods
inspect
Parameters:
Name | Type |
---|---|
reports | Observable‹Report› |
Returns: Observable‹Message›
validate
▸ validate(rawConfig
: any): any
validate the config against meta.schema using ajv
todo
Parameters:
Name | Type |
---|---|
rawConfig | any |
Returns: any
boolean
Static
create
▸ create(rule
: any, rawConfig
: any): Readonly‹RuleConfig›
Parameters:
Name | Type |
---|---|
rule | any |
rawConfig | any |
Returns: Readonly‹RuleConfig›