You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fixesstandard/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.
What version of this package are you using?
14.3.1
What operating system, Node.js, and npm version?
macOS 10.14.6
Node.js 12.10.0
npm 6.11.3
What happened?
I had the following code:
Got the following error:
This was mentioned as fixed in 14.1.0 here: #1378 (comment)
What did you expect to happen?
No error
Are you willing to submit a pull request to fix this bug?
Yes
The text was updated successfully, but these errors were encountered: