diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 3372104..5d0b1de 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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' diff --git a/.markdownlint.json b/.markdownlint.json new file mode 100644 index 0000000..2d666a9 --- /dev/null +++ b/.markdownlint.json @@ -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" + } +}