From c9a1183293ef36db143523a436c81cc95b565764 Mon Sep 17 00:00:00 2001 From: macleodbroad-wf Date: Tue, 1 Aug 2017 10:46:25 -0400 Subject: [PATCH] lint shared (#3309) * lint shared * Re-introduce semi-colons to () => {} variables in ColorPicker --- lib/shared/ColorPicker.js | 6 ++++-- lib/shared/Configurator.js | 3 ++- lib/shared/Validator.js | 2 -- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/shared/ColorPicker.js b/lib/shared/ColorPicker.js index adbfe10b..14412148 100644 --- a/lib/shared/ColorPicker.js +++ b/lib/shared/ColorPicker.js @@ -368,7 +368,8 @@ class ColorPicker { this.opacityRange.min = '0'; 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.className = 'vis-range'; @@ -378,7 +379,8 @@ class ColorPicker { this.brightnessRange.min = '0'; 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.className = 'vis-range'; diff --git a/lib/shared/Configurator.js b/lib/shared/Configurator.js index 3e70decc..8ffc4bd8 100644 --- a/lib/shared/Configurator.js +++ b/lib/shared/Configurator.js @@ -331,7 +331,8 @@ class Configurator { range.min = min; 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; // set up the popup settings in case they are needed. diff --git a/lib/shared/Validator.js b/lib/shared/Validator.js index 8ede9bc6..ee21ccb2 100644 --- a/lib/shared/Validator.js +++ b/lib/shared/Validator.js @@ -310,8 +310,6 @@ class Validator { return matrix[b.length][a.length]; } - -; }