From 58de07f7e750ef2d634f436915d6296cfb34b8c9 Mon Sep 17 00:00:00 2001 From: Daniel Roschka Date: Thu, 27 Jul 2017 10:12:51 +0200 Subject: [PATCH 1/2] Add support to run markdownlint with pre-commit --- .pre-commit-hooks.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .pre-commit-hooks.yaml diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml new file mode 100644 index 00000000..a35e69e5 --- /dev/null +++ b/.pre-commit-hooks.yaml @@ -0,0 +1,7 @@ +- id: markdownlint + name: markdownlint + description: "Check the style of Markdown/Commonmark files" + entry: markdownlint + language: node + types: [markdown] + minimum_pre_commit_version: 0.15.0 From 0e7a7d65b7a96a3f7aee88d8d53f69292b23e2ee Mon Sep 17 00:00:00 2001 From: Daniel Roschka Date: Fri, 28 Jul 2017 07:46:47 +0200 Subject: [PATCH 2/2] Adjust the description of the pre-commit hook --- .pre-commit-hooks.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-hooks.yaml b/.pre-commit-hooks.yaml index a35e69e5..0099e222 100644 --- a/.pre-commit-hooks.yaml +++ b/.pre-commit-hooks.yaml @@ -1,6 +1,6 @@ - id: markdownlint name: markdownlint - description: "Check the style of Markdown/Commonmark files" + description: "Checks the style of Markdown/Commonmark files." entry: markdownlint language: node types: [markdown]