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
When using the useGitignore option, patterns in .gitignore seems not being processed in order. The issue seems to be that in this line where positive rules and negative rules are handled separately, hence not handling scenarios like ignore-then-unignore/unignore-then-ignore correctly according to Git behavior.
To Reproduce
A minimal script to reproduce the bug: package.json
Info
Which Version
Version: 8.2.1
Issue with supporting library?
Bug Description
Describe the bug
When using the
useGitignore
option, patterns in.gitignore
seems not being processed in order. The issue seems to be that in this line where positive rules and negative rules are handled separately, hence not handling scenarios like ignore-then-unignore/unignore-then-ignore correctly according to Git behavior.To Reproduce
A minimal script to reproduce the bug:
package.json
index.js
Output (
node index.js
):By the way, please check the ignore package which should be more suitable for handling gitignore patterns than
micromatch
used incspell-glob
.The text was updated successfully, but these errors were encountered: