Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Feature Request: update to typescript-eslint v4 #19

Closed
xiaoxiangmoe opened this issue Mar 17, 2021 · 11 comments
Closed

Feature Request: update to typescript-eslint v4 #19

xiaoxiangmoe opened this issue Mar 17, 2021 · 11 comments

Comments

@xiaoxiangmoe
Copy link
Contributor

see https://github.com/SonarSource/SonarJS/blob/3e3a662019d460bef8729f1e88ae82ff70ecf102/eslint-bridge/package.json#L43-L44

@gund
Copy link
Owner

gund commented Mar 17, 2021

Hey, thanks for opening an issue!

Do you think if it is enough to just add v4 to this dependency version range?

"@typescript-eslint/experimental-utils": "^2.19.2 || ^3.0.0",

@xiaoxiangmoe
Copy link
Contributor Author

import type { Observable } from "rxjs";

declare const a: Observable<string>;

a.subscribe({
  next: (x) => console.log(x),
});

This will cause error in current version of eslint-plugin-deprecation and latest ts+typescript-eslint.

@xiaoxiangmoe
Copy link
Contributor Author

https://github.com/xiaoxiangmoe/eslint-plugin-deprecation-bug

image
image

As you can see, eslint-plugin-deprecation has different result comparing to sonarlint-vscode, which bundle latest sonarjs.

@gund
Copy link
Owner

gund commented Mar 17, 2021

So with latest typescript-eslint this issue is fixed?

@xiaoxiangmoe
Copy link
Contributor Author

It seems that it works in if we use latest typescript-eslint and latest SonarJS.

@xiaoxiangmoe
Copy link
Contributor Author

@gund Can you update it?

@gund
Copy link
Owner

gund commented Mar 20, 2021

@xiaoxiangmoe
Copy link
Contributor Author

xiaoxiangmoe commented Mar 20, 2021

@gund
Copy link
Owner

gund commented Mar 20, 2021

What exactly is broken?

@xiaoxiangmoe
Copy link
Contributor Author

I don't know. I have tried to pack a new package and use yarn resolution to replace it, but it is not working.

repo: https://github.com/xiaoxiangmoe/eslint-plugin-deprecation-bug

romdoq pushed a commit to romdoq/eslint-plugin-deprecation that referenced this issue Sep 16, 2021
@gund
Copy link
Owner

gund commented Dec 14, 2021

This is fixed by #39.

@gund gund closed this as completed Dec 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants