From: Thomas Lamprecht Date: Tue, 26 Apr 2022 09:08:39 +0000 (+0200) Subject: switch to es2021 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=931088d3e5f6211fb519142c8090cee4ab386327;hp=5f14e37f3d48811d6bfebee346f47d059e37dcb8;p=pve-eslint.git switch to es2021 Signed-off-by: Thomas Lamprecht --- diff --git a/src/bin/app.js b/src/bin/app.js index 7343beb..c5096fc 100644 --- a/src/bin/app.js +++ b/src/bin/app.js @@ -51,7 +51,7 @@ if (program.threads) { const defaultConfig = { parserOptions: { - ecmaVersion: 2020, + ecmaVersion: 2021, ecmaFeatures: { impliedStrict: true, }, @@ -59,7 +59,7 @@ const defaultConfig = { env: { browser: true, node: true, - es2020: true, // automatically sets ecmaVersion to 2020 and allows es2020 globals + es2021: true, // automatically sets ecmaVersion to 2021 and allows es2021 globals }, globals: { Ext: "writable",