From cd3d89eacf494229905250807e7de796e85017c1 Mon Sep 17 00:00:00 2001 From: Nick Date: Fri, 22 Sep 2017 16:16:06 -0700 Subject: [PATCH] Lint --- example/src/components/GeoJSONSource.js | 1 - javascript/components/AbstractLayer.js | 1 + javascript/components/ShapeSource.js | 2 +- javascript/utils/MapboxStyleSheet.js | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/src/components/GeoJSONSource.js b/example/src/components/GeoJSONSource.js index f2b5c29..4e09620 100644 --- a/example/src/components/GeoJSONSource.js +++ b/example/src/components/GeoJSONSource.js @@ -5,7 +5,6 @@ import BaseExamplePropTypes from './common/BaseExamplePropTypes'; import Page from './common/Page'; import sheet from '../styles/sheet'; -import { SF_OFFICE_COORDINATE } from '../utils'; import smileyFaceGeoJSON from '../assets/smiley_face.json'; const layerStyles = MapboxGL.StyleSheet.create({ diff --git a/javascript/components/AbstractLayer.js b/javascript/components/AbstractLayer.js index 9cea95f..486dd1a 100644 --- a/javascript/components/AbstractLayer.js +++ b/javascript/components/AbstractLayer.js @@ -1,3 +1,4 @@ +/* eslint react/prop-types: 0 */ import React from 'react'; class AbstractLayer extends React.Component { diff --git a/javascript/components/ShapeSource.js b/javascript/components/ShapeSource.js index 49fda1e..1e9262e 100644 --- a/javascript/components/ShapeSource.js +++ b/javascript/components/ShapeSource.js @@ -76,7 +76,7 @@ class ShapeSource extends React.Component { id: MapboxGL.StyleSource.DefaultSourceID, }; - _getShape() { + _getShape () { if (!this.props.shape) { return; } diff --git a/javascript/utils/MapboxStyleSheet.js b/javascript/utils/MapboxStyleSheet.js index 7989aa6..fc1f640 100644 --- a/javascript/utils/MapboxStyleSheet.js +++ b/javascript/utils/MapboxStyleSheet.js @@ -23,7 +23,7 @@ class MapStyleTransitionItem extends MapStyleItem { duration: duration, delay: delay, }, - ...extras + ...extras, }); } } @@ -32,7 +32,7 @@ class MapStyleTranslationItem extends MapStyleItem { constructor (x, y, extras = {}) { super(StyleTypes.Translation, { value: [x, y], - ...extras + ...extras, }); } }