eslint-plugin-import-x
eslint-plugin-import-x copied to clipboard
Add support for lazy() imports?
I've been looking for any way to enforce sorting of lazy imported react components. with the very limited other options, this package feels like my only hope outside of writing an integration test. it surprises me I couldn't find a package for it already given how big React is. Lazy imports are always in the format of const Component = /*React.*/lazy(() => import('path')/*or require*/);