Skip to content

Commit

Permalink
feat: add lint markdown config
Browse files Browse the repository at this point in the history
  • Loading branch information
thangbuiq committed Feb 16, 2024
1 parent 68f55f0 commit 73c46b6
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ jobs:
with:
fetch-depth: 0

- name: Check markdown files
uses: avto-dev/markdown-lint@v1
- uses: DavidAnson/markdownlint-cli2-action@v15
with:
args: '**/*.md'
ignore: ./README.md
config: '.markdownlint.json'
globs: '**/*.md'
56 changes: 56 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"code-block-style": {
"style": "fenced"
},
"code-fence-style": {
"style": "backtick"
},
"emphasis-style": {
"style": "asterisk"
},
"fenced-code-language": {
"allowed_languages": ["yaml"],
"language_only": true
},
"heading-style": {
"style": "atx"
},
"hr-style": {
"style": "---"
},
"line-length": {
"strict": true,
"code_blocks": false
},
"link-image-style": {
"autolink": false,
"inline": false,
"collapsed": false,
"shortcut": false
},
"no-duplicate-heading": {
"siblings_only": true
},
"ol-prefix": {
"style": "ordered"
},
"proper-names": {
"code_blocks": false,
"names": [
"CommonMark",
"JavaScript",
"Markdown",
"markdownlint",
"markdownlint-cli2"
]
},
"strong-style": {
"style": "asterisk"
},
"table-pipe-style": {
"style": "leading_and_trailing"
},
"ul-style": {
"style": "dash"
}
}

0 comments on commit 73c46b6

Please sign in to comment.