Bug: Environment key "es2022" is unknown with ESLint: 8.8.0
See original GitHub issueEnvironment
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?
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:
- Created 2 years ago
- Reactions:3
- Comments:14 (10 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fine by me. This confusion will go away with the new config system anyway.
Done: https://github.com/eslint/eslintrc/pull/68