top | item 33773457

(no title)

tytho | 3 years ago

From personal experience, you don’t ever “just use TypeScript”. You have to install plugins, adapters, parsers for every other tool (linters, formatters, bundlers) to also make them work with TypeScript. Adding TypeScript into the mix increases the number of dependencies (dev or not) dramatically. If you use the jsdoc flavor of TypeScript, you only need to install the one dependency.

Not saying it’s the best reason, but a reason nonetheless.

discuss

order

robby_w_g|3 years ago

Over the weekend, I converted an app from JS + Create React App to Typescript + Parcel v2.

The typescript tooling was extremely simple to setup with only a few added packages... until I had to setup eslint. That's when I had to install a half dozen plugins, adapters, parsers, etc like you said.

Granted, the linked eslint rewrite seems to have plans to make the typescript linting tooling simpler. However, I might end up switching to Rome in the meantime just for simpler dependency management.

Aeolun|3 years ago

Rome is very nice right now. My linting finishes in 50ms, as it’s supposed to, instead of minutes in eslint.

Of course they don’t have nearly the same amount of rules, but we’ll get there.