-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[eslint-config] Environment key "jest/globals" is unknown #33955
Comments
Related issue typescript-eslint/typescript-eslint#5132 |
Looks fixed in typescript-eslint 5.27.1 |
I don't understand. I think @react-native-community/eslint-config project should upgrade @typescript-eslint packages, @react-native-community/eslint-config package have dependencies
And you can say "just upgrade your project dependencies only" I wonder, here is managing package "@react-native-community/eslint-config" I tried edit my project yarn.loack file, to @typescript-eslint/ libs to ^5.27.1 |
I don't know what's the better,
|
I had the same error and what worked was yarn-deduplicate, see also this comment: #32181 (comment) I think it's related. |
Updating |
Problem appears often after some depencencies update I fixing by next steps:
|
Here is what helped me More details here |
In my case I was missing the file:
This solves the issue. |
For me this command fix it... |
In the package.json, "lint" is lowercase instead of "Lint". So the command should be "npm run lint" When I ran the command i encountered an error saying jest/globals not found. I found a fix on github. facebook/react-native#33955
nvm use 16 helped me |
For me this error showed up at upgrading from RN 0.73.9 to 0.74.5, I fixed it with updating in package.json the following 2 modules vrom v5 to v7:
|
* Updates RN to 0.75.4 in the sample app and E2E test * Removes Flipper from iOS * Fixes lint issue (see facebook/react-native#33955) * enable corepack in testflight dependencies step * Sets the newArchEnabled=false for legacy builds * enable corepack in testflight build step * Enable corepack in a separate step * Removes corepack step * Updates OnLoad.cpp and CMakeList.txt to match the RN version samples * Enable corepack and remove cache check * Reverts CMakeLists.txt change * Update yarn cache in testflight build * Updates PrivacyInfo * misc(ci): Remove unused testflight node_modules cache (#4178) --------- Co-authored-by: LucasZF <[email protected]> Co-authored-by: Krystof Woldrich <[email protected]>
Description
I use
@react-native-community/eslint-config
with TypeScript. After update "@typescript-eslint/eslint-plugin", "@typescript-eslint/parser", and "@typescript-eslint/typescript-estree" from "5.24.0" to "5.25.0" I have errorVersion
3.0.2
Output of
npx react-native info
Steps to reproduce
Use
@react-native-community
Run
yarn eslint .
Snack, code example, screenshot, or link to a repository
The text was updated successfully, but these errors were encountered: