Skip to content

Commit

Permalink
Fix for GH issue #13 - Strict Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurakay committed Apr 16, 2013
1 parent 4a6b65d commit 538e11b
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
16 changes: 12 additions & 4 deletions hooks/pre-commit.js
Expand Up @@ -8,23 +8,31 @@ var config = {
stopOnFirstError : false,

//recursively include JS files in these folders
filepaths : [
filepaths : [
'../'
],

//but ignore anything in these folders
exclusions : [
exclusions : [
'../node_modules/',
'../assets/',
'../docs/'
],

linters : [
{
type : 'jsLint'
type : 'jsLint',
options : {
sloppy : false,
node : true
}
},
{
type : 'jsHint'
type : 'jsHint',
options : {
strict : true,
node : true
}
},
{
type : 'esprima'
Expand Down
3 changes: 2 additions & 1 deletion src/LintRoller.js
Expand Up @@ -28,7 +28,8 @@
*
* GitHub Project: http://arthurakay.github.com/LintRoller/
*/
LintRoller = {
"use strict";
var LintRoller = {
/**
* @cfg {Array} filepaths
* REQUIRED. An array of relative filepaths to the folders containing JS files
Expand Down
1 change: 1 addition & 0 deletions src/linters/esprima.js
@@ -1,3 +1,4 @@
"use strict";
var ESPRIMA = require('esprima');

/**
Expand Down
1 change: 1 addition & 0 deletions src/linters/jshint.js
@@ -1,3 +1,4 @@
"use strict";
var JSHINT = require('jshint').JSHINT;

/**
Expand Down
1 change: 1 addition & 0 deletions src/linters/jslint.js
@@ -1,3 +1,4 @@
"use strict";
var JSLINT = require('jslint');

/**
Expand Down
3 changes: 2 additions & 1 deletion src/util.js
Expand Up @@ -4,7 +4,8 @@
*
* Some additional utilities for cleaning up JavaScript lint.
*/
util = {
"use strict";
var util = {

/**
* @private
Expand Down

0 comments on commit 538e11b

Please sign in to comment.