6 ms·
does it have a go fmt / lint command yet?
by thrown-0825 1y ago
does it have a go fmt / lint command yet?
- sisve 1y agoNope
- thrown-0825 1y agoshame, I remember having a lot of issues getting ts-lint to work with test runners a few years back.
- pjmlp 1y agojslint/tslint are an install away.
- beart 1y agotslint has been deprecated for quite a long time now - from 2019: https://github.com/palantir/tslint/issues/4534 https://github.com/palantir/tslint/issues/4534
- thrown-0825 1y agowerent one of the js linters part of a supply chain attack recently?
- pjmlp 1y agoMaybe, are you sure Go dependencies are immune to similar attacks?
- fabioborellini 1y agoYes, with the difference that Google would have to be compromised in order to poison the go distributable containing fmt tool. With js, it’s enough to poison any single one of the 1400 dependencies of the linter
- homebrewer 1y agoUse biome, it doesn't have any external dependencies. eslint should have been put to rest a long time ago.
- prmph 1y agoGood advice. That was my conclusion as well after years of fighting with eslint.
- thrown-0825 1y agosomeone else recommended this too, I'll give it a shot next time I'm in js land.
- DanielHB 1y agoWe added biome to our project, now we have eslint, prettier and biome in the project. Seriously though it is nice, but migrating away from your existing tooling is painful and underappreciated.
- pjmlp 1y agoI forgot that even though fmt will never suffer from middle man attacks downloading the Go toolchain, the standard library already covers 100% of the uses cases someone cares about using Go for, and no one is using CGO.
- DanielHB 1y agoI used to use CGO quite a lot in linux-embedded environment. And we had huge dependency chains as well to non-standard library stuff, nowhere near as bad as an average nodejs project but still not free from the problem.
- thrown-0825 1y agogo std lib being compromised would be a pretty major achievement
- Sammi 1y agonpx prettier
- thrown-0825 1y agodoes that require a config?
- coldtea 1y agodepends, will you keep finding pendatic faults after any answer?
- ohmahjong 1y agoHaving a typo in "pendantic" is a masterstroke
- thrown-0825 1y agoI come from go where this stuff is default
- akarlsten 1y agoNo, it has good defaults. See also: https://prettier.io/docs/option-philosophy https://prettier.io/docs/option-philosophy