Thanks for taking the time to comment extensively.
> so it's not like eslint changes your risk profile in regards to npm dependencies.
Depends. If it is the only dependency from npm, it changes all to that regard. This is perhaps the hard case for me.
> they could also include a npm post install script and run arbitrary code
Is there a cheap flag or global parameter to disable that so that the build does not run wild?
In composer there is --no-scripts --no-plugins which effectively can prevent things (and scripts / plugins are bound to root projects so they aren't that far-reaching as in npm by default, but the field of problem is technically the same).
At the end of the day I find clamping such features away as necessary as pinning the tool versions for a stable build. Me is just weak with npm.