You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide linting support (eslint?) for deprecated extension APIs #94751
It would be great if we provided a lint package that extension authors could use to identify deprecated APIs. Additionally, any other common mistakes, or anti-patterns we've seen used.
We were looking at this recently and we might have the information on hand to do this at least from things like completion. Whether we could do this for suggestion diagnostics might be another issue.
Reacted by Eric Amodio, Johannes Rieken, Yuki Ueda and Matt Acosta
Activity
eamodio commentedon Apr 9, 2020
FYI Yuki Ueda (@Ikuyadeu) has some linting here: https://github.com/devreplay/devreplay/blob/master/src/rules/vscode.ts
Ikuyadeu commentedon Apr 9, 2020
Eric Amodio (@eamodio) Thank you for summarizing!
I want to add the information that I could not tell due to my English.

The lint is available as the vscode plugin
Left is deprecated code, right is setting file
./devreplay.jsonThat fixes the vscode rules https://github.com/devreplay/devreplay/blob/master/src/rules/vscode.ts#L43
Also, implementing vscode-plugin like eslint-plugin-vue is good, but sounds costy.
p.s. I plan to update them based on #88391
jrieken commentedon Apr 9, 2020
I love the idea and I am disappointed that TypeScript didn't look at this microsoft/TypeScript#33093. Pretty please, Daniel Rosenwasser (@DanielRosenwasser)
DanielRosenwasser commentedon Apr 15, 2020
We were looking at this recently and we might have the information on hand to do this at least from things like completion. Whether we could do this for suggestion diagnostics might be another issue.
Ikuyadeu commentedon Apr 28, 2020
In my idea, my extension and linter are MIT, so it can be used in this repository like language syntax files by the following steps.
How do you think? I hope to improve the extension development even linter ownership will be moved.
jrieken commentedon Sep 29, 2020
TS now supports the
@deprecatedand usages of deprecated APIs are flag accordingly. Closing as obsolete