Eslint-plugin-import: Support for bundledDependencies

Created on 3 Aug 2019  路  2Comments  路  Source: benmosher/eslint-plugin-import

I have some auto-generated code (through https://github.com/prisma/photonjs) that is located in node_modules/@generated/photon.

How can I tell eslint-plugin-import to not throw a import/no-extraneous-dependencies error? The best solution I can think of so far is to put it into the bundledDependencies. But it seems like eslint-plugin-import does not look at these.

Related: https://github.com/prisma/prisma2/issues/314

enhancement help wanted

All 2 comments

Absolutely things in bundledDependencies should not error; that seems like an (albeit very very rare) omission. A PR adding that support is welcome.

Thanks for the quick answer.

Just started to work on the PR. Comments are welcome. I will try to do more tomorrow.

Was this page helpful?
0 / 5 - 0 ratings