Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

bypass `no-restricted-syntax` errors so we can enable

Jason Kent2997daa3a91d
diff --git a/.eslintrc b/.eslintrc
index 326f26d75..81fda8f83 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -82,7 +82,6 @@
"prefer-const": "warn",
"prefer-destructuring": "warn",
- "no-restricted-syntax": "off",
"class-methods-use-this": "off",
"max-len": "off",
"no-restricted-properties": "off",
diff --git a/tasks/config.js b/tasks/config.js
index 5a0ccdca5..c681c5c67 100755
--- a/tasks/config.js
+++ b/tasks/config.js
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+/* eslint-disable no-restricted-syntax */
const fs = require('fs');
const glob = require('glob');
diff --git a/tasks/csv2colormap.js b/tasks/csv2colormap.js
index aa3c45736..55f7dc984 100755
--- a/tasks/csv2colormap.js
+++ b/tasks/csv2colormap.js
@@ -1,4 +1,5 @@
#!/usr/bin/env node
+/* eslint-disable no-restricted-syntax */
const fs = require('fs');
diff --git a/tasks/link-check/natural-event-url-extract.js b/tasks/link-check/natural-event-url-extract.js
index 0b6ecd47b..c91d289db 100644
--- a/tasks/link-check/natural-event-url-extract.js
+++ b/tasks/link-check/natural-event-url-extract.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-restricted-syntax */
const fetch = require('node-fetch');
// delay helper to prevent too many requests at once
diff --git a/web/js/components/map/coordinates.test.js b/web/js/components/map/coordinates.test.js
index cacfb176b..b71c7b176 100644
--- a/web/js/components/map/coordinates.test.js
+++ b/web/js/components/map/coordinates.test.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-restricted-syntax */
import React from 'react';
import renderer from 'react-test-renderer';
import Coordinates from './coordinates';
diff --git a/web/js/components/timeline/timeline-controls/axis-timescale-change.js b/web/js/components/timeline/timeline-controls/axis-timescale-change.js
index 39c3736e0..bcbfd337e 100644
--- a/web/js/components/timeline/timeline-controls/axis-timescale-change.js
+++ b/web/js/components/timeline/timeline-controls/axis-timescale-change.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-restricted-syntax */
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import AxisTimeScaleChangeControls from './axis-timescale-change-controls';
diff --git a/web/js/containers/vector-dialog.js b/web/js/containers/vector-dialog.js
index 7e9f041b8..3848ffa70 100644
--- a/web/js/containers/vector-dialog.js
+++ b/web/js/containers/vector-dialog.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-restricted-syntax */
import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
diff --git a/web/js/modules/data/selectors.js b/web/js/modules/data/selectors.js
index c5255db54..0b999901c 100644
--- a/web/js/modules/data/selectors.js
+++ b/web/js/modules/data/selectors.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-restricted-syntax */
import { each as lodashEach } from 'lodash';
import util from '../../util/util';
import { getTitles } from '../layers/selectors';
diff --git a/web/js/modules/vector-styles/util.js b/web/js/modules/vector-styles/util.js
index 40649e7e2..fc1a3f1df 100644
--- a/web/js/modules/vector-styles/util.js
+++ b/web/js/modules/vector-styles/util.js
@@ -1,3 +1,4 @@
+/* eslint-disable no-restricted-syntax */
import {
assign as lodashAssign,
find as lodashFind,