RuleCreator's types do not support rules without a documentation URL #4133
Labels
package: utils
Issues related to the @typescript-eslint/utils package
triage
Waiting for team members to take a look
I have tried restarting my IDE and the issue persists.N/ARepro
Going off the code snippet here: #4124 (comment)
The recommended
RuleCreator
adds a requirement to provide aurlCreator: (ruleName: string) => string
parameter. However, when writing rules that don't have a dedicated docs page -such as local one-of rules with eslint-plugin-local-rules, there should not be aurl
attached.Can we make that
urlCreator
optional so that thedocs
doesn't attach aurl
if not needed?Versions
@typescript-eslint/experimental-utils
5.3.1
TypeScript
node
The text was updated successfully, but these errors were encountered: