Skip to content

Commit

Permalink
fix: tweaks, yaro exit 1, ignores, lint-staged
Browse files Browse the repository at this point in the history
Signed-off-by: Charlike Mike Reagent <[email protected]>
  • Loading branch information
tunnckoCore committed Mar 6, 2020
1 parent 3146026 commit 20ad4c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .hela.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,3 @@ const helaDev = require('@hela/dev');

Object.assign(exports, helaDev);
exports.eslint = require('@hela/eslint').helaCommand();

const foo = 123;
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"hela": "./.hela.config.js",
"husky": {
"hooks": {
"pre-commit": "lint-staged"
"pre-commit": "lint-staged --debug"
}
},
"lint-staged": {
Expand Down
6 changes: 5 additions & 1 deletion packages/eslint/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ function wrapper(prog) {
const files = args.slice(0, -2);
const argv = args[args.length - 2];
// const opts = args[args.length - 1];
console.log(args);

if (argv.init) {
const rootLintConfigFile = path.join(
Expand Down Expand Up @@ -104,6 +103,11 @@ function wrapper(prog) {
console.log('');
console.log(`${report.errorCount} error(s) ${warnings}found.`);
// formatCodeframe(report, true);

if (report.errorCount > 0) {
// eslint-disable-next-line unicorn/no-process-exit
process.exit(1);
}
});
}

Expand Down

0 comments on commit 20ad4c0

Please sign in to comment.