gund / eslint-plugin-deprecation

ESLint rule that reports usage of deprecated code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: update to typescript-eslint v4

xiaoxiangmoe opened this issue · comments

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",

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.

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.

So with latest typescript-eslint this issue is fixed?

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

@gund Can you update it?

What exactly is broken?

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

This is fixed by #39.