lint docs

This commit is contained in:
Leo Horie 2016-12-02 21:19:19 -05:00
parent 56eaba95b5
commit 50d727d017
5 changed files with 11 additions and 8 deletions

View file

@ -135,11 +135,11 @@ function traverseDirectory(pathname, callback) {
//run
traverseDirectory("./docs", function(pathname) {
if (pathname.indexOf(".md") > -1 && !pathname.match(/migration|zero|simple|node_modules/)) {
if (pathname.indexOf(".md") > -1 && !pathname.match(/migration|node_modules/)) {
fs.readFile(pathname, "utf8", function(err, data) {
if (err) console.log(err)
else lint(pathname, data)
})
}
})
.then(process.exit)