Skip to content

Commit

Permalink
fix: match id-rule to file name
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Nov 11, 2024
1 parent 4a7317e commit 975106c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion configurations/canonical.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ module.exports.recommended = {
1,
{
ignoreExporting: false,
regex: '^(?:.?[A-Z]?[a-z]+(?:[A-Z][a-z]+)*)*$',
regex: '(^[A-Za-z]+(?:[A-Z][a-z]*)*\\d*$)|(^[A-Z]+(_[A-Z]+)*(_\\d$)*$)',
},
],
'canonical/filename-no-index': 0,
Expand Down

0 comments on commit 975106c

Please sign in to comment.