mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
style: format eslint paths and remove trailing whitespace
This commit is contained in:
parent
a3d585a4b4
commit
376e8617f3
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue