-
Notifications
You must be signed in to change notification settings - Fork 32
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
fix: allow typescript-eslint@8 as dependency #149
fix: allow typescript-eslint@8 as dependency #149
Conversation
export function findVariable( | ||
context: CompatContext, | ||
node: TSESTree.Identifier | ||
): TSESLint.Scope.Variable | 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.
Without this:
src/compat.ts:36:17 - error TS2742: The inferred type of 'findVariable' cannot be named without a reference to '.pnpm/@[email protected]/node_modules/@typescript-eslint/scope-manager'. This is likely not portable. A type annotation is necessary.
36 export function findVariable(
~~~~~~~~~~~~
@@ -1,1606 +1,3282 @@ | |||
lockfileVersion: '6.0' | |||
lockfileVersion: '9.0' |
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.
Which version of pnpm
does this repo require? I'm on a newer one, so this lockfile got pretty significantly changed here.
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.
Currently, there is no packageManager
field, so there is no predefined version to use. When you used a newer version of pnpm
, it probably added a packageManager
field to the package.json
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.
Yup, I was hoping to be told what version is preferred so I can just go with that - instead of changing a bunch of things.
Thanks so much for this! |
Fixes #148.
Sending as a draft for reference in case it's useful. Cheers! 😄Now that typescript-eslint@8 is released, this is ready for review + merge IMO.