eslint: autofixes

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2020-04-10 08:26:51 +02:00
parent 5fad4d8186
commit 8e4082d9d6

View File

@ -34,7 +34,7 @@ const defaultConfig = {
ecmaVersion: 2017,
ecmaFeatures: {
impliedStrict: true,
}
},
},
env: {
browser: true,
@ -197,7 +197,7 @@ const defaultConfig = {
"no-mixed-operators": "warn",
"no-multiple-empty-lines": "warn",
"no-trailing-spaces": "warn",
"no-underscore-dangle": [ "warn", { allowAfterThis: true, }],
"no-underscore-dangle": ["warn", { allowAfterThis: true }],
"no-unneeded-ternary": "warn",
"no-whitespace-before-property": "warn",
"object-curly-newline": "warn",
@ -229,8 +229,8 @@ if (program.config) {
path = process.cwd() + "/" + path;
}
config = {
extends: path
}
"extends": path,
};
}
const cli = new eslint.CLIEngine({
@ -300,7 +300,7 @@ report.results.forEach(function(result) {
});
if (report.results.length > 1) {
console.log((`${color.bold(files_ok.length + files_err.length)} files:`));
console.log(`${color.bold(files_ok.length + files_err.length)} files:`);
if (files_err.length > 0) {
console.log(color.red(`${color.bold(files_err.length)} files have Errors`));
}
@ -329,5 +329,4 @@ if (program.fix) {
}
process.exit(exitcode);
}());