diff --git a/.husky.toml b/.husky.toml deleted file mode 100644 index 79e2c27..0000000 --- a/.husky.toml +++ /dev/null @@ -1,41 +0,0 @@ -# version-file which will write or read current semver -version-file = "internal/version/version" - -# hook scripts -[hooks] - -# after version calc, -# with use the {{ .Version }} to upgrade other files. -post-version = [ - "sed -i -e 's/\"version\": \"[^\"]*\"/\"version\": \"{{ .Version }}\"/g' testdata/package.json", - "sed -i -e 's/version: [^\\n]*/version: {{ .Version }}/g' testdata/pubspec.yaml" -] - -# git hook pre commit -# pre-commit = [ -# "golangci-lint run", -# "husky lint-staged", -# "husky lint-commit", -# ] - -# git hook commit msg -commit-msg = [ - "husky lint-commit", -] - -# list staged files do some pre-process and git add -[lint-staged] -"*.go" = [ - "goimports -l -w", - "gofmt -l -w", - "go mod tidy", -] - -# commit msg rule default support conventional commits -[lint-commit] -# could check if this exists -# email = "^(.+@gmail.com|.+@qq.com)$" -# optional custom types check regex -types = "^(feat|fix|build|chore|ci|docs|perf|refactor|revert|style|test)$" -# optional header check regex -header = "^(?P\w+)(\((?P[\w/.-]+)\))?(?P!)?:( +)?(?P
.+)" \ No newline at end of file