@react-native-community/eslint-config#overrides[2]: Environment key "jest/globals" is unknown

See original GitHub issue

Problem

i create a new project, use npx react-native init Demo from https://github.com/react-native-community/cli/blob/master/docs/init.md, and open js file, vs code show a tip as below.

ESLint: Demo/.eslintrc.js » @react-native-community/eslint-config#overrides[2]: Environment key “jest/globals” is unknown . Please see the ‘ESLint’ output channel for details.

I want to upgrade eslint-plugin-config, but @react-native-community/eslint-config locked it.

React Native version:

react-info
System:
    OS: macOS High Sierra 10.13.6
    CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
    Memory: 3.31 GB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 12.7.0 - ~/.nvm/versions/node/v12.7.0/bin/node
    Yarn: 1.17.3 - ~/.nvm/versions/node/v12.7.0/bin/yarn
    npm: 6.10.0 - ~/.nvm/versions/node/v12.7.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
    Android SDK:
      API Levels: 25, 26, 27, 28
      Build Tools: 25.0.2, 26.0.2, 27.0.3, 28.0.1, 28.0.3
      System Images: android-19 | ARM EABI v7a, android-19 | Intel x86 Atom, android-19 | Google APIs Intel x86 Atom, android-22 | Google APIs Intel x86 Atom, android-23 | Google APIs Intel x86 Atom, android-26 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
      Android NDK: 19.2.5345600
  IDEs:
    Android Studio: 3.4 AI-183.6156.11.34.5522156
    Xcode: 10.1/10B61 - /usr/bin/xcodebuild
  npmPackages:
    react: 16.8.6 => 16.8.6
    react-native: 0.60.4 => 0.60.4
  npmGlobalPackages:
    react-native-cli: 2.0.1

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11

github_iconTop GitHub Comments

24reactions
scarcococommented, Aug 11, 2019

my problem, i open project from parent directory, not project directory

10reactions
alvesheliocommented, Mar 19, 2020

Hi guys Any progress on this issue? I’m using a monorepo with a web and mobile app and I’m having the same issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[eslint-config] Environment key "jest/globals" is unknown #33955
Description I use @react-native-community/eslint-config with TypeScript. After update "@typescript-eslint/eslint-plugin", ...
Read more >
Eslint jest/globals environment key unknown - Stack Overflow
When running a lint task I keep getting the error Environment key "jest/globals" is unknown . I've traced the config-validator as far as...
Read more >
Environment key "jest/globals" is unknown - Code Grepper
environment key "jest/globals" is unknown · Oops, You will need to install Grepper and log-in to perform this action.
Read more >
How to solve this error: package.json » eslint-config-react-app ...
[Solved]-How to solve this error: package.json » eslint-config-react-app/jest#overrides[0]: Environment key "jest/globals" is unknown-Reactjs.
Read more >
Configuring Jest
If you'd like to use your package.json to store Jest's config, the "jest" key should be used on the top level so Jest...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found