From f84f452234f8eda1d7487ccb913210d578494ba7 Mon Sep 17 00:00:00 2001 From: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:21:13 +0300 Subject: [PATCH 1/2] refactor: small changes --- .czrc | 3 --- .husky/commit-msg | 2 +- package.json | 12 +++++------- 3 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 .czrc diff --git a/.czrc b/.czrc deleted file mode 100644 index d1bcc20..0000000 --- a/.czrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "path": "cz-conventional-changelog" -} diff --git a/.husky/commit-msg b/.husky/commit-msg index 30ba7c0..008c127 100644 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1 @@ -bun --no-install commitlint --edit +bun commitlint --edit diff --git a/package.json b/package.json index d75f410..63c9083 100644 --- a/package.json +++ b/package.json @@ -40,14 +40,13 @@ "lint:formatting": "prettier . --check", "lint:md": "remark . --quiet --frail", "lint:ts": "eslint src/**/*.ts --fix", - "prettify": "prettier . --write", - "commit": "cz" + "prettify": "prettier . --write" }, "devDependencies": { - "@archoleat/commitlint-define-config": "^1.0.8", + "@archoleat/commitlint-define-config": "^1.0.9", "@archoleat/eslint-flat-compatibility": "^1.1.6", - "@archoleat/prettier-define-config": "^1.0.0", - "@archoleat/semantic-release-define-config": "^1.1.13", + "@archoleat/prettier-define-config": "^1.0.1", + "@archoleat/semantic-release-define-config": "^1.1.14", "@commitlint/cli": "^19.4.0", "@commitlint/config-conventional": "^19.2.2", "@commitlint/types": "^19.0.3", @@ -57,7 +56,6 @@ "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "conventional-changelog-conventionalcommits": "^8.0.0", - "cz-conventional-changelog": "^3.3.0", "editorconfig-checker": "^5.1.8", "eslint": "^8.57.0", "eslint-config-airbnb-typescript": "^18.0.0", @@ -69,7 +67,7 @@ "git-pull-run": "^1.4.0", "globals": "^15.9.0", "husky": "^9.1.4", - "lint-staged": "^15.2.8", + "lint-staged": "^15.2.9", "prettier": "^3.3.3", "remark": "15.0.1", "remark-cli": "^12.0.1", From b8951204afae54bdcb58ddf83bb4ea6415844a7f Mon Sep 17 00:00:00 2001 From: Almanov Nikita <131481562+nikkeyl@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:22:53 +0300 Subject: [PATCH 2/2] docs(readme): remove `commit` script --- README.md | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/README.md b/README.md index 616fea8..fe4f84c 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,6 @@ This template includes ready-made solutions for integration with: - **Git**. - **GitHub**. -- **Commitizen**. - **Commitlint**. - **Conventional Commits**. - **Husky & Lint Staged**. @@ -84,7 +83,7 @@ This template includes ready-made solutions for integration with: - **Git and GitHub Integration**: Pre-configured `.gitignore` and `.gitattributes` for efficient work with Git and GitHub. - - **Conventional Commits, Commitlint & Commitizen**: If you don't want + - **Conventional Commits & Commitlint**: If you don't want to think about how to write a commit every time, these plugins will help you. @@ -166,9 +165,6 @@ This template includes ready-made solutions for integration with: - `prettify`: Runs **Prettier** with the `--write` flag for all files. -- `commit`: Runs **Commitlint** to create commits according to - **Conventional Commits** standards. - ## Workflows - [`auto-merge-dependabot-pull-request.yaml`](.github/workflows/auto-merge-dependabot-pull-request.yaml):