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
version.

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 name: Lint
on: [pull_request] on: [workflow_dispatch, pull_request]
permissions: read-all permissions: read-all
jobs: jobs:
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Markdown Lint - uses: actions/checkout@v2
uses: nosborn/github-action-markdown-cli@6e34c67b8bd3406dd8ee6eeba353ca4c66793501 # v2.0.0 - uses: actions/setup-node@v2
with: - run: npm ci --ignore-scripts
files: . - run: npm run lint --silent
config_file: ".markdownlint.yaml"
.sass-cache .sass-cache
_site _site
node_modules
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