Skip to content

linter: Move Vitest rules to their own implementations #21664

@camchenry

Description

@camchenry

Currently, we have the concept of "Vitest compatible" where the Jest rules act as if they were also Vitest rules. This does save on the amount of code that needs to be written, but it is confusing. It makes the linter more complex, because it adds a lot of special casing to the tooling.

As a result, we have a number of bugs related to these "Vitest compatible" rules:

I propose that we:

  • Move each Vitest compatible Jest rule in VITEST_COMPATIBLE_JEST_RULES to an additional new Vitest rule
  • Once all rules are migrated, remove the VITEST_COMPATIBLE_JEST_RULES array

In addition, we will also want to do as part of this:

  • Update documentation for the new Vitest rules to be Vitest-specific, start removing references to Jest.
  • Allow configuration to be automatically generated (using JsonSchema)

Rules to convert:

Metadata

Metadata

Assignees

Labels

Type

Priority

None yet

Effort

None yet

Start date

None yet

Target date

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions