-
-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Labels
Description
I haven't remove the resolver concept in eslint-plugin-import-x<=0.2 because I found that the webpack resolver may be still useful for those webpack users, and although we can use enhanced-resolve directly, but the settings can not fit all projects, I need to figure out how to set the resolver correctly for specific projects.
For example:
- plain js
- plain typescript
- webpack specific syntaxes
I'm thinking the interface of import-x/resolver setting should be:
import type { ResolveOptions } from 'enhanced-resolve'
interface ResolverSettings {
typescript?: boolean
webpack?: boolean
options?: ResolveOptions
}By default, eslint-plugin-import-x should use enhanced-resolve directly to simulate native node resolve algorithm.
Reactions are currently unavailable