Skip to content

Commit

Permalink
markdown lint
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinDFuller committed Dec 18, 2023
1 parent 5319071 commit 737633b
Show file tree
Hide file tree
Showing 66 changed files with 1,517 additions and 150 deletions.
12 changes: 6 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
env: {
browser: true,
es2024: true,
worker: true,
},
extends: "jsfmt",
env: {
browser: true,
es2024: true,
worker: true,
},
extends: "jsfmt",
};
21 changes: 21 additions & 0 deletions .github/workflows/markdown-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: markdown-lint
on:
push:
branches:
- main
pull_request:

permissions:
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read

jobs:
markdown:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DavidAnson/markdownlint-cli2-action@v14
with:
globs: '**/*.md'
9 changes: 9 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"noProgress": true,
"showFound": false,
"config": {
"line-length": false,
"no-inline-html": false,
"no-blanks-blockquote": false
}
}
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ export PORT=9000
.PHONY: validate
validate:
@echo ${COLOR_GRAY}Validating files.${COLOR_NC};
@echo ${COLOR_GRAY}Validating package.json${COLOR_NC};
@python3 -mjson.tool "package.json" > /dev/null;
@echo ${COLOR_GRAY}Validating .markdownlint-cli2.jsonc${COLOR_NC};
@python3 -mjson.tool ".markdownlint-cli2.jsonc" > /dev/null;
@echo ${COLOR_GRAY}Validating .golangci.json${COLOR_NC};
@python3 -mjson.tool ".golangci.json" > /dev/null;
@echo ${COLOR_GRAY}Validating .devcontainer/devcontainer.json${COLOR_NC};
Expand Down
Loading

0 comments on commit 737633b

Please sign in to comment.