mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 17:55:01 +00:00
fix: handle spaces in ESLint file path for TypeScript linting
This commit is contained in:
parent
7c5d999032
commit
867d19952c
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ class Linter:
|
|||
if path:
|
||||
for name in eslint_names:
|
||||
eslint_file = path / name
|
||||
if eslint_file.is_file():
|
||||
self.languages["typescript"] = f'"{eslint_file}" --format unix'
|
||||
if eslint_file.is_file() and " " not in eslint_file:
|
||||
self.languages["typescript"] = f"{eslint_file} --format unix"
|
||||
return
|
||||
|
||||
def set_linter(self, lang, cmd):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue