Skip to content

Commit

Permalink
pre-commit: Switch to markdownlint-cli2 to avoid Ruby dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Aug 18, 2021
1 parent f925453 commit 406ab58
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 26 deletions.
38 changes: 38 additions & 0 deletions .markdownlint-cli2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#
# An example .markdownlint-cli2.yaml file
#

# Disable some built-in rules
config:
default: true

# The same headline in different nested sections is okay (and necessary for
# CHANGELOG.md).
no-duplicate-header:
allow_different_nesting: true

# We use ordered lists to make stuff easier to read in a text editor.
ol-prefix:
style: ordered

# Not wrapping long lines makes diffs easier to read, especially for prose.
# Instead, we should follow the "one sentence per line" pattern.
line-length: false

# Dollar signs are useful to indicate shell commands/type and help
# distinguishing wrapped lines from new commands.
commands-show-output: false

# Indented code blocks are easier to read in a text editor, but don't allow
# specifying a language for syntax highlighting. Therefore both indented and
# fenced code block should be allowed depending on the use case.
code-block-style: false

# Fix any fixable errors
fix: true

# Disable inline config comments
noInlineConfig: true

# Disable progress on stdout (only valid at root)
noProgress: true
1 change: 0 additions & 1 deletion .mdlrc

This file was deleted.

21 changes: 0 additions & 21 deletions .mdlstyle.rb

This file was deleted.

7 changes: 3 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ repos:
rev: v0.7.2.1
hooks:
- id: shellcheck
- repo: https://github.com/markdownlint/markdownlint
rev: v0.11.0
- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.2.0
hooks:
- id: markdownlint
language_version: 2.6.6
- id: markdownlint-cli2
- repo: local
hooks:
- id: qsscheck
Expand Down

0 comments on commit 406ab58

Please sign in to comment.