jscodeshift
jscodeshift copied to clipboard
"!.jenkins/" in the ".eslintignore" makes jscodeshift ignore all files
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.
Confirmed. I have !/log/.keep in my .gitignore, and passing it to --ignore-config .gitignore makes it ignore all files.