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
{{ message }}
This repository was archived by the owner on Aug 18, 2021. It is now read-only.
Running eslint on dir A and B gives the expected result:
❯ $(npm bin)/eslint A B
B/b.js
1:4 error b is defined but never used no-unused-vars
✖ 1 problem (1 error, 0 warnings)
however, running it on dir B and A gives an additional unexpected error on a.js:
❯ $(npm bin)/eslint B A
B/b.js
1:4 error b is defined but never used no-unused-vars
A/a.js
1:4 error a is defined but never used no-unused-vars
✖ 2 problems (2 errors, 0 warnings)
This only happens when using babel-eslint as the parser for directory B. I've tried the default parser, esprima, and esprima-fb and it does not throw the error for a.js. The result shouldn't change given the order of directories given to eslint right?