question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: Environment key "es2022" is unknown with ESLint: 8.8.0

See original GitHub issue

Environment

Node version: v14.18.3 npm version: 6.14.15 Local ESLint version: v8.8.0 Global ESLint version: v8.8.0 Operating System: Windows 11 Professional

What parser are you using?

@typescript-eslint/parser

What did you do?

Configuration
"env": {
    "browser": true,
    "es2022": true
  }
npx eslint . --fix

What did you expect to happen?

No error

What actually happened?

Oops! Something went wrong! 😦

ESLint: 8.8.0

Error: .eslintrc.json: Environment key “es2022” is unknown

Participation

  • I am willing to submit a pull request for this issue.

Additional comments

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
nzakascommented, Feb 8, 2022

Fine by me. This confusion will go away with the new config system anyway.

3reactions
ljharbcommented, Feb 7, 2022
Read more comments on GitHub >

github_iconTop Results From Across the Web

Environment key "es2021" is unknown - Stack Overflow
I've got it after some changes in .eslintrc. I've changed "es2021": true, into "es2020": true,; After I've got the error Parsing error: ...
Read more >
eslint | Yarn - Package Manager
A bug fix in a rule that results in ESLint reporting fewer linting errors. A bug fix to the CLI or core (including...
Read more >
Environment key "es2022" is unknown #1741 - Issuehunt
I got error while running eslint. <!-- 2️⃣ Specify which rule is buggy here and in the title -->. <!-- 3️⃣ Add some...
Read more >
ESLint - npm
An AST-based pattern checker for JavaScript.. Latest version: 8.30.0, last published: 12 days ago. Start using eslint in your project by ...
Read more >
Bug: Environment key "es2022" is unknown with ESLint: 8.8.0
Bug : Environment key "es2022" is unknown with ESLint: 8.8.0. Environment. Node version: v14.18.3 npm version ...
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