OpenHands
OpenHands copied to clipboard
(feat) implement typescript linting for CodeActAgent
What is the problem that this fixes or functionality that this introduces? Does it fix any open issues?
Fixes #3431 : the linter module currently only supports Python code (CodeActAgent).
Running linter on any other language most likely causes wrong results and would require something like eslint
.
However, there are some tweaks possible to output more precise error location (basic_lint), like
- re-added the column number
- added Syntax error in message
Other changes:
-
linter.py
file extended with methodts_lint
that usestsc
(typescript compiler) for linting typescript/javascript files - added tests to
test_aider_linter.py
andtest_agent_skill.py
- attempts to use
eslint
caused many issues, too much configuration effort for little gain