From 3928f02b0154872b6fc89a33da0b4345cff7e266 Mon Sep 17 00:00:00 2001 From: Sam Richard Date: Tue, 24 Mar 2015 05:37:48 -0500 Subject: [PATCH] Function version of 'use strict' for index.js --- test/lint.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/lint.js b/test/lint.js index 1183f3b..ca12181 100644 --- a/test/lint.js +++ b/test/lint.js @@ -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));