jscodeshift icon indicating copy to clipboard operation
jscodeshift copied to clipboard

"!.jenkins/" in the ".eslintignore" makes jscodeshift ignore all files

Open NameFILIP opened this issue 6 years ago • 1 comments

Our .eslintignore:

...
!.jenkins/
...

According to ESLint docs:

Lines preceded by ! are negated patterns that re-include a pattern that was ignored by an earlier pattern

https://eslint.org/docs/user-guide/configuring.html#configuring-rules

But in the jscodeshift case when supplied as --ignore-config .eslintignore it makes jscodeshift ignore all files.

NameFILIP avatar Aug 20 '19 21:08 NameFILIP

Confirmed. I have !/log/.keep in my .gitignore, and passing it to --ignore-config .gitignore makes it ignore all files.

ersinakinci avatar Apr 28 '20 23:04 ersinakinci