Skip to content

InvalidRuleOptionError

You provided an invalid option object to a rule. The provided option object does not conform to the defined schema of the rule options.

For example, if a rule named my-rule defines its options via the following schema:

{
type: 'object',
properties: {
foo: { type: 'string' },
},
additionalProperties: false,
}

and you provide the following Thymian configuration file:

plugins:
'@thymian/plugin-http-linter':
options:
rules:
'my-rule':
options:
bar: baz # should be foo: baz

you will receive this error.

Check the rule’s option schema definition and ensure your configuration file uses the correct option properties that match the schema.