Skip to content

Commit

Permalink
feat: support dots for catch-all segments on folder name (#43)
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 <javier.ferrer@codely.com>

* feat: support dots for catch-all segments on folder name

---------

Co-authored-by: Javier Ferrer González <javier.ferrer@codely.com>
  • Loading branch information
nabby27 and JavierCane authored Feb 12, 2025
1 parent 026897b commit e0c1987
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",
{
// 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-\\[\\]\\(\\)])",
// hyphens (kebab-case folders), square brackets (Next.js dynamic routes), parentheses (Next.js route groups), numbers (i.e. i18n) and 3 consecutive dots i.e ([...rest]) are allowed
"**/*": "+([a-z-0-9-\\[\\]\\(\\)\\.\\.\\.])"
},
],
"simple-import-sort/imports": [
Expand Down

0 comments on commit e0c1987

Please sign in to comment.