Skip to content

Linter plugins: Add new options to RuleTester #19916

@overlookmotel

Description

@overlookmotel

ESLint 10 added 3 options to RuleTester:

  • requireMessage
  • requireLocation
  • requireData

These options are not required for correctness. Tests ported from ESLint's RuleTester to Oxlint's will still work fine.

These options just make RuleTester stricter when they're enabled, forcing the writer of tests to add further details to each invalid test case.

We should add these options for feature-parity with ESLint's RuleTester, but it's not a very high priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority

    None yet

    Start date

    None yet

    Target date

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions