Skip to content

Commit dac20a4

Browse files
authored
Fix es2020 globals not being recognized
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.
1 parent eb187de commit dac20a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99

1010
"env": {
11-
"es6": true,
11+
"es2020": true,
1212
"node": true
1313
},
1414

0 commit comments

Comments
 (0)