mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +00:00
eslint: change keyword-spacing from warning to error and fix violations.
This commit is contained in:
@@ -164,7 +164,15 @@
|
|||||||
"quote-props": 0,
|
"quote-props": 0,
|
||||||
"radix": 2,
|
"radix": 2,
|
||||||
"semi": 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,
|
"space-before-blocks": 1,
|
||||||
"strict": 1,
|
"strict": 1,
|
||||||
"unnecessary-strict": 0,
|
"unnecessary-strict": 0,
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ var page_params = {
|
|||||||
set_global('page_params', page_params);
|
set_global('page_params', page_params);
|
||||||
|
|
||||||
var patched_underscore = _.clone(_);
|
var patched_underscore = _.clone(_);
|
||||||
patched_underscore.debounce = function (f) { return(f); };
|
patched_underscore.debounce = function (f) { return f; };
|
||||||
global.patch_builtin('_', patched_underscore);
|
global.patch_builtin('_', patched_underscore);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user