Skip to content

What's the difference between parserOptions/ecmaVersion:13 vs. env/es2021:true? #15166

Answered by nzakas
pubmikeb asked this question in Q&A
Discussion options

You must be logged in to vote

parserOptions indicates the syntax you want to allow. The es2022 environment indicates that you want to add the ES2022 global variables.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@melroy89
Comment options

@nzakas
Comment options

Answer selected by pubmikeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants