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

Support for `.jsx` extension

Open raulmatei opened this issue 6 years ago • 0 comments

We use .jsx for React components and we get errors when importing files that have .jsx extension but without adding the extension in the import statement.

ex:

import x from './x';` // the file is x.jsx

Adding the extension to the import statement resolves the errors. Can this extension be added into https://github.com/zertosh/eslint-plugin-dependencies/blob/master/no-unresolved.js#L13, or a better solution would be to add an option for the extensions array to be overridden.

raulmatei avatar Apr 19 '18 05:04 raulmatei