eslint-plugin-node
eslint-plugin-node copied to clipboard
Unclear error message for node/no-extraneous-require
I received an error message for a require in a file:
"my-package" is extraneous.
This was unclear. I had a require('my-package') in my file, but the solution was to add the package to my package.json. It would be better if that had said something along the lines of:
Unable to location require "my-package".
I suggest "my-package" is extraneous (not listed in your package.json), what do you think?