feat: bundle document before gathering stats (#227)

* feat: bundle document before gathering stats
* exitWithError moved to utils
This commit is contained in:
Andriy Leliv
2020-11-26 10:26:38 +02:00
committed by GitHub
parent 199855fd80
commit 258820349b
9 changed files with 87 additions and 52 deletions

View File

@@ -277,3 +277,8 @@ export function printUnusedWarnings(config: LintConfig) {
process.stderr.write(`Check the spelling and verify you added plugin prefix.\n`);
}
}
export function exitWithError(message: string) {
process.stderr.write(red(message));
process.exit(1);
}