From e08a9616d604570b5a31903f6793829808a0ffa2 Mon Sep 17 00:00:00 2001 From: Ben Beecher Date: Sun, 20 Feb 2022 15:16:54 -0500 Subject: [PATCH] adding precommit and sample markdown lint --- .markdownlint.jsonc | 3 +++ .pre-commit-config.yaml | 23 +++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .markdownlint.jsonc create mode 100644 .pre-commit-config.yaml diff --git a/.markdownlint.jsonc b/.markdownlint.jsonc new file mode 100644 index 000000000..1fb03bdee --- /dev/null +++ b/.markdownlint.jsonc @@ -0,0 +1,3 @@ +{ + "default": false +} diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 000000000..889f430f4 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,23 @@ +# See https://pre-commit.com for more information +# See https://pre-commit.com/hooks.html for more hooks +repos: +- repo: https://github.com/pre-commit/pre-commit-hooks + rev: v3.2.0 + hooks: + - id: check-yaml + - id: check-json + - id: check-added-large-files + - id: mixed-line-ending + # - id: pretty-format-json + # exclude: package-lock.json|package.json|jsconfig.json + # args: [--autofix] + - id: sort-simple-yaml +- repo: https://github.com/igorshubovych/markdownlint-cli + rev: v0.31.1 + hooks: + - id: markdownlint + args: + [ + "--config", + ".markdownlint.jsonc", + ]