add npm script to lint all javascript blocks in the docs using standard
authorZeke Sikelianos <zeke@sikelianos.com>
Tue, 26 Jul 2016 01:37:58 +0000 (18:37 -0700)
committerZeke Sikelianos <zeke@sikelianos.com>
Tue, 26 Jul 2016 16:47:16 +0000 (09:47 -0700)
package.json

index 6dab962..7322938 100644 (file)
@@ -4,7 +4,8 @@
   "devDependencies": {
     "asar": "^0.11.0",
     "request": "*",
-    "standard": "^7.1.2"
+    "standard": "^7.1.2",
+    "standard-markdown": "^1.0.3"
   },
   "optionalDependencies": {
     "runas": "^3.0.0"
@@ -26,6 +27,7 @@
     "lint": "npm run lint-js && npm run lint-cpp",
     "lint-js": "standard && cd spec && standard",
     "lint-cpp": "python ./script/cpplint.py",
+    "lint-docs": "standard-markdown docs",
     "preinstall": "node -e 'process.exit(0)'",
     "repl": "python ./script/start.py --interactive",
     "start": "python ./script/start.py",