Skip to content

Commit

Permalink
Add markdown linting configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
insspb committed Jul 1, 2022
1 parent 9493a80 commit b19299e
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# http://editorconfig.org
# https://editorconfig-specification.readthedocs.io/en/latest/

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.{py,ini,sh}]
indent_style = space
indent_size = 4

[*.{html,css,scss,json,yml,tpl,js,jsx}]
indent_style = space
indent_size = 2

[*.md]
indent_style = space
indent_size = 4
tab_width = 4

[*.rst]
indent_style = space
indent_size = 3

[Makefile]
indent_style = tab
18 changes: 18 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"MD003": true,
"MD004": false,
"MD007": false,
"MD013": {
"tables": false,
"code_blocks": false,
"line_length": 88
},
"MD024": false,
"MD026": false,
"MD029": false,
"MD034": true,
"MD046": true,
"code-block-style": {
"style": "fenced"
}
}
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ repos:
hooks:
- id: flake8
exclude: ^docs/|^examples/
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.31.1
hooks:
- id: markdownlint
args: [-f]
exclude: ^(.github|tests)

0 comments on commit b19299e

Please sign in to comment.