From: Thomas Lamprecht Date: Wed, 9 Jun 2021 09:05:48 +0000 (+0200) Subject: switch to es2020 for bullseyse X-Git-Url: https://git.proxmox.com/?p=pve-eslint.git;a=commitdiff_plain;h=35543d16f3ebefe9dcb8ad965d59ecf9c8158515 switch to es2020 for bullseyse at least in theory this should be enough https://eslint.org/docs/user-guide/configuring/language-options#specifying-environments Signed-off-by: Thomas Lamprecht --- diff --git a/src/app.js b/src/app.js index 07ba5cb..020d552 100644 --- a/src/app.js +++ b/src/app.js @@ -41,7 +41,7 @@ if (!paths.length) { const defaultConfig = { parserOptions: { - ecmaVersion: 2018, + ecmaVersion: 2020, ecmaFeatures: { impliedStrict: true, }, @@ -49,7 +49,7 @@ const defaultConfig = { env: { browser: true, node: true, - es2017: true, + es2020: true, // automatically sets ecmaVersion to 2020 and allows es2020 globals }, globals: { Ext: "writable", @@ -287,10 +287,9 @@ const cli = new eslint.CLIEngine({ }); const report = cli.executeOnFiles(paths); + let exitcode = 0; -let files_err = []; -let files_warn = []; -let files_ok = []; +let files_err = [], files_warn = [], files_ok = []; let fixes = 0; console.log('------------------------------------------------------------'); report.results.forEach(function(result) {