diff --git a/packages/ui/.gitignore b/packages/ui/.gitignore index 292d40c00..09a0bee2b 100644 --- a/packages/ui/.gitignore +++ b/packages/ui/.gitignore @@ -21,5 +21,6 @@ yarn-error.log* # misc cache +.*cache .DS_Store *.env diff --git a/packages/ui/.husky/.gitignore b/packages/ui/.husky/.gitignore new file mode 100644 index 000000000..31354ec13 --- /dev/null +++ b/packages/ui/.husky/.gitignore @@ -0,0 +1 @@ +_ diff --git a/packages/ui/.husky/commit-msg b/packages/ui/.husky/commit-msg new file mode 100755 index 000000000..fe4c17a22 --- /dev/null +++ b/packages/ui/.husky/commit-msg @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx --no-install commitlint --edit "" diff --git a/packages/ui/.husky/pre-commit b/packages/ui/.husky/pre-commit new file mode 100755 index 000000000..36af21989 --- /dev/null +++ b/packages/ui/.husky/pre-commit @@ -0,0 +1,4 @@ +#!/bin/sh +. "$(dirname "$0")/_/husky.sh" + +npx lint-staged diff --git a/packages/ui/package.json b/packages/ui/package.json index 013ce8187..128710ec9 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -58,7 +58,7 @@ ] }, "lint-staged": { - "*.{ts,tsx}": "eslint --cache --fix", + "*.{ts,tsx}": "eslint --format pretty --cache --fix", "*.scss": "stylelint --fix" } }