Open
Description
What rule do you want to change?
no-missing-label-refs
What change do you want to make?
Generate fewer warnings
How do you think the change should be implemented?
A new option
Example code
- [ ] Unchecked
- [x] Checked
- [-] In progress
What does the rule currently do for this code?
In my use case, I use GFM task lists with custom states, such as [-] to indicate "in progress".
Currently, the rule reports an error for [-]: Label reference '-' not found.
This is not helpful, since [-] is not intended to be a reference label, but a visual indicator for task status.
What will the rule do after it's changed?
With the following configuration: ["error", { "ignoredLabels": ["-"] }]
The rule will ignore [-] and not report it as a missing label reference.
Participation
- I am willing to submit a pull request to implement this change.
Additional comments
No response