Integrates standard into your tape tests. This allows you to enforce a "one true" JavaScript coding style in your project via tape tests.

This offers a finer alternative to adding standard into package.json's scripts.test block.
(Your speed gains may be a bit different from my Pentium II, of course.)
Install it:
npm install --save-dev tape-standard standard
Then add this test file to your Mocha suite:
test('standard', require('tape-standard')())
To configure what files to consume:
test('standard', require('tape-standard')({
files: [ 'index.js', 'test/*.js' ]
}))
To specify global variables, pass { global: [...] } into .files(). This is especially useful for Mocha test files. (Be sure you're using standard 5.0.0 or above.)
test('standard', require('tape-standard')({
global: ['$', 'jQuery']
}))
To use semistandard instead, use:
npm install --save-dev semistandard
test('standard', require('tape-standard')({
using: require('semistandard')
}))
tape-standard © 2016+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz