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
[Suggestion] Allow @ts-ignore at the end of the same line #20111
Would be great, but I think having a separate syntax, eg. @ts-ignore-line would be safer as there would not be any doubt about swallowing errors for the next line.
Reacted by Thom Allen, Steven, Owen Buckley, romdej, sproclavism, Justin D Mathew, Nathan Whittaker, Chrysaloid, lborgman, Qwerty (Vítězslav Ackermann Ferko) and 1 more
It'd be nice if the Typescript team would either accept or reject this issue, instead of leaving it in limbo.
It seems to me like this would improve TypeScript for everyone ... but if the maintainers don't agree, even a one-sentence explanation of why they feel it would be detrimental would be greatly appreciated.
Reacted by Nick Chevsky, Nick Sweeting, Ethan, Joshua Irmer, Auxtal, Ben, Abdul S, Marco Melilli, Abhishek Mane, Anson Kao and 7 more
Such a necessary and important functionality, code cleanliness suffers because of this, it's terribly annoying when everything looks beautiful and elegant, but then this annotation appears, it stands out so much. Team, please pay attention to this issue! It's been almost 6 years already! It's really very painful.
+1 for @ts-ignore-line
Lack of it blocks team migration to TS.
"Require massive code junk!? Forget it!"
Choose: (A) TS adoption or (B) legibility-crime?
Activity
mgcrea commentedon Jul 17, 2019
Would be great, but I think having a separate syntax, eg.
@ts-ignore-linewould be safer as there would not be any doubt about swallowing errors for the next line.xamgore commentedon Nov 10, 2019
Daniel Rosenwasser (@DanielRosenwasser) is it possible to include the feature into the upcoming 3.8 iteration?
bdrazen commentedon Dec 23, 2019
Still nothing on this...?
satelllte commentedon Jun 15, 2021
Still nothing on this? 😢
mckravchyk commentedon Sep 18, 2021
+1 for @ts-ignore-line
olafkotur commentedon Feb 11, 2022
+1 for @ts-ignore-line too :)
user72356 commentedon Apr 10, 2022
+1 for this. The ever responsive MS...
nikhil-varma commentedon Jun 7, 2022
+1 For this
Auxtal commentedon Mar 27, 2023
Please, how is this still open 😩
sansantosh commentedon May 6, 2023
work around:

You can do this instead :
user72356 commentedon May 6, 2023
That's even harder to read than having the ignore above the line.
sansantosh commentedon May 6, 2023
but it does save extra new lines
machineghost commentedon Jun 15, 2023
It'd be nice if the Typescript team would either accept or reject this issue, instead of leaving it in limbo.
It seems to me like this would improve TypeScript for everyone ... but if the maintainers don't agree, even a one-sentence explanation of why they feel it would be detrimental would be greatly appreciated.
Jropp commentedon Aug 2, 2023
+1
pinkboid commentedon Sep 15, 2023
+1
mafuuu-dev commentedon Oct 1, 2023
+1.
Such a necessary and important functionality, code cleanliness suffers because of this, it's terribly annoying when everything looks beautiful and elegant, but then this annotation appears, it stands out so much. Team, please pay attention to this issue! It's been almost 6 years already! It's really very painful.
Olivier Louvignes (@mgcrea) Jeremy Walker (@machineghost) Daniel Rosenwasser (@DanielRosenwasser) Wesley Wigham (@weswigham) santosh shrestha (@sansantosh)
dandv commentedon Jan 30, 2024
ESLint has this feature in the form of
// eslint-disable-line. Would be nice for TypeScript to allow a similar syntax.lborgman commentedon Aug 8, 2024
Any news?
snarbies commentedon Aug 8, 2024
If there was, this is where it would be. Set your expectations accordingly.
kenlane33 commentedon Sep 11, 2024
+1 for @ts-ignore-line
Lack of it blocks team migration to TS.
"Require massive code junk!? Forget it!"
Choose: (A) TS adoption or (B) legibility-crime?
lborgman commentedon Jul 16, 2026
I just tried in vscode. It did not work.