Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ignore option to the filename-case rule #431

2 changes: 2 additions & 0 deletions docs/rules/filename-case.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ Default: `[]`

Filenames to ignore.

sindresorhus marked this conversation as resolved.
Show resolved Hide resolved
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explicitly say that if a string is given, it's interpreted as a regex inside a string.

When string is given, it's interpreted as a regular expressions inside a string, don't forget what you must escape special characters (For example `.`, `[`,`]`, `(`, `)` and etc) by putting two backslashes in front of them (to ignore `[id].js` file, you should use `"\\[id\\]\\.js"`).
fisker marked this conversation as resolved.
Show resolved Hide resolved

Sometimes you may have non-standard filenames in a project. This option lets you ignore those files.

For example:
Expand Down