From 975106c87628c953fbfc8c1e0f85d17735c48b1c Mon Sep 17 00:00:00 2001 From: Gajus Date: Mon, 11 Nov 2024 14:04:55 -0600 Subject: [PATCH] fix: match id-rule to file name --- configurations/canonical.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configurations/canonical.js b/configurations/canonical.js index 4bc817b..7fd967d 100644 --- a/configurations/canonical.js +++ b/configurations/canonical.js @@ -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,