Skip to content

Commit

Permalink
lint shared (almende#3309)
Browse files Browse the repository at this point in the history
* lint shared

* Re-introduce semi-colons to () => {} variables in ColorPicker
  • Loading branch information
macleodbroad-wf authored and Primoz Susa committed Jan 3, 2019
1 parent 3bcc039 commit dff0ce1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
6 changes: 4 additions & 2 deletions lib/shared/ColorPicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand All @@ -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';

Expand Down
3 changes: 2 additions & 1 deletion lib/shared/Configurator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 0 additions & 2 deletions lib/shared/Validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,6 @@ class Validator {

return matrix[b.length][a.length];
}

;
}


Expand Down

0 comments on commit dff0ce1

Please sign in to comment.