🔍 node-ignore is the manager and filter for .gitignore rules, the one used by eslint, prettier and many others.
Options
interface (#105)An upgrade is safe for all dependents
It allows typing external methods which expect Options
as a param, by importing the Options
interface.
import {Options} from 'ignore'
An upgrade is recommended for all dependents
The following rules could be not properly parsed with previous ignore
versions
**foo
*bar
qu*ux
abc\ # `ignore` would throw if no whitespace after `\`
An upgrade is recommended for all dependents.
ignore().ignores('../foo/bar.js') // will throw
And the code below will not throw, however it is not recommended
ignore({
allowRelativePaths: true
}).ignores('../foo/bar.js')
Recommend:
ignore().ignores('foo/bar.js')
ignorecase
when internal cache is hit. (#74)An upgrade is recommended for all dependents.
An upgrade is recommended for all dependents.
An upgrade is recommended for all dependents.
isPathValid
on Windows (#54)On Windows, if path
is an absolute path, ig.ignores(path)
, ig.test(path)
and related methods will now throw an error as expected.