Skip to content

Commit

Permalink
Configure CircleCI to run markdownlint
Browse files Browse the repository at this point in the history
  • Loading branch information
marccarre committed Jul 10, 2019
1 parent 090df25 commit 46e37b0
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2

workflows:
version: 2
any-commit:
jobs:
- lint

jobs:
lint:
docker: # run the steps with Docker
- image: circleci/node:12.6 # ...with this image as the primary container; this is where all `steps` will run
steps:
- checkout
- run:
name: install-markdownlint
command: |
sudo npm install -g markdownlint-cli
markdownlint --version
- run:
name: lint
command: markdownlint .
9 changes: 9 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"default": true,

"line_length": false,
"no-bare-urls": false,

"comment": "Ignore errors like MD026/no-trailing-punctuation Trailing punctuation in heading [Punctuation: '?'] in README.md's title",
"no-trailing-punctuation": false
}

0 comments on commit 46e37b0

Please sign in to comment.