From 9027d6b119289809adf9440c1fd95e57967e34fb Mon Sep 17 00:00:00 2001 From: Windsland52 <86581225+Windsland52@users.noreply.github.com> Date: Tue, 26 Nov 2024 01:32:19 +0800 Subject: [PATCH] feat: add pre-commit hooks configuration --- .pre-commit-config.yaml | 13 +++++++++++++ 1 file changed, 13 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 00000000..9e3b7bdf --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,13 @@ +default_install_hook_types: [pre-commit, prepare-commit-msg] +ci: + autofix_commit_msg: "chore: Auto update by pre-commit hooks [skip changelog]" + autofix_prs: true +repos: + - repo: https://github.com/DavidAnson/markdownlint-cli2 + rev: v0.13.0 + hooks: + - id: markdownlint-cli2 + files: ^docs/.*|^README\.md$ + types: + - markdown + args: ["--fix", "--config", "docs/.markdownlint.yaml", "#**/node_modules"] \ No newline at end of file