-
-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: apply `.ignores` to `lintText` - add multimatch-powered short-circuit to `lintText` - add supporting test cases - closes #168 * fix: respect overrides before ignoring files * merge applicable overrides before ignoring files * throw for opts.ignores without opts.filename * use default ignores when opts.filename is given * add test case for default ignores BREAKING CHANGES: * lintText now uses the same default ignores as lintFiles with opts.filename * **/node_modules/** * **/bower_components/** * coverage/** * {tmp,temp}/** * **/*.min.js * **/bundle.js * fixtures{-*,}.{js,jsx} * fixture{s,}/** * {test,tests,spec,__tests__}/fixture{s,}/** * vendor/** * dist/** * lintText now throws when providing opts.ignores without opts.filename * style: use lodash.isequal, shorten error message * test: add case with overriden ignores * chore: remove array-equal
- Loading branch information
1 parent
3e1a318
commit 2e14d1b
Showing
3 changed files
with
89 additions
and
0 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
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