From dfa175afb539c7fa6361b2d5ca6142940d7e7c36 Mon Sep 17 00:00:00 2001 From: Plumtree3D <ham.in.kneesocks@gmail.com> Date: Thu, 29 Sep 2022 12:14:01 +0200 Subject: [PATCH] test: implemented automatic lint on commit implemented automatic run of lit and format fix on commit with Husky --- .husky/pre-commit | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 .husky/pre-commit diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..2d291ca --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,6 @@ +#!/usr/bin/env sh +. "$(dirname -- "$0")/_/husky.sh" + +echo 'Starting commit... ðŸ¶' +npm run lint -- --fix +echo 'Code indented ðŸ‘' -- GitLab