Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added @ts-expect-error to @ts-ignore directives #36014

Merged
merged 4 commits into from
Mar 5, 2020

Commits on Jan 5, 2020

  1. Added @ts-expect-error to @ts-ignore directives

    Similar to `// @ts-ignore`, but will itself cause a new error diagnostic if it does not cause an existing diagnostic to be ignored.
    
    Technical summary:
    1. The scanner will now keep track of `CommentDirective`s it comes across: both `@ts-expect-error` and `@ts-ignore`
    2. During type checking, the program will turn those directives into a map keying them by line number
    3. For each diagnostic, if it's preceded by a directive, that directive is marked as "used"
    4. All `@ts-expect-error` directives not marked as used generate a new diagnostic error
    JoshuaKGoldberg committed Jan 5, 2020
    Configuration menu
    Copy the full SHA
    eb5610a View commit details
    Browse the repository at this point in the history

Commits on Mar 3, 2020

  1. Configuration menu
    Copy the full SHA
    7a5ef8a View commit details
    Browse the repository at this point in the history

Commits on Mar 5, 2020

  1. Configuration menu
    Copy the full SHA
    6290212 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    88b0f89 View commit details
    Browse the repository at this point in the history