eslint-plugin-node icon indicating copy to clipboard operation
eslint-plugin-node copied to clipboard

Unclear error message for node/no-extraneous-require

Open mwagz opened this issue 5 years ago • 1 comments

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".

mwagz avatar Aug 07 '20 16:08 mwagz

I suggest "my-package" is extraneous (not listed in your package.json), what do you think?

papb avatar Aug 07 '20 16:08 papb