Skip to content

Commit

Permalink
add @mocha/markdownlint-cli; closes #3172
Browse files Browse the repository at this point in the history
- forked [markdownlint-cli](https://npm.im/markdownlint-cli) to fix a
  glob-related bug; will abandon our version if/when it's merged
- add `.markdownlint.json` config
- remove "allow trailing spaces" for Markdown in `.editorconfig`
- add to `lint` target & create `markdownlint` script in `package.json`,
  which is dumb, but we're stuck with it for now
  • Loading branch information
boneskull committed Dec 28, 2017
1 parent 6c95e34 commit 98a8313
Show file tree
Hide file tree
Showing 5 changed files with 151 additions and 3 deletions.
3 changes: 0 additions & 3 deletions .editorconfig
Expand Up @@ -13,6 +13,3 @@ indent_size = 2

[Makefile]
indent_style = tab

[*.md]
trim_trailing_whitespace = false
9 changes: 9 additions & 0 deletions .markdownlint.json
@@ -0,0 +1,9 @@
{
"no-inline-html": false,
"line-length": false,
"no-trailing-punctuation": false,
"no-duplicate-header": false,
"first-header-h1": false,
"first-line-h1": false,
"commands-show-output": false
}
1 change: 1 addition & 0 deletions Makefile
Expand Up @@ -35,6 +35,7 @@ clean:
lint:
@printf "==> [Test :: Lint]\n"
npm run lint
npm run markdownlint

test-node: test-bdd test-tdd test-qunit test-exports test-unit test-integration test-jsapi test-compilers test-requires test-reporters test-only test-global-only

Expand Down
139 changes: 139 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Expand Up @@ -300,6 +300,7 @@
},
"scripts": {
"lint": "eslint . bin/*",
"markdownlint": "markdownlint \"*.md\" \"docs/**/*.md\" \".github/*.md\"",
"test": "make clean && make test",
"prepublishOnly": "npm test && make clean && make mocha.js",
"coveralls": "nyc report --reporter=text-lcov | coveralls",
Expand All @@ -322,6 +323,7 @@
"supports-color": "4.4.0"
},
"devDependencies": {
"@mocha/markdownlint-cli": "^1.0.0",
"assert": "^1.4.1",
"assetgraph-builder": "^5.6.4",
"browserify": "^14.4.0",
Expand Down

0 comments on commit 98a8313

Please sign in to comment.