Skip to content

Commit 4747977

Browse files
committed
Resolve eslint errors.
1 parent a5f061d commit 4747977

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/flatmap.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ export class FlatMap
924924
try {
925925
ann['lineString'] = turf.lineString(ann.coordinates!)
926926
ann['lineLength'] = turfLength.length(ann.lineString)
927-
} catch(error) {
927+
} catch(_) {
928928
console.log(`Bad centreline for ${ann.id}, ${ann.models}, coordinates: ${ann.coordinates}`)
929929
}
930930
}

src/knowledge/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ limitations under the License.
1818
1919
==============================================================================*/
2020

21-
import {FlatMapServer} from '../mapserver'
2221
import {DiGraph, NodeLinkGraph} from './graphs'
2322

2423
//==============================================================================

src/layers/acluster.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class ClusteredAnatomicalMarkerLayer
219219
addDatasetMarkers(datasets: DatasetTerms[]): DatasetTerms[]
220220
//=========================================================
221221
{
222-
let mapDatasetMarkers: DatasetTerms[] = []
222+
const mapDatasetMarkers: DatasetTerms[] = []
223223

224224
for (const dataset of datasets) {
225225
if (dataset.terms.length) {

src/layers/styling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export class FeatureFillLayer extends VectorStyleLayer
336336
const dimmed = options.dimmed || false
337337
const functional = (options.flatmapStyle === FLATMAP_STYLE.FUNCTIONAL)
338338

339-
// @ts-ignore
339+
// @ts-expect-error None
340340
const noOutlineActive: [ExpressionSpecification] = (coloured || outlined) ? []
341341
: [['boolean', ['feature-state', 'active'], false], '#444']
342342
const paintStyle: PaintSpecification = {

0 commit comments

Comments
 (0)