]> git.proxmox.com Git - pve-eslint.git/commitdiff
switch to ECMA version 2018
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Jan 2021 16:02:53 +0000 (17:02 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Jan 2021 16:04:47 +0000 (17:04 +0100)
Mainly to enable the rest/spread operator (...variable).

Other new features include asynchronous iteration,
Promise.prototype.finally and additions to RegExp (look behind, named
capture groups, s flag)

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/app.js

index 3cafdf96b5d747099ec3bbfd5f791479091a5d92..07ba5cb8cc8d676311e41ee1bf34d31b22b7a945 100644 (file)
@@ -41,7 +41,7 @@ if (!paths.length) {
 
 const defaultConfig = {
     parserOptions: {
-       ecmaVersion: 2017,
+       ecmaVersion: 2018,
        ecmaFeatures: {
            impliedStrict: true,
        },