move lint script

This commit is contained in:
Leo Horie 2016-10-26 23:57:58 -04:00
parent aef4ab16e9
commit 56129f7102
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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"