Commit 221e8347 authored by Mark Lodato's avatar Mark Lodato
Browse files

Set up `npm run lint` to call markdownlint.

This makes it easier for other developers to run markdownlint, and
checking in package-lock.json ensures that we're all using the same

Futhermore, this commit calls `npm run lint` directly instead of using
the GitHub Action because the action doesn't seem to be working.
parent 370d5b41
name: Lint
on: [pull_request]
on: [workflow_dispatch, pull_request]
permissions: read-all
runs-on: ubuntu-latest
- name: Markdown Lint
uses: nosborn/github-action-markdown-cli@6e34c67b8bd3406dd8ee6eeba353ca4c66793501 # v2.0.0
files: .
config_file: ".markdownlint.yaml"
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: npm ci --ignore-scripts
- run: npm run lint --silent
This diff is collapsed.
"scripts": {
"lint": "markdownlint *.md controls/*.md",
"fix": "markdownlint *.md controls/*.md --fix"
"dependencies": {
"markdownlint-cli": "^0.27.1"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment