Eslint tweaks (#696)

* make eslint styleguide into warnings & drop no-else-return

* reintroduce max-warnings=0

* remove unnecessary eslint line disable

* reintroduce no-else-return rule
This commit is contained in:
David Luzar
2020-02-05 17:41:14 +01:00
committed by GitHub
parent 2dd1796351
commit b7a6ceba68
3 changed files with 9 additions and 11 deletions

View File

@@ -7,7 +7,7 @@ const cli = new CLIEngine({});
module.exports = {
"*.{js,ts,tsx}": files => {
return (
"eslint --fix " + files.filter(file => !cli.isPathIgnored(file)).join(" ")
"eslint --max-warnings=0 --fix " + files.filter(file => !cli.isPathIgnored(file)).join(" ")
);
},
"*.{css,scss,json,md,html,yml}": ["prettier --write"],