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

Fix eslint-plugin-jest config #15826

Merged
merged 3 commits into from Aug 2, 2023

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Aug 1, 2023

Q                       A
Fixed Issues? The recommended eslint-plugin-jest rules have been disabled after #15748
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

In this PR we extend the files and rules only when the eslint config item, returned by jest:recommended, has configured such key.

I realize that the eslint-plugin-jest is not activated after I delete a few plugin-jest rules and it turns out the linter is still green: It's simply too good to be true. My guess is that if we blindly extend empty rules, the jest rules are not enabled.

Then I enable the jest/no-identical-title rule to prove that the linter is working again.

@babel-bot
Copy link
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/54989/

@JLHwung JLHwung marked this pull request as ready for review August 2, 2023 00:55
@nicolo-ribaudo nicolo-ribaudo merged commit b23b0eb into babel:main Aug 2, 2023
57 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the fix-eslint-jest-config branch August 2, 2023 07:48
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Nov 2, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants