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 975106c commit 372abad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion configurations/canonical.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,8 @@ module.exports.recommended = {
1,
{
ignoreExporting: false,
regex: '(^[A-Za-z]+(?:[A-Z][a-z]*)*\\d*$)|(^[A-Z]+(_[A-Z]+)*(_\\d$)*$)',
// https://regex101.com/r/wTCJVg/1
regex: '^[A-Za-z]+(?:[A-Za-z0-9]*\\.[A-Za-z0-9]+)*\\d*$',
},
],
'canonical/filename-no-index': 0,
Expand Down

0 comments on commit 372abad

Please sign in to comment.