eslint: Enable space-infix-ops rule.

More about rule at  https://eslint.org/docs/rules/space-infix-ops
This commit is contained in:
Shubham Dhama
2018-06-05 00:43:07 +05:30
parent c6738889a9
commit cc03f9fb8f
46 changed files with 120 additions and 120 deletions

View File

@@ -179,8 +179,8 @@ exports.get_color_class = _.memoize(function (color) {
// CSS colors are specified in the sRGB color space.
// Convert to linear intensity values.
for (i=0; i<3; i += 1) {
channel[i] = colorspace.sRGB_to_linear(mult * parseInt(match[i+1], 16));
for (i = 0; i < 3; i += 1) {
channel[i] = colorspace.sRGB_to_linear(mult * parseInt(match[i + 1], 16));
}
// Compute perceived lightness as CIE L*.