lint docs
This commit is contained in:
parent
56eaba95b5
commit
50d727d017
5 changed files with 11 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue