logoalt Hacker News

DanielHBtoday at 8:23 AM3 repliesview on HN

In my (really large) typescript project we have like 6 static analysis tools running[1]. Steps to get the project running: install nodejs, install package manager, install dependencies, run project.

The main difference is that in the JS ecosystem it is all installed at the project level, you don't need anything globablly installed besides the runtime and package manager (and even the package manager can be auto-installed as well if you set it up that way).

[1]: eslint, biome, prettier, scass linter, graphql-codegen, tsc, tanstack-router codegen. That I remember, might be more (although codegen might not be considered static analysis, it is needed for static analysis).


Replies

OoooooooOtoday at 10:05 AM

You always work in a virtual environment per project in Python, all dependencies are installed in the venv.

So same as JS then.

zelphirkalttoday at 1:17 PM

Although I also install such tools (linter, import sorter, type checker) locally in my virtualenvs in Python projects. It is possible to do so, but maybe not as straight forward. I have to give the JS ecosystem that much: With the project-local approach, they have done one thing right.

sheepttoday at 9:56 AM

Why do you need both Biome and Eslint/Prettier?

show 1 reply