ESLint-Formatter icon indicating copy to clipboard operation
ESLint-Formatter copied to clipboard

Fix: eslint 9.x does not find eslint.config.js when in a sublime project with different root

Open ildella opened this issue 1 year ago • 0 comments

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...)

ildella avatar Sep 19 '24 11:09 ildella