The expiring-todo-comments rule will proxy the unhandled comments to eslint/no-warning-comments when allowWarningComments is false. From what I can see, it passes the rule context from expiring-todo-comments to eslint/no-warning-comments but the only overlap on options between the two rules is the terms option.
This prohibits making use of the other options in eslint/no-warning-comments for location and decoration. The behavior of eslint/no-warning-comments is different from that of expiring-todo-comments for its detection of a warning comment. For instance, a multi-line comment in the format of:
/*
* todo
*/
will not trigger the eslint/no-warning-comments rule because the decoration option must be set to ['*']. However, if that multi-line comment has a condition and is processed by expiring-todo-comments it will be handled with the appropriate warning level.
Adding decoration: ['*'] to the expiring-todo-comments option does not work because it violates the options schema of expiring-todo-comments. This request is to extend the options schema of expiring-todo-comments to include the schema properties from eslint/no-warning-comments which would allow the additional options to be specified and passed on to that rule.
The
expiring-todo-comments
rule will proxy the unhandled comments toeslint/no-warning-comments
whenallowWarningComments
is false. From what I can see, it passes the rule context fromexpiring-todo-comments
toeslint/no-warning-comments
but the only overlap on options between the two rules is theterms
option.This prohibits making use of the other options in
eslint/no-warning-comments
forlocation
anddecoration
. The behavior ofeslint/no-warning-comments
is different from that ofexpiring-todo-comments
for its detection of a warning comment. For instance, a multi-line comment in the format of:will not trigger the
eslint/no-warning-comments
rule because thedecoration
option must be set to['*']
. However, if that multi-line comment has a condition and is processed byexpiring-todo-comments
it will be handled with the appropriate warning level.Adding
decoration: ['*']
to theexpiring-todo-comments
option does not work because it violates the options schema ofexpiring-todo-comments
. This request is to extend the options schema ofexpiring-todo-comments
to include the schema properties fromeslint/no-warning-comments
which would allow the additional options to be specified and passed on to that rule.