From 996a56d12293113d0fde89e6796b9f43fedfc5f4 Mon Sep 17 00:00:00 2001 From: Grace Park Date: Wed, 4 Dec 2024 10:44:45 -0800 Subject: [PATCH] update doc --- docs/rules/filenames-match-regex.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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]+)*$" ] } ```