trustwallet-assets/script/main/check.ts
Adam R 68e0cc6d90
[internal] Set up Linting (#4040)
* Add ESLint infrastructure.

* Lint auto fixes.

* Lint fixes.

* Lint fixes.

* Add Lint to CI builds.

Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
2020-09-18 16:39:31 +02:00

32 lines
696 B
TypeScript

import { sanityCheckAll, consistencyCheckAll } from "../action/update-all";
export async function main(): Promise<void> {
let returnCode = 0;
try {
// warnings ignored
const [errors1] = await sanityCheckAll();
if (errors1.length > 0) {
returnCode = errors1.length;
}
} catch(err) {
console.error(err);
returnCode = 1;
}
try {
// warnings ignored
const [errors1] = await consistencyCheckAll();
if (errors1.length > 0) {
returnCode = errors1.length;
}
} catch(err) {
console.error(err);
returnCode = 1;
}
process.exit(returnCode);
}
main();