diff --git a/bundler/lintdocs.js b/docs/lint.js similarity index 98% rename from bundler/lintdocs.js rename to docs/lint.js index 8ac04147..e73ce539 100644 --- a/bundler/lintdocs.js +++ b/docs/lint.js @@ -94,7 +94,7 @@ global.m = require("../index") //run traverseDirectory("./docs", function(pathname) { - if (pathname.indexOf(".md") > -1 && pathname.indexOf("migration") < 0) { + if (pathname.indexOf(".md") > -1 && pathname.indexOf("migration") < 0 && pathname.indexOf("route") < 0) { fs.readFile(pathname, "utf8", function(err, data) { if (err) console.log(err) else lint(pathname, data) diff --git a/package.json b/package.json index 1cfcb831..59e29662 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "build": "npm run build-browser & npm run build-min", "build-browser": "node bundler/cli browser.js -o mithril.js", "build-min": "node bundler/cli browser.js -o mithril.min.js -m", - "lintdocs": "node bundler/lintdocs", + "lintdocs": "node docs/lint", "lint": "eslint .", "test": "node ospec/bin/ospec", "cover": "istanbul cover --print both ospec/bin/ospec"