Skip to content

Commit c9780f6

Browse files
nabby27JavierCane
andauthored
feat: allow numbers in folder names (#36)
* feat: allow numbers in folder names * docs: specify why we support each special character in folder names Co-authored-by: Javier Ferrer González <[email protected]>
1 parent 28f651c commit c9780f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

configs/codely-full.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ export default [
2525
"check-file/folder-naming-convention": [
2626
"error",
2727
{
28-
// kebab-case and folders with square brackets and parentheses are allowed
29-
"**/*": "+([a-z-\\[\\]\\(\\)])",
28+
// hyphens (kebab-case folders), square brackets (Next.js dynamic routes), parentheses (Next.js route groups), and numbers (i.e. i18n) allowed.
29+
"**/*": "+([a-z-0-9-\\[\\]\\(\\)])",
3030
},
3131
],
3232
"simple-import-sort/imports": [

0 commit comments

Comments
 (0)