Skip to content

Commit

Permalink
markdown linting + ci
Browse files Browse the repository at this point in the history
  • Loading branch information
weswigham committed Oct 13, 2015
1 parent f6958b6 commit 0457fa7
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "node"
12 changes: 12 additions & 0 deletions lint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
var markdownlint = require("markdownlint");
var glob = require("glob");

var options = {
files: glob.sync("**/*.md"),
config: {
MD013: false // Line length
}
};

var result = markdownlint.sync(options);
console.log(result.toString());
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "typescript-handbook",
"version": "1.0.0",
"description": "The TypeScript Handbook is a comprehensive guide to the TypeScript language",
"main": "none",
"scripts": {
"test": "node lint.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/weswigham/TypeScript-Handbook.git"
},
"author": "",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/weswigham/TypeScript-Handbook/issues"
},
"homepage": "https://github.com/weswigham/TypeScript-Handbook#readme",
"devDependencies": {
"glob": "^5.0.15",
"markdownlint": "0.0.8"
}
}

0 comments on commit 0457fa7

Please sign in to comment.