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: update jest/globals env to jest #172

Closed
wants to merge 1 commit into from

Conversation

tombo1818
Copy link

replace { 'jest/globals': true } to { jest: true }

#171

jest-community/eslint-plugin-jest#44 (comment)

@pi0 pi0 requested a review from clarkdo October 15, 2021 10:13
@itsAnuga
Copy link

We don't even have Jest in the project and still receives this issue when linting.
We updated eslint from 7.15.x to v8.0.x and @nuxtjs/eslint-config from v5.0.x to 6.0.x. Then this started to happen.

@clarkdo
Copy link
Member

clarkdo commented Oct 21, 2021

Can you please provide a reproducible repo or codesandbox for this issue?

@tombo1818
Copy link
Author

@pi0 pi0 changed the title fix: "jest/globals" is unknown fix: update jest/globals env to jest Oct 24, 2021
@clarkdo
Copy link
Member

clarkdo commented Oct 24, 2021

Thanks, I’ll check it out tonight.

@clarkdo
Copy link
Member

clarkdo commented Oct 24, 2021

This issue has been fix in latest eslint-config by updating eslint and jest plugin.

Can you try:

yarn upgrade @nuxtjs/eslint-config@latest @nuxtjs/eslint-config-typescript@latest 

// or

npm install @nuxtjs/eslint-config@latest   @nuxtjs/eslint-config-typescript@latest

@tombo1818
Copy link
Author

@clarkdo I tried this package update and it fixed it, thank you!

@clarkdo clarkdo closed this Nov 28, 2021
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.

4 participants