4 ms·
Shameful plug: http://invig.io http://invig.io is a a wrapper around decaffinate, lebab, prettier, eslint, to to squeeze more modernness out of legacy js/coffee
by kvz 9y ago
Shameful plug: http://invig.io http://invig.io is a a wrapper around decaffinate, lebab, prettier, eslint, to to squeeze more modernness out of legacy js/coffeescript codebases and make them standardjs.com compliant
- nailer 9y agoThat sounds excellent (especially if it supports await!). Slightly off-topic: I love standardjs.com. It takes an enormous amount of chutzpah to look at jQuery style guidelines, idiomatic.js, AirBnB and every previous JavaScript style guide and declare the name of your own new thing is `${standard} ${languageName}`
- positivecomment 9y ago"Standard" (the name is very hard to tolerate) not being configurable with questionable defaults (no semicolons!) and being JS-only (no TS or CSS support) makes Prettier[1] a better option. It has a VS Code extension which works great. [1]: https://github.com/prettier/prettier https://github.com/prettier/prettier
- nailer 9y ago> Prettier parses your JavaScript into an AST (Abstract Syntax Tree) and pretty-prints the AST, completely ignoring any of the original formatting*. Say hello to completely consistent syntax! That's excellent. Thanks for the recommendation.
- alangpierce 9y agoCool, I hadn't seen that! bulk-decaffeinate is a wrapper around decaffeinate, jscodeshift, and eslint with a similar goal. And I've certainly thought about incorporating lebab and/or prettier there as well. https://github.com/decaffeinate/bulk-decaffeinate https://github.com/decaffeinate/bulk-decaffeinate