From dac20a40e65ab7a08c99c2523393ae689cd8f819 Mon Sep 17 00:00:00 2001 From: Farid Nouri Neshat Date: Tue, 15 Oct 2019 12:13:57 +0200 Subject: [PATCH] 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. --- eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eslintrc.json b/eslintrc.json index b8048e04..2d0e8016 100644 --- a/eslintrc.json +++ b/eslintrc.json @@ -8,7 +8,7 @@ }, "env": { - "es6": true, + "es2020": true, "node": true },