Closed alvarlagerlof closed 1 year ago
What version of the lib do you use?
Does the code actually work if you ignore eslint warning
What version of the lib do you use?
1.12.2
Does the code actually work if you ignore eslint warning
Yes
Then I think it might be a problem with eslint configuration.
Library package.json doesn't contain module
entry, so "import/named" rule should not be applied.
Note: for packages, the plugin will find exported names from https://github.com/jsforum/jsforum/issues/5 (deprecated) or module, if present in package.json. Redux's npm module includes this key, and thereby is lintable, for example.
Then I think it might be a problem with eslint configuration.
Mine or ESLint itself? I just have a rule.
That I don't know.
Maybe I'll have to ignore the error or something. I'm guessing you have no plans to move to ESM?
Not in the nearest future
I have this line of code to import a few functions form this library.
However, that gives me an ESLint warning like:
createResponse not found in 'node-mocks-http'eslintimport/named
I something wrong with the exports, or am I importing incorrectly? Thanks!