This repository has been archived by the owner on Aug 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since JSHint can't handle `.jshintignore` files for content sent in via stdin, check this manually using `minimatch`. Also sets the CWD for better automatic resolution of the configuration, since that at least works within JSHint.
- Loading branch information
1 parent
5360103
commit 96b6436
Showing
3 changed files
with
81 additions
and
29 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// @flow | ||
|
||
declare type MinimatchOptions = { | ||
debug?: boolean, | ||
nobrace?: boolean, | ||
noglobstar?: boolean, | ||
dot?: boolean, | ||
noext?: boolean, | ||
nocase?: boolean, | ||
nonull?: boolean, | ||
matchBase?: boolean, | ||
nocomment?: boolean, | ||
nonegate?: boolean, | ||
flipNegate?: boolean, | ||
} | ||
|
||
declare module 'minimatch' { | ||
declare module.exports: | ||
(path: string, pattern: string, options?: MinimatchOptions) => boolean; | ||
} |
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