mirror of https://github.com/zulip/zulip.git
eslint: change keyword-spacing from warning to error and fix violations.
This commit is contained in:
parent
aab5ca620e
commit
c90da24541
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue