mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 02:34:59 +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:
|
if path:
|
||||||
for name in eslint_names:
|
for name in eslint_names:
|
||||||
eslint_file = path / name
|
eslint_file = path / name
|
||||||
if eslint_file.is_file():
|
if eslint_file.is_file() and " " not in eslint_file:
|
||||||
self.languages["typescript"] = f'"{eslint_file}" --format unix'
|
self.languages["typescript"] = f"{eslint_file} --format unix"
|
||||||
return
|
return
|
||||||
|
|
||||||
def set_linter(self, lang, cmd):
|
def set_linter(self, lang, cmd):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue