Skip to content

Commit 536a956

Browse files
committed
docs: update readme for rule filename-naming-convention
1 parent 3f2135c commit 536a956

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/rules/filename-naming-convention.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ In addition to the built-in naming conventions, you can also set custom naming p
4444
...
4545
```
4646

47+
**Tip:** To exclude some config and test/spec files for all your `js` files, such as `babel.config.js` and `index.test.js`, use the glob expression `'!(*.spec|*.test|*.config).js'` to match the target files. This will exclude all `js` files with filenames containing `.spec`, `.test` or `.config`.
48+
4749
### Options
4850
You need to specify a different naming pattern for different file extensions. The plugin will only check files with extensions you explicitly provided:
4951

0 commit comments

Comments
 (0)