add StandardJS support (with colorful and nice formatting with snazzy)

parent 5320f6cf
......@@ -13,7 +13,8 @@
},
"scripts": {
"test": "nyc --reporter=html --reporter=text mocha",
"test-watch": "nodemon --exec 'nyc --reporter=lcov --reporter=text mocha || true'"
"test-watch": "nodemon --exec 'nyc --reporter=lcov --reporter=text mocha || true'",
"lint": "standard --verbose | snazzy"
},
"dependencies": {
"array-to-stream": "^1.0.2",
......@@ -26,6 +27,8 @@
"mocha": "^3.5.3",
"nodemon": "^1.12.1",
"nyc": "^11.2.1",
"snazzy": "^7.0.0",
"standard": "^10.0.3",
"stream-to-array": "^2.3.0"
}
}
/* eslint-env mocha */
'use strict'
// This is a unit test reference, try to mimick its style ;-)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment