Support ES6 Syntax

Bump ESLint's parser options to support ES6 syntax, which allows developers to start using a number of features associated with modern JavaScript.

Doing this now that #2286 has been marked as resolved, since IE 11 support was the last known blocker for such changes.
This commit is contained in:
Andrew Armbruster 2023-05-28 11:54:01 +02:00
parent ea54427f42
commit ff67cf1cae

View File

@ -6,11 +6,11 @@
"plugin:compat/recommended" "plugin:compat/recommended"
], ],
"env": { "env": {
"es6": false, "es6": true,
"browser": true "browser": true
}, },
"parserOptions": { "parserOptions": {
"ecmaVersion": 5, "ecmaVersion": 6,
"sourceType": "script", "sourceType": "script",
"ecmaFeatures": { "ecmaFeatures": {
"globalReturn": false, "globalReturn": false,