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

Support for @typescript-eslint/parser@v6 #18641

Closed
1 task
lucavb opened this issue Aug 15, 2023 · 9 comments · Fixed by #19548
Closed
1 task

Support for @typescript-eslint/parser@v6 #18641

lucavb opened this issue Aug 15, 2023 · 9 comments · Fixed by #19548
Assignees
Labels
outdated scope: linter Issues related to Eslint support in Nx type: feature

Comments

@lucavb
Copy link
Contributor

lucavb commented Aug 15, 2023

Description

Currently the eslint-package contains this line which prevents us from migrating to typescript-eslint@^6. I guess this might make it a breaking change for nx as well so this will only be included in version 17?

I also tried to find another issue targeting tihs but I was unable to find one.

Motivation

Well, pretty much the next major version with improvements being done by them.

Suggested Implementation

Updating the referenced line in the package.json and creating a migration.

Alternate Implementations

@FrozenPandaz FrozenPandaz added the scope: linter Issues related to Eslint support in Nx label Aug 15, 2023
@k3nsei
Copy link

k3nsei commented Aug 16, 2023

Just add this to your package.json

"overrides": {
  "@nx/eslint-plugin": {
    "@typescript-eslint/eslint-plugin": "^6.4.0",
    "@typescript-eslint/parser": "^6.4.0",
    "eslint-config-prettier": "^9.0.0"
  }
}

@meeroslav
Copy link
Contributor

It's already on our roadmap.

@k3nsei, it's not that simple, as it requires some code migrations.

@meeroslav meeroslav self-assigned this Aug 16, 2023
@k3nsei
Copy link

k3nsei commented Aug 17, 2023

I know that works for me and allowed me to have all packages to their latest versions. I don't saying that this should be solution for NX. It is just quick issue solver for @lucavb

@meeroslav
Copy link
Contributor

Sure, thank you @k3nsei

@JamesHenry
Copy link
Collaborator

The main thing we will need to do on the Nx side is update the module resolution configuration for TS: typescript-eslint/typescript-eslint#7284

This is a more significant change than just bumping packages, and we will need to make sure we think through the ramifications for all Nx users

@meeroslav
Copy link
Contributor

As @JamesHenry mentioned, the biggest obstacle is the request to switch from node (version support for old node v10) to node16/next (which supports newer v16 onwards).

Although this change is sensible, it causes a chain reaction of changes requested across the entire repo. We will discuss this with the team next to see how to ensure the least amount of impact on other areas.

@eddiemonge
Copy link

Any progress on this? I know people still want to support Node versions older than 18, but 16 was end of life'd a month ago. Node 10 was EOL 3 and a half years ago. If people want to stay on dead Node versions, then they can lock their deps to versions that support that.

@meeroslav
Copy link
Contributor

meeroslav commented Oct 10, 2023

It's not a matter of node version. Our codebase dropped support for pre Node 16 versions some time ago. It's rather the changes this brings.

Switching to nodenext means all CommonJS packages will cease to work like before and their import will have to be modified to compensate for this.

We will likely do this once v17 is out, due to the scope of the changes needed (check draft PR here #19368)

Copy link

github-actions bot commented Dec 3, 2023

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: linter Issues related to Eslint support in Nx type: feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants