Skip to content

Commit e0c1987

Browse files
nabby27JavierCane
andauthored
feat: support dots for catch-all segments on folder name (#43)
* 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]> * feat: support dots for catch-all segments on folder name --------- Co-authored-by: Javier Ferrer González <[email protected]>
1 parent 026897b commit e0c1987

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-
// 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-\\[\\]\\(\\)])",
28+
// 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
29+
"**/*": "+([a-z-0-9-\\[\\]\\(\\)\\.\\.\\.])"
3030
},
3131
],
3232
"simple-import-sort/imports": [

0 commit comments

Comments
 (0)