Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 4
    This causes an error in later versions of eslint: error Do not use "// @ts-ignore" comments because they suppress compilation errors @typescript-eslint/ban-ts-ignore Commented Jun 3, 2020 at 16:58
  • 13
    @Hykilpikonna I believe you can add /* eslint-disable */ to disable eslint before you use // @ts-ignore and then add /* eslint-enable */ after your problem line of code to re-enable eslint for the rest of your file. Commented Aug 3, 2020 at 20:38
  • 16
    You can also add // eslint-disable-next-line @typescript-eslint/ban-ts-comment before the ts line Commented Feb 9, 2021 at 19:30
  • 12
    This isn't is a fix or an answer, but rather a way of suppressing the complaint. Commented Oct 26, 2021 at 10:57
  • 39
    It is a fix when you want to go bed and just get it deployed. Commented Feb 1, 2023 at 6:05