Skip to content

Commit

Permalink
feat: allow numbers in folder names (#36)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
nabby27 and JavierCane authored Feb 4, 2025
1 parent 28f651c commit c9780f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configs/codely-full.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ export default [
"check-file/folder-naming-convention": [
"error",
{
// kebab-case and folders with square brackets and parentheses are allowed
"**/*": "+([a-z-\\[\\]\\(\\)])",
// hyphens (kebab-case folders), square brackets (Next.js dynamic routes), parentheses (Next.js route groups), and numbers (i.e. i18n) allowed.
"**/*": "+([a-z-0-9-\\[\\]\\(\\)])",
},
],
"simple-import-sort/imports": [
Expand Down

0 comments on commit c9780f6

Please sign in to comment.