logoalt Hacker News

AgentME • yesterday at 4:30 AM • 6 replies • view on HN

Deno is still an easy pick for me because of its built-in test-runner (deno test), linter (deno lint), and type checker (deno check). I've used many different npm packages for these things in previous projects and I have no idea what the new hotness and proper configuration is for all of these things in a new node project, so I really value the simplicity of Deno for it all. Also JSR and Deno for publishing Typescript libraries is still so much easier than setting up a Typescript node project and configuring it to publish compiled code, and it gets you documentation pages generated from your tsdoc comments too, which I never knew how to do outside of JSR.


Replies

willio58 • yesterday at 4:42 AM

The new hot lint (for me) is Oxlint. Literally a 300x speed improvement on our monorepo compared to eslint for the same ruleset. It’s amazing, especially in combination with Oxfmt instead of prettier.

➕ show 1 reply
simantel • yesterday at 4:35 AM

FWIW Node now has node:test, but yeah you still need dependencies for linting and type checking.

AgentME • yesterday at 7:14 PM

While I'm at it, I forgot to mention the built-in formatter (deno fmt) is great too. I use Prettier in other projects and it's also great in those projects, but it's tiring that it's yet another dependency to remember to add and configure in a new node project.

dzogchen • yesterday at 8:36 AM

Node.js has a built in test runner and it is excellent. https://nodejs.org/api/test.html

Not sure if the runtime should be responsible for linting of type checking.

cavoirom • yesterday at 3:12 PM

those features a great, but aren't what most of the people doing JS/TS care.

littlecranky67 • yesterday at 6:26 AM

The hot shit is still typescript, eslint. I have been using those for more than a decade in node. For me, (deno lint) sounds like the new hot shit.