Skip to content

Commit 0457fa7

Browse files
committed
markdown linting + ci
1 parent f6958b6 commit 0457fa7

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- "node"

lint.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
var markdownlint = require("markdownlint");
2+
var glob = require("glob");
3+
4+
var options = {
5+
files: glob.sync("**/*.md"),
6+
config: {
7+
MD013: false // Line length
8+
}
9+
};
10+
11+
var result = markdownlint.sync(options);
12+
console.log(result.toString());

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "typescript-handbook",
3+
"version": "1.0.0",
4+
"description": "The TypeScript Handbook is a comprehensive guide to the TypeScript language",
5+
"main": "none",
6+
"scripts": {
7+
"test": "node lint.js"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/weswigham/TypeScript-Handbook.git"
12+
},
13+
"author": "",
14+
"license": "Apache-2.0",
15+
"bugs": {
16+
"url": "https://github.com/weswigham/TypeScript-Handbook/issues"
17+
},
18+
"homepage": "https://github.com/weswigham/TypeScript-Handbook#readme",
19+
"devDependencies": {
20+
"glob": "^5.0.15",
21+
"markdownlint": "0.0.8"
22+
}
23+
}

0 commit comments

Comments
 (0)