Skip to content

Rule: consistent RuleTester.errors property #59

Open
@macklinu

Description

@macklinu

When writing ESLint rule tests using RuleTester, it can be beneficial to enforce consistent usage of the errors property in this RuleTester docs screenshot:

image

For example, I usually always want to enforce errors to be an object, and I want to require that object to include the message, line, and column properties.

Thoughts on adding a rule like this? Still thinking through what the name could be and what the default options would be for this rule.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions