Skip to content
Browse files

adds javascriptlint to config file so it will actually run

  • Loading branch information...
1 parent 2d43524 commit 086fdb72e66b0797f66833dc568837e45d26f2be @DTrejo DTrejo committed
Showing with 10 additions and 2 deletions.
  1. +3 −0 conf/client.json
  2. +3 −0 conf/server.json
  3. +2 −1 lib/linter.js
  4. +2 −1 lib/linter/javascriptlint.js
View
3 conf/client.json
@@ -99,5 +99,8 @@
"use_only_custom_externs": null,
// Specifies the warning level to use: QUIET, DEFAULT, VERBOSE
"warning_level": "VERBOSE"
+ },
+ "javascriptlint": {
+ // no settable options, yet.
}
}
View
3 conf/server.json
@@ -99,5 +99,8 @@
"use_only_custom_externs": null,
// Specifies the warning level to use: QUIET, DEFAULT, VERBOSE
"warning_level": "VERBOSE"
+ },
+ "javascriptlint": {
+ // no settable options, yet.
}
}
View
3 lib/linter.js
@@ -19,7 +19,8 @@ exports.options = {
linter: {
jslint: join(__dirname, 'linter', 'jslint'),
'closure-linter': join(__dirname, 'linter', 'closure-linter'),
- 'closure-compiler': join(__dirname, 'linter', 'closure-compiler')
+ 'closure-compiler': join(__dirname, 'linter', 'closure-compiler'),
+ javascriptlint: join(__dirname, 'linter', 'javascriptlint')
}
};
View
3 lib/linter/javascriptlint.js
@@ -43,7 +43,7 @@ module.exports = function(file, options, callback) {
linter.stdout.on('data', function (data) {
data = data.toString().split(file);
- console.log(data);
+ // console.log(data);
data.forEach(function(str, i) {
if (i === 0) {
@@ -76,6 +76,7 @@ module.exports = function(file, options, callback) {
});
linter.on('exit', function(code) {
+ // console.log('javascriptlint done linting.');
callback(errors);
});
};

0 comments on commit 086fdb7

Please sign in to comment.
Something went wrong with that request. Please try again.