From ae1d979854546562a7cb9a1da8cd02ca0d9ec705 Mon Sep 17 00:00:00 2001 From: Antoine BERNIER Date: Sat, 16 Nov 2024 00:41:49 +0100 Subject: [PATCH] test now include lint+format --- .husky/pre-push | 1 + package.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .husky/pre-push diff --git a/.husky/pre-push b/.husky/pre-push new file mode 100644 index 000000000..bed818841 --- /dev/null +++ b/.husky/pre-push @@ -0,0 +1 @@ +yarn prettier --log-level=silent || echo 'prettier nok' diff --git a/package.json b/package.json index 572302f68..b573ec9c9 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,7 @@ "eslint:ci": "eslint .", "prettier": "prettier --check .", "prettier-fix": "prettier --write .", - "test": "yarn eslint:ci && (cd test/e2e; ./e2e.sh)", + "test": "yarn eslint:ci && yarn typecheck && yarn prettier && (cd test/e2e; ./e2e.sh)", "typecheck": "tsc --noEmit --emitDeclarationOnly false --strict --jsx react", "typegen": "tsc --emitDeclarationOnly", "storybook": "cross-env NODE_OPTIONS=\"--openssl-legacy-provider\" storybook dev -p 6006",