From c0ca486d42f9ac74e1f640f30b8b9cb420144272 Mon Sep 17 00:00:00 2001 From: Alireza Jafari Date: Wed, 21 Aug 2024 15:24:51 +0330 Subject: [PATCH 1/2] chore: Add linting hook to pre-commit configuration file --- .pre-commit-config.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 0000000..0a53a46 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,11 @@ +repos: + - repo: local + hooks: + - id: lint + name: lint + pass_filenames: false + entry: npm run lint + language: system + types_or: + - ts + - javascript From bb8e11c2ec07b406dca9aedeca2f928ff873721e Mon Sep 17 00:00:00 2001 From: Alireza Jafari Date: Wed, 21 Aug 2024 17:15:31 +0330 Subject: [PATCH 2/2] chore(pre-commit): conventional-pre-commit --- .pre-commit-config.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0a53a46..9ba85e2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,10 +1,19 @@ repos: + - repo: https://github.com/compilerla/conventional-pre-commit + rev: v3.4.0 + hooks: + - id: conventional-pre-commit + stages: [commit-msg] + always_run: true + args: [] + - repo: local hooks: - id: lint name: lint pass_filenames: false entry: npm run lint + stages: [commit] language: system types_or: - ts