diff --git a/docs/rules/filenames-match-regex.md b/docs/rules/filenames-match-regex.md index 5fda99fa..1bba31b8 100644 --- a/docs/rules/filenames-match-regex.md +++ b/docs/rules/filenames-match-regex.md @@ -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]+)*$" ] } ```