Post
Blog post explaining why npm formatting plugins will be recommended in the future. dsherret.dev/posts/dprint...
dsherret.devdprint 0.55: npm specifiers and node resolutionThe gradual move to recommend plugins on npm.
Release notes outlining all the new features. github.com/dprint/dprin...
github.comRelease 0.55.0 · dprint/dprintdprint is a pluggable and configurable code formatting platform that unifies all your formatters.
This substantial release adds npm specifier plugins, brings dprint to many more CPU architectures, ...
You could make the package multi-purpose maybe. I don't think there's a gofumpt formatter on npm. For example, place a plugin.wasm file for the dprint plugin, and then have an index.js with an api for formatting with gofumpt via that Wasm file in JavaScript.
0 reposts0 likes