Browse Source

lint shared (#3309)

* lint shared

* Re-introduce semi-colons to () => {} variables in ColorPicker
revert-3409-performance
macleodbroad-wf 7 years ago
committed by Yotam Berkowitz
parent
commit
c9a1183293
3 changed files with 6 additions and 5 deletions
  1. +4
    -2
      lib/shared/ColorPicker.js
  2. +2
    -1
      lib/shared/Configurator.js
  3. +0
    -2
      lib/shared/Validator.js

+ 4
- 2
lib/shared/ColorPicker.js View File

@ -368,7 +368,8 @@ class ColorPicker {
this.opacityRange.min = '0'; this.opacityRange.min = '0';
this.opacityRange.max = '100'; this.opacityRange.max = '100';
} }
catch (err) {}
// TODO: Add some error handling and remove this lint exception
catch (err) {} // eslint-disable-line no-empty
this.opacityRange.value = '100'; this.opacityRange.value = '100';
this.opacityRange.className = 'vis-range'; this.opacityRange.className = 'vis-range';
@ -378,7 +379,8 @@ class ColorPicker {
this.brightnessRange.min = '0'; this.brightnessRange.min = '0';
this.brightnessRange.max = '100'; this.brightnessRange.max = '100';
} }
catch (err) {}
// TODO: Add some error handling and remove this lint exception
catch (err) {} // eslint-disable-line no-empty
this.brightnessRange.value = '100'; this.brightnessRange.value = '100';
this.brightnessRange.className = 'vis-range'; this.brightnessRange.className = 'vis-range';

+ 2
- 1
lib/shared/Configurator.js View File

@ -331,7 +331,8 @@ class Configurator {
range.min = min; range.min = min;
range.max = max; range.max = max;
} }
catch (err) {}
// TODO: Add some error handling and remove this lint exception
catch (err) {} // eslint-disable-line no-empty
range.step = step; range.step = step;
// set up the popup settings in case they are needed. // set up the popup settings in case they are needed.

+ 0
- 2
lib/shared/Validator.js View File

@ -310,8 +310,6 @@ class Validator {
return matrix[b.length][a.length]; return matrix[b.length][a.length];
} }
;
} }

Loading…
Cancel
Save