fix: correct eslint path in node_modules directory

This commit is contained in:
Paul Gauthier 2024-09-04 14:02:56 -07:00 committed by Paul Gauthier (aider)
parent 6d23b22e6f
commit 7c5d999032

View file

@ -31,7 +31,7 @@ class Linter:
def _check_eslint(self):
eslint_names = ["eslint", "eslint.cmd", "eslint.exe"]
eslint_paths = [
Path("node_modules") / ".bin",
Path(".") / "node_modules" / ".bin",
Path(self.root) / "node_modules" / ".bin" if self.root else None,
]