Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
gracepark committed Dec 4, 2024
1 parent 5bb2f9c commit 996a56d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/rules/filenames-match-regex.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ Default:
```json
{
"filenames-match-regex": [
"error",
"error"
]
}
```

If you want to add custom regex such as matching all camelCase, this would be the option:
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:

```json
{
'filenames-match-regex': [
'error',
'^([a-z0-9]+)([A-Z][a-z0-9]+)*$'
"filenames-match-regex": [
"error",
"^([a-z0-9]+)([A-Z][a-z0-9]+)*$"
]
}
```
Expand Down

0 comments on commit 996a56d

Please sign in to comment.