You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 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
lintText
does not apply the ignores config as opposed tolintFiles
.Given
lintText
hasopts.filename
andopts.cwd
available we could compute if a given file should be ignored.Don't know if this is less intuitive, though. What do you think @sindresorhus?
The text was updated successfully, but these errors were encountered: