Skip to content

Commit

Permalink
Add lint markdown (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasNieto committed Aug 27, 2024
1 parent e852849 commit e518ada
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Lint

on:
pull_request:

push:

jobs:
markdown:
name: Markdown
runs-on: ubuntu-latest
steps:
- name: "Checkout repository"
uses: "actions/checkout@v4"

- name: "Lint markdown"
uses: DavidAnson/markdownlint-cli2-action@v16
54 changes: 54 additions & 0 deletions .markdownlint.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"code-block-style": {
"style": "fenced"
},
"code-fence-style": {
"style": "backtick"
},
"emphasis-style": {
"style": "asterisk"
},
"fenced-code-language": {
"allowed_languages": [
"powershell",
"text"
],
"language_only": true
},
"heading-style": {
"style": "atx"
},
"hr-style": {
"style": "---"
},
"line-length": {
"strict": true,
"code_blocks": false
},
"link-image-style": {
"collapsed": false,
"url_inline": false
},
"no-duplicate-heading": {
"siblings_only": true
},
"ol-prefix": {
"style": "ordered"
},
"proper-names": {
"code_blocks": false,
"names": [
"PowerShell",
"AnyPackage"
]
},
"reference-links-images": {
"shortcut_syntax": true
},
"strong-style": {
"style": "asterisk"
},
"ul-style": {
"style": "dash"
}
}

0 comments on commit e518ada

Please sign in to comment.