Skip to content

1.2.0

Compare
Choose a tag to compare
@sawyerh sawyerh released this 12 May 01:45
· 18 commits to main since this release

Changes

Added a commentPattern option to override the overall comment pattern that matches both term and ticket. When used, term and pattern options are ignored. Expects a regex string.

For example, let's say your IDE or tooling expects a different comment pattern such as TODO: [PROJ-123], you would configure this rule like:

{
  "rules": {
    "todo-plz/ticket-ref": ["error", { "commentPattern": "TODO:\\s\\[(PROJ-[0-9]+[,\\s]*)+\\]" }]
  }
}

Thank you @utluiz for the contribution 🎉