Function version of 'use strict' for index.js
This commit is contained in:
parent
8ca25e10ad
commit
3928f02b01
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue