Disable no-fallthrough eslint warning around this switch block

This commit is contained in:
Bryan Housel
2017-02-06 14:13:04 -05:00
parent d7ad3bc39e
commit 20b79940ae

View File

@@ -203,6 +203,8 @@ export function svgGpx(projection, context, dispatch) {
viewport = map.trimmedExtent().polygon(),
coords = _.reduce(geojson.features, function(coords, feature) {
var c = feature.geometry.coordinates;
/* eslint-disable no-fallthrough */
switch (feature.geometry.type) {
case 'Point':
c = [c];
@@ -217,6 +219,8 @@ export function svgGpx(projection, context, dispatch) {
c = _.flatten(c);
break;
}
/* eslint-enable no-fallthrough */
return _.union(coords, c);
}, []);