Skip to content

Rule to forbid passing non-Errors into Subject.error() #120

@JasonWeinzierl

Description

@JasonWeinzierl

Write a new rule to forbid the following, similar to our throw-error rule or typescript-eslint's only-throw-error rule.

subject.error('Kaboom!');

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions