Skip to content

Commit

Permalink
Add markdownlint
Browse files Browse the repository at this point in the history
Add a Markdown linter.
  • Loading branch information
martincostello committed Sep 28, 2024
1 parent 556c70e commit 440ef0e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,11 @@ jobs:
- name: Lint workflows
uses: docker://rhysd/actionlint@sha256:89d3f90f82781dee3c8724651129634b08cf2241bbd67fcd02a1c5198119fc5e # v1.7.2
with:
args: -color
args: -color

- name: Lint markdown
uses: DavidAnson/markdownlint-cli2-action@v17
with:
config: '.markdownlint.json'
globs: |
**/*.md
4 changes: 4 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"MD013": false,
"MD040": false
}
2 changes: 2 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"recommendations": [
"davidanson.vscode-markdownlint",
"editorconfig.editorconfig",
"github.vscode-github-actions",
"ms-dotnettools.csharp",
"ms-vscode.PowerShell"
]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Any feedback or issues can be added to the issues for this project in [GitHub](h

## Repository

The repository is hosted in [GitHub](https://github.com/martincostello/project-euler): https://github.com/martincostello/project-euler.git
The repository is hosted in [GitHub](https://github.com/martincostello/project-euler): <https://github.com/martincostello/project-euler.git>

## License

Expand Down

0 comments on commit 440ef0e

Please sign in to comment.