Skip to content

better-typescript-lib@2.2.0 does not work with @typescript-eslint/no-throw-literal #18

Closed
@kasugaiasuka

Description

@kasugaiasuka

Steps to reproduce:

  1. Install better-typescript-lib@2.2.0.
  2. Install @typescript-eslint/eslint-plugin@5.46.1 and other necessities.
  3. Activate @typescript-eslint/no-throw-literal rule.
  4. Lint the code below.
throw new Error("foo");

Expected:

Nothing is flagged.

Actual:

error  Expected an error object to be thrown  @typescript-eslint/no-throw-literal

Additional information:

better-typescript-lib@2.1.0 works well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions