]> git.proxmox.com Git - pve-eslint.git/commitdiff
switch to es2021
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Apr 2022 09:08:39 +0000 (11:08 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 26 Apr 2022 09:08:39 +0000 (11:08 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/bin/app.js

index 7343bebca4f0a362072525f81dd3ffa3b1c50387..c5096fca90325dd7d9c0619359aa5a605865e6cd 100644 (file)
@@ -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",