From 226db486db308a6288ce98afa59374c363a30917 Mon Sep 17 00:00:00 2001 From: Nara Kasbergen Kwon <855115+xiehan@users.noreply.github.com> Date: Mon, 5 Aug 2024 03:57:38 -0600 Subject: [PATCH] chore(deps): remove husky (#307) --- .copywrite.hcl | 3 ++- .husky/.gitignore | 1 - .husky/pre-commit | 4 ---- package.json | 6 ++---- yarn.lock | 5 ----- 5 files changed, 4 insertions(+), 15 deletions(-) delete mode 100644 .husky/.gitignore delete mode 100755 .husky/pre-commit diff --git a/.copywrite.hcl b/.copywrite.hcl index d454224..d4f7f6b 100644 --- a/.copywrite.hcl +++ b/.copywrite.hcl @@ -8,6 +8,7 @@ project { # Supports doublestar glob patterns for more flexibility in defining which # files or folders should be ignored header_ignore = [ - ".husky/**", + # "vendors/**", + # "**autogen**", ] } diff --git a/.husky/.gitignore b/.husky/.gitignore deleted file mode 100644 index 31354ec..0000000 --- a/.husky/.gitignore +++ /dev/null @@ -1 +0,0 @@ -_ diff --git a/.husky/pre-commit b/.husky/pre-commit deleted file mode 100755 index 36af219..0000000 --- a/.husky/pre-commit +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -. "$(dirname "$0")/_/husky.sh" - -npx lint-staged diff --git a/package.json b/package.json index 68be3a5..51e613c 100644 --- a/package.json +++ b/package.json @@ -13,12 +13,11 @@ "compile": "tsc --pretty", "watch": "tsc -w", "test": "echo ok", - "lint": "eslint **/*.{ts,js}", + "lint": "npx lint-staged", "upgrade": "npm i cdktf@latest cdktf-cli@latest", "upgrade:next": "npm i cdktf@next cdktf-cli@next", "output": "cd cdktf.out && terraform output -json -state ../terraform.tfstate", - "repos": "yarn -s output | jq 'with_entries(select(.key|match(\"providerRepos\";\"i\")))[] | .value'", - "prepare": "husky install" + "repos": "yarn -s output | jq 'with_entries(select(.key|match(\"providerRepos\";\"i\")))[] | .value'" }, "engines": { "node": ">= 18.12.0" @@ -50,7 +49,6 @@ "@typescript-eslint/eslint-plugin": "^6", "@typescript-eslint/parser": "^6", "eslint": "^8.27.0", - "husky": ">=6", "lint-staged": ">=10", "prettier": "^3", "tsx": "^4.0.0", diff --git a/yarn.lock b/yarn.lock index 032d6d3..7a66327 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2430,11 +2430,6 @@ human-signals@^5.0.0: resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-5.0.0.tgz#42665a284f9ae0dade3ba41ebc37eb4b852f3a28" integrity sha512-AXcZb6vzzrFAUE61HnN4mpLqd/cSIwNQjtNWR0euPm6y0iqx3G4gOXaIDdtdDwZmhwe82LA6+zinmW4UBWVePQ== -husky@>=6: - version "9.1.1" - resolved "https://registry.yarnpkg.com/husky/-/husky-9.1.1.tgz#73f8f1b58329f377654293148c1a6458f54ca224" - integrity sha512-fCqlqLXcBnXa/TJXmT93/A36tJsjdJkibQ1MuIiFyCCYUlpYpIaj2mv1w+3KR6Rzu1IC3slFTje5f6DUp2A2rg== - iconv-lite@^0.4.24: version "0.4.24" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b"