Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ module.exports = {
"react/self-closing-comp": "error",
"react/jsx-no-undef": ["error", { allowGlobals: true }],

"no-restricted-imports": [
"error",
{
name: "lodash",
message: "Please use 'lodash-es' instead."
}
],
/*Possible Errors */
"no-console": "off",
"no-inner-declarations": [1, "functions"],
Expand Down
2 changes: 1 addition & 1 deletion lib/Map/Vector/Protomaps/ProtomapsGeojsonSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import booleanIntersects from "@turf/boolean-intersects";
import circle from "@turf/circle";
import { Feature, featureCollection } from "@turf/helpers";
import geojsonvt from "geojson-vt";
import { cloneDeep } from "lodash";
import { cloneDeep } from "lodash-es";
import { makeObservable, observable, runInAction } from "mobx";
import {
Bbox,
Expand Down
2 changes: 1 addition & 1 deletion lib/Models/Catalog/CatalogItems/ApiTableCatalogItem.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import dateFormat from "dateformat";
import { get as _get, map as _map } from "lodash";
import { get as _get, map as _map } from "lodash-es";
import { computed, observable, runInAction, makeObservable } from "mobx";
import URI from "urijs";
import isDefined from "../../../Core/isDefined";
Expand Down
2 changes: 1 addition & 1 deletion lib/Models/Catalog/CatalogItems/GeoJsonCatalogItem.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { featureCollection, FeatureCollection } from "@turf/helpers";
import i18next from "i18next";
import { get as _get, set as _set } from "lodash";
import { get as _get, set as _set } from "lodash-es";
import { computed, makeObservable, toJS } from "mobx";
import filterOutUndefined from "../../../Core/filterOutUndefined";
import {
Expand Down
2 changes: 1 addition & 1 deletion lib/ReactViews/Workbench/Controls/ViewingControls.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sortBy, uniqBy } from "lodash";
import { sortBy, uniqBy } from "lodash-es";
import { action, computed, runInAction, makeObservable } from "mobx";
import { observer } from "mobx-react";
import React from "react";
Expand Down