From 526dc3ee63d308aef1ba2c75cd7a9cc4c9577a73 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Mon, 10 Jan 2022 01:43:23 +0100 Subject: build: Add pre-commit hook MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Run lint and tests on source files changes. Signed-off-by: Kristóf Marussy --- .nano-staged.json | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .nano-staged.json (limited to '.nano-staged.json') diff --git a/.nano-staged.json b/.nano-staged.json new file mode 100644 index 0000000..2a8c905 --- /dev/null +++ b/.nano-staged.json @@ -0,0 +1,7 @@ +{ + "*.{cjs,js,jsx,ts,tsx}": [ + "yarn lint:precommit", + "yarn test --findRelatedTests" + ], + "*.json": "prettier --write" +} -- cgit v1.2.3-54-g00ecf