eslint: Add and enable space-unary-ops rule.

Info about rule at https://eslint.org/docs/rules/space-unary-ops.
This commit is contained in:
Shubham Dhama
2018-06-05 00:39:11 +05:30
parent ea6a1750f5
commit c6738889a9
28 changed files with 58 additions and 57 deletions

View File

@@ -77,7 +77,7 @@ function update_spectrum(popover, update_func) {
var popover_root = popover.closest(".popover");
var current_top_px = parseFloat(popover_root.css('top').replace('px', ''));
var height_delta = - (after_height - initial_height) * 0.5;
var height_delta = -(after_height - initial_height) * 0.5;
popover_root.css('top', (current_top_px + height_delta) + "px");
}