Skip to content

Conversation

@faridnsh
Copy link
Contributor

Fixes standard/standard#1436

The ecmaVersion in parserOptions is only for setting syntax support.

From the docs: https://eslint.org/docs/user-guide/configuring

supporting ES6 syntax is not the same as supporting new ES6 globals

Setting the es2020 env will actually set the globals:

adds all ECMAScript 2020 globals and automatically sets the ecmaVersion parser option to 11.

Fixes standard/standard#1436

The ecmaVersion in parserOptions is only for setting syntax support.

From the docs: https://eslint.org/docs/user-guide/configuring

> supporting ES6 syntax is not the same as supporting new ES6 globals

Setting the es2020 env will actually set the globals:

> adds all ECMAScript 2020 globals and automatically sets the ecmaVersion parser option to 11.
@developher-net
Copy link

If this is approved, what does it take to get merged and released?

@mightyiam
Copy link
Contributor

@amclin it would likely take @feross pressing the big green button.

@Saiv46
Copy link

Saiv46 commented Feb 25, 2020

Any progress?

@dlqqq
Copy link

dlqqq commented Aug 11, 2020

i'm assuming this PR will only be merged upon the v15.0.0 release?

@feross feross merged commit d6fd464 into standard:master Oct 21, 2020
@feross
Copy link
Member

feross commented Oct 21, 2020

This will be part of standard v15.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

'BigInt' is not defined.

8 participants