eslint: change keyword-spacing from warning to error and fix violations.

This commit is contained in:
Tommy Ip
2016-12-01 19:02:56 +00:00
committed by Tim Abbott
parent aab5ca620e
commit c90da24541
8 changed files with 21 additions and 13 deletions

View File

@@ -20,7 +20,7 @@ var page_params = {
set_global('page_params', page_params);
var patched_underscore = _.clone(_);
patched_underscore.debounce = function (f) { return(f); };
patched_underscore.debounce = function (f) { return f; };
global.patch_builtin('_', patched_underscore);

View File

@@ -188,19 +188,19 @@ var _ = global._;
'some_email@**everyone**.com'
];
var i;
for(i=0; i<messages_with_all_mentions.length; i++) {
for (i=0; i<messages_with_all_mentions.length; i++) {
assert(util.is_all_or_everyone_mentioned(messages_with_all_mentions[i]));
}
for(i=0; i<messages_with_everyone_mentions.length; i++) {
for (i=0; i<messages_with_everyone_mentions.length; i++) {
assert(util.is_all_or_everyone_mentioned(messages_with_everyone_mentions[i]));
}
for(i=0; i<messages_without_all_mentions.length; i++) {
for (i=0; i<messages_without_all_mentions.length; i++) {
assert(!util.is_all_or_everyone_mentioned(messages_without_everyone_mentions[i]));
}
for(i=0; i<messages_without_everyone_mentions.length; i++) {
for (i=0; i<messages_without_everyone_mentions.length; i++) {
assert(!util.is_all_or_everyone_mentioned(messages_without_everyone_mentions[i]));
}
}());

View File

@@ -9,7 +9,7 @@ function mkdir_p(path) {
// This works like mkdir -p in Unix.
try {
fs.mkdirSync(path);
} catch(e) {
} catch (e) {
if ( e.code !== 'EEXIST' ) {
throw e;
}