eslint-plugin-node
eslint-plugin-node copied to clipboard
Mixed sourceType cause false errors
Hello, I'm using rollup and has mixed sources. CommonJS + module. I have following problems:
plugin:node/recommendedMUST respect nearestpackage.json"type": "..."plugin:node/recommendedSHOULD respect environments instead of source type.
Reproduction:
- Clone https://github.com/Zekfad/eslint-config/tree/356ec9a4b2d315f1cb013a53a0a89110ca7f14e2
yarn buildyarn lint-> All should be fine- Uncomment https://github.com/Zekfad/eslint-config/blob/356ec9a4b2d315f1cb013a53a0a89110ca7f14e2/src/main/index.js#L27
- Rebuild
yarn build yarn lintfails onESLint.test.js, because it cant findrequire, meanwhile https://github.com/Zekfad/eslint-config/blob/356ec9a4b2d315f1cb013a53a0a89110ca7f14e2/test/package.json#L2