ESLint-Formatter
ESLint-Formatter copied to clipboard
Fix: eslint 9.x does not find eslint.config.js when in a sublime project with different root
My scenario, I have this project with different folders
/main/xyz.sublime-project
/webapp
/backend
when running ESLing formatter from sublime, having opened a file like /webapp/src/something.js eslint said it could not find eslint.config.js cause it was looking for it in /main rather than in /webapp where it actually is.
This code fixes the problem for me, and still works in a regular project.
(I do not do python, the code works but I have no idea if is a good way of writing it...)