Skip to content
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

Merged

Conversation

JoshuaKGoldberg
Copy link
Contributor

@JoshuaKGoldberg JoshuaKGoldberg commented Aug 5, 2024

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.

export function findVariable(
context: CompatContext,
node: TSESTree.Identifier
): TSESLint.Scope.Variable | null {
Copy link
Contributor Author

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'
Copy link
Contributor Author

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.

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

Copy link
Contributor Author

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.

@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review August 15, 2024 04:39
@joshwilsonvu joshwilsonvu merged commit 921faaa into solidjs-community:main Aug 17, 2024
3 checks passed
@joshwilsonvu
Copy link
Collaborator

Thanks so much for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@typescript-eslint/utils dependency should support typescript-eslint@8
4 participants