-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[[FIX]] Consistently ignore dot-prefixed dirs
When the Node.js CLI is invoked with a path to an input file, that file should not be linted if it matches any pattern in a "ignore list" configuration file. Prior to this patch, JSHint failed to ignore such files if one of their parent directories was prefixed with a period character. Update the CLI's usage of the `minimatch` Node.js library to also consider such "dot-prefixed" directories when interpreting ignore lists. Note that this change is backwards-compatible because it limits the situations in which the CLI reports an error.
- Loading branch information
1 parent
3f920b5
commit 8d4317e
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters