Skip to content

Rule: require tests for rules #2

Open
@not-an-aardvark

Description

@not-an-aardvark

Requires a rule file to have tests. Can be configured with a location of the tests.

/* eslint eslint-plugin/require-rule-tests: ["error", {"testPath": "../../tests/lib/rules/"}]

If the file at ../../tests/lib/rules/${__filename} exists (relative to rule file), an error is reported.

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