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

@ -164,7 +164,15 @@
"quote-props": 0,
"radix": 2,
"semi": 2,
"keyword-spacing": 1,
"keyword-spacing": ["error", {
"before": true,
"after": true,
"overrides": {
"return": { "after": true },
"throw": { "after": true },
"case": { "after": true }
}
}],
"space-before-blocks": 1,
"strict": 1,
"unnecessary-strict": 0,

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);