diff --git a/ui/.husky/pre-commit b/ui/.husky/pre-commit index c37466e2..92226b1f 100644 --- a/ui/.husky/pre-commit +++ b/ui/.husky/pre-commit @@ -1,4 +1 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx lint-staged \ No newline at end of file +npx lint-staged ui/ \ No newline at end of file diff --git a/ui/.lintstagedrc b/ui/.lintstagedrc new file mode 100644 index 00000000..781ab722 --- /dev/null +++ b/ui/.lintstagedrc @@ -0,0 +1,4 @@ +{ + "*.{js,jsx,ts,tsx}": "eslint --fix", + "*": "prettier --ignore-unknown --write" +} diff --git a/ui/package.json b/ui/package.json index df9ab290..f1578be1 100644 --- a/ui/package.json +++ b/ui/package.json @@ -13,7 +13,7 @@ "format": "prettier . --write", "codegen": "graphql-codegen", "analyze": "ANALYZE=true next build", - "prepare": "cd .. && husky install ui/.husky" + "prepare": "cd .. && husky ui/.husky" }, "dependencies": { "@emotion/cache": "^11.11.0",