From 560482e17a14dae8390fddbb110c8c36318afb87 Mon Sep 17 00:00:00 2001 From: cleysonlb Date: Mon, 4 May 2020 13:41:36 -0300 Subject: [PATCH] improve lint-staged with jest and prettier --- .lintstagedrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.lintstagedrc b/.lintstagedrc index 329c2e7..1f03cbe 100644 --- a/.lintstagedrc +++ b/.lintstagedrc @@ -1,4 +1,9 @@ { - "src/**/*.{ts,js}": ["eslint --fix"] + "src/**/*.{ts,js}": [ + "eslint --fix", + "jest", + "prettier --check --write 'src/**/*.{ts,js}'", + "git add" + ] } \ No newline at end of file