Closed efueger closed 3 years ago
We use cascading ESLint config files ourselves internally, so they do work at least most of the time. I'm looking into this to try and identify why they wouldn't work in this particular repo. Thanks for the isolated test case.
@efueger do you still have the files for the repo? that link does not work anymore.
@eutopian - I DM'd files to you
Any news about this? Almost 2 years now and it does not work with monorepos :(
I'd also like to know if there is any status on this? It makes it CodeClimate (eslint / javascript) impossible for monorepos :(
HI @not-Ryan - thanks for asking about this! Another customer found if there's no .eslintrc at the root, then we throw this "Error: No ESLint configuration found in /code." error.
We're working on a fix for that now.
In the meantime, he found a workaround:
if I add a file with the contents "{}" (an empty config) to /.eslintrc (the root of the project)then Code Climate seems to correctly use /a/.eslintrc in /a/ and /b/.eslintrc in /b/.
Let me know if that works for you! Again, working on a fix for this here, but wanted to offer in the interim.
It worked! Many thanks!
Bug Template
Actual Behavior
Repo uses 2 .eslintrc.js files. The deeper-nested config file doesn't seem to be used with CLI or hosted results.
CLI Debug output: