-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: implement interface version 3 #41
Conversation
function createCycleSourceError(p: string) { | ||
return { | ||
message: `Dependency cycle via ${p}`, | ||
messageId: 'cycleSource', | ||
data: { source: p }, | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eslint-plugin-import-x@4.5.0
has removed all the message
and has migrated them all to the messgaeId
. So the error has also been updated.
if (isBuiltin(source)) | ||
return { found: true, path: null } | ||
|
||
options ??= {} | ||
const optionsHash = hashObject(options) | ||
if (resolver == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With interface version 3, the resolver
will not be null, so all those hashing and caching below would be skipped~
Thanks! |
The PR implements the new import resolver interface (un-ts/eslint-plugin-import-x#192).
Now the options hashing only happens with interface version 2.