Skip to content

Commit 996a56d

Browse files
committed
update doc
1 parent 5bb2f9c commit 996a56d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/rules/filenames-match-regex.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ Default:
2424
```json
2525
{
2626
"filenames-match-regex": [
27-
"error",
27+
"error"
2828
]
2929
}
3030
```
3131

32-
If you want to add custom regex such as matching all camelCase, this would be the option:
32+
If you want to add custom regex such as matching all camelCase, add the regex as a string. For example, for camelCase it would look like:
3333

3434
```json
3535
{
36-
'filenames-match-regex': [
37-
'error',
38-
'^([a-z0-9]+)([A-Z][a-z0-9]+)*$'
36+
"filenames-match-regex": [
37+
"error",
38+
"^([a-z0-9]+)([A-Z][a-z0-9]+)*$"
3939
]
4040
}
4141
```

0 commit comments

Comments
 (0)