Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adds javascriptlint to config file so it will actually run

  • Loading branch information...
commit 086fdb72e66b0797f66833dc568837e45d26f2be 1 parent 2d43524
@DTrejo DTrejo authored
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);
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.