Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vitest config #373

Merged
merged 2 commits into from
Sep 26, 2024
Merged

Add Vitest config #373

merged 2 commits into from
Sep 26, 2024

Conversation

Mrtenz
Copy link
Member

@Mrtenz Mrtenz commented Sep 24, 2024

This adds a new package, @metamask/eslint-config-vitest, which configures rules for Vitest tests. Vitest has a plugin with almost identical rules as the Jest plugin, so the rules are essentially the recommended Vitest rules, and whatever rules we had enabled for Jest. The rule snapshots for Jest and Vitest are nearly identical.

@Mrtenz Mrtenz requested review from a team as code owners September 24, 2024 08:22
Copy link

socket-security bot commented Sep 24, 2024

New dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@vitest/eslint-plugin@1.1.4 None 0 427 kB veritemm

View full report↗︎

rekmarks
rekmarks previously approved these changes Sep 24, 2024
Copy link
Member

@rekmarks rekmarks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@Mrtenz Mrtenz marked this pull request as draft September 24, 2024 15:46
Base automatically changed from mrtenz/eslint-9 to main September 25, 2024 17:52
@Mrtenz Mrtenz dismissed rekmarks’s stale review September 25, 2024 17:52

The base branch was changed.

@Mrtenz Mrtenz marked this pull request as ready for review September 25, 2024 18:17
@Mrtenz Mrtenz merged commit 7e82d31 into main Sep 26, 2024
13 checks passed
@Mrtenz Mrtenz deleted the mrtenz/vitest-config branch September 26, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants