Skip to content

Commit

Permalink
fix(eslint-config): make NOTE comment's scope optional
Browse files Browse the repository at this point in the history
  • Loading branch information
andrepolischuk committed Feb 13, 2024
1 parent 20a89fb commit 96225da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-config/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ module.exports = {
'error',
{
pattern:
'^(TODO|NOTE|COMMENT|FIXME|BUG|HACK|INFO|XXX)\\((\\w+-\\d+)\\)\\: (.*)$'
'^((TODO|FIXME|BUG)\\(\\w+-\\d+\\)|(NOTE|COMMENT|HACK|INFO)(\\(\\w+-\\d+\\))?)\\: (.*)$'
}
]
},
Expand Down

0 comments on commit 96225da

Please sign in to comment.