style: format eslint paths and remove trailing whitespace

This commit is contained in:
Paul Gauthier (aider) 2024-09-04 13:51:57 -07:00
parent a3d585a4b4
commit 376e8617f3

View file

@ -31,9 +31,9 @@ class Linter:
def _check_eslint(self): def _check_eslint(self):
eslint_paths = [ eslint_paths = [
"./node_modules/.bin/eslint", "./node_modules/.bin/eslint",
f"{self.root}/node_modules/.bin/eslint" if self.root else None f"{self.root}/node_modules/.bin/eslint" if self.root else None,
] ]
for path in eslint_paths: for path in eslint_paths:
if path and os.path.isfile(path): if path and os.path.isfile(path):
self.languages["typescript"] = f"{path} --format unix" self.languages["typescript"] = f"{path} --format unix"