`eslint-plugin-import-x` is a fork of `eslint-plugin-import` that aims to provide a more performant and more lightweight version of the original plugin.
"toBuffer" is only available in the node declaration, so I suspect this might be a case of the wrong declaration file being loaded. The bwip-js project uses package.json exports.
I'm using https://github.com/metafloor/bwip-js like so:
In VSCode, I see this tooltip/intellisense:
toBuffer is defined in the declaration file:
https://github.com/metafloor/bwip-js/blob/master/dist/bwip-js-node.d.ts#L192
"toBuffer" is only available in the node declaration, so I suspect this might be a case of the wrong declaration file being loaded. The bwip-js project uses package.json exports.
Environment