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 21, 2017
1 parent b1260f2 commit 9f35b56
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 44 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
80 changes: 40 additions & 40 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion 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 @@ -321,6 +322,7 @@
"supports-color": "4.4.0"
},
"devDependencies": {
"@mocha/markdownlint-cli": "^1.0.0",
"assert": "^1.4.1",
"browserify": "^14.4.0",
"buffer": "^4.9.1",
Expand All @@ -344,7 +346,6 @@
"karma-phantomjs-launcher": "^1.0.4",
"karma-sauce-launcher": "^1.2.0",
"markdown-toc": "^1.2.0",
"markdownlint-cli": "^0.5.0",
"nyc": "^11.2.1",
"rimraf": "^2.5.2",
"through2": "^2.0.1",
Expand Down

0 comments on commit 9f35b56

Please sign in to comment.