at least in theory this should be enough
https://eslint.org/docs/user-guide/configuring/language-options#specifying-environments
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
const defaultConfig = {
parserOptions: {
- ecmaVersion: 2018,
+ ecmaVersion: 2020,
ecmaFeatures: {
impliedStrict: true,
},
env: {
browser: true,
node: true,
- es2017: true,
+ es2020: true, // automatically sets ecmaVersion to 2020 and allows es2020 globals
},
globals: {
Ext: "writable",
});
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) {