Skip to content

Commit ab3cc54

Browse files
committed
build(markdown-lint): added a linter for markdown
1 parent c92f5ef commit ab3cc54

File tree

3 files changed

+25
-14
lines changed

3 files changed

+25
-14
lines changed

.markdownlintrc

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"commands-show-output": false,
3+
"no-inline-html": false
4+
}

README.md

+18-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
travi-api
2-
=========
1+
# travi-api
32

43
[![license](https://img.shields.io/github/license/travi/travi-api.svg)](LICENSE)
54
[![Build Status](https://img.shields.io/travis/travi/travi-api.svg?style=flat)](https://travis-ci.org/travi/travi-api)
@@ -11,29 +10,34 @@ travi-api
1110
![greenkeeper badge](https://badges.greenkeeper.io/GainCompliance/hapi-auth-stormpath.svg)
1211

1312
## Try It
14-
You can interact with the api through the [Swagger UI instance](https://api.travi.org/documentation) hosted with the API.
13+
14+
You can interact with the api through the [Swagger UI instance](https://api.travi.org/documentation)
15+
hosted with the API.
1516

1617
## Project Goals
1718

18-
I'm using this as an opportunity to learn how to apply a number of core concepts of api development to node.
19+
I'm using this as an opportunity to learn how to apply a number of core concepts
20+
of api development to node.
1921

20-
- [x] <abbr title="Hypertext Application Language">[HAL](http://stateless.co/hal_specification.html)</abbr> compatible Hypermedia/HATEOAS API
21-
* [Hapi](http://hapijs.com/)
22-
* [Halacious](https://github.com/bleupen/halacious)
22+
- [x] <abbr title="Hypertext Application Language">[HAL](http://stateless.co/hal_specification.html)</abbr>
23+
compatible Hypermedia/HATEOAS API
24+
- [Hapi](http://hapijs.com/)
25+
- [Halacious](https://github.com/bleupen/halacious)
2326
- [ ] Access Control
24-
- [x] Limited read-only access with no auth context
25-
- [ ] Privilege elevation for advanced actions
26-
* Either OAuth or [Oz](https://github.com/hueniverse/oz) for authorization
27+
- [x] Limited read-only access with no auth context
28+
- [ ] Privilege elevation for advanced actions
29+
- Either OAuth or [Oz](https://github.com/hueniverse/oz) for authorization
2730
- [ ] Consumer Driven Contracts
28-
- [ ] Pact Provider
29-
- [x] Leverage the [broker](https://pact-api.travi.org) the share pacts from consumers
31+
- [ ] Pact Provider
32+
- [x] Leverage the [broker](https://pact-api.travi.org) the share pacts from consumers
3033

3134
## Local Development
3235

3336
### Environment variables
3437

35-
This application uses environment variables for certain configuration. For local development, the npm script `dev` expects
36-
a `.env` file to exist, as described [here](https://devcenter.heroku.com/articles/heroku-local#set-up-your-local-environment-variables)
38+
This application uses environment variables for certain configuration. For local
39+
development, the npm script `dev` expects a `.env` file to exist, as described
40+
[here](https://devcenter.heroku.com/articles/heroku-local#set-up-your-local-environment-variables)
3741
and contain the necessary variable definitions.
3842

3943
### Database

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"repository": "travi/travi-api",
77
"scripts": {
88
"lint:js": "eslint .",
9+
"lint:md": "globstar --node -- markdownlint **/*.md",
910
"tests:unit": "mocha --recursive test/unit",
1011
"tests:integration": "cucumber.js test/integration --compiler js:babel-register --tags 'not @wip'",
1112
"tests:integration:wip": "cucumber.js test/integration --compiler js:babel-register --tags @wip",
@@ -37,13 +38,15 @@
3738
"dotenv": "2.0.0",
3839
"dotenv-safe": "3.0.0",
3940
"formatio": "1.2.0",
41+
"globstar": "1.0.0",
4042
"grunt": "1.0.1",
4143
"grunt-babel": "6.0.0",
4244
"grunt-cli": "1.2.0",
4345
"grunt-flyway": "travi/grunt-flyway#credentials",
4446
"hoek": "4.1.0",
4547
"husky": "0.12.0",
4648
"load-grunt-config": "0.19.2",
49+
"markdownlint-cli": "0.2.0",
4750
"mocha": "3.2.0",
4851
"npm-run-all": "3.1.2",
4952
"nyc": "10.0.0",

0 commit comments

Comments
 (0)