Function version of 'use strict' for index.js

This commit is contained in:
Sam Richard 2015-03-24 05:37:48 -05:00
parent 8ca25e10ad
commit 3928f02b01

View file

@ -10,6 +10,11 @@ var report;
describe('style-guide', function() {
it('index.js should follow our lint style guide', function(done) {
cli = new eslint.CLIEngine({
'rules': {
'strict': [ 2, 'function' ]
}
});
report = cli.executeOnFiles(['index.js']);
if (report.errorCount > 0 || report.warningCount > 0) {
console.log(formatter(report.results));