-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
externalThis issue is with another package, not typescript-eslint itselfThis issue is with another package, not typescript-eslint itself
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
ESLint Config
module.exports = {
parser: "@typescript-eslint/parser",
extends: [
'plugin:@typescript-eslint/recommended',
'@react-native-community',
'airbnb',
],
...
};
Expected Result
✨ Done in 26.63s.
Actual Result
Oops! Something went wrong! :(
ESLint: 8.16.0
Error: .eslintrc.js » @react-native-community/eslint-config#overrides[2]:
Environment key "jest/globals" is unknown
at /Users/bardiamist/Documents/my-proj/my-proj-mobile/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2058:23
at Array.forEach (<anonymous>)
at ConfigValidator.validateEnvironment (/Users/bardiamist/Documents/my-proj/my-proj-mobile/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2052:34)
at ConfigValidator.validateConfigArray (/Users/bardiamist/Documents/my-proj/my-proj-mobile/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2202:18)
at CascadingConfigArrayFactory._finalizeConfigArray (/Users/bardiamist/Documents/my-proj/my-proj-mobile/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3947:23)
at CascadingConfigArrayFactory.getConfigArrayForFile (/Users/bardiamist/Documents/my-proj/my-proj-mobile/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3753:21)
at FileEnumerator._iterateFilesRecursive (/Users/bardiamist/Documents/my-proj/my-proj-mobile/node_modules/eslint/lib/cli-engine/file-enumerator.js:446:49)
at _iterateFilesRecursive.next (<anonymous>)
at FileEnumerator.iterateFiles (/Users/bardiamist/Documents/my-proj/my-proj-mobile/node_modules/eslint/lib/cli-engine/file-enumerator.js:297:49)
at iterateFiles.next (<anonymous>)
error Command failed with exit code 2.
Additional Info
This error appeared after update "@typescript-eslint/eslint-plugin", "@typescript-eslint/parser", and "@typescript-eslint/typescript-estree" from "5.24.0" to "5.25.0". Still exist in 5.26.0 and in 5.27.0.
So I still use 5.24.0 because it works without errors.
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
5.27.0 |
@typescript-eslint/parser |
5.27.0 |
@typescript-eslint/typescript-estree |
5.27.0 |
TypeScript |
4.7.2 |
ESLint |
8.16.0 |
node |
18.2.0 |
@react-native-community/eslint-config |
3.0.2 |
Metadata
Metadata
Assignees
Labels
externalThis issue is with another package, not typescript-eslint itselfThis issue is with another package, not typescript-eslint itself