remove eslint as default linter

This commit is contained in:
Paul Gauthier 2024-09-05 12:42:47 -07:00
parent a35c532211
commit e4cbbb1fa8
2 changed files with 0 additions and 24 deletions

View file

@ -26,23 +26,6 @@ class Linter:
)
self.all_lint_cmd = None
self._check_eslint()
def _check_eslint(self):
eslint_names = ["eslint", "eslint.cmd", "eslint.exe"]
eslint_paths = [
Path(".") / "node_modules" / ".bin",
Path(self.root) / "node_modules" / ".bin" if self.root else None,
]
for path in eslint_paths:
if path:
for name in eslint_names:
eslint_file = path / name
if eslint_file.is_file() and " " not in str(eslint_file):
self.languages["typescript"] = f"{eslint_file} --format unix"
return
def set_linter(self, lang, cmd):
if lang:
self.languages[lang] = cmd