Skip to content

Commit 7c4b89c

Browse files
committed
docs: update doc for folder-naming-convention
1 parent dd694aa commit 7c4b89c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/rules/folder-naming-convention.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ In addition to the built-in naming conventions, you can also set custom naming p
5151
...
5252
```
5353

54-
**Tip:** To exclude `__tests__` folder in `src`, use the glob expression `src/!(__tests__)/**/` to get the target folders.
54+
**Tip:** To exclude `__tests__` folder in `src`, use the glob expression `src/**/!(__tests__)/` to get the target folders.
5555

5656
## Built-in custom patterns
5757

examples/basic/eslint.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export default [
3737
'error',
3838
{
3939
'src/components/*/': 'PASCAL_CASE',
40+
'src/!(components)/**/!(__tests__)/': 'CAMEL_CASE',
4041
},
4142
],
4243
},

0 commit comments

Comments
 (0)