mirror of
https://github.com/FoggedLens/iD.git
synced 2026-06-02 05:01:38 +02:00
Pacify eslint, get build and tests running again
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import { t } from '../util/locale';
|
||||
import _ from 'lodash';
|
||||
import { t } from '../util/locale';
|
||||
import { tagText } from '../util/index';
|
||||
export function DeprecatedTag() {
|
||||
|
||||
export function DeprecatedTag() {
|
||||
var validation = function(changes) {
|
||||
var warnings = [];
|
||||
for (var i = 0; i < changes.created.length; i++) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import { t } from '../util/locale';
|
||||
|
||||
export function ManyDeletions() {
|
||||
var threshold = 100;
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { t } from '../util/locale';
|
||||
import _ from 'lodash';
|
||||
export function MissingTag() {
|
||||
import { t } from '../util/locale';
|
||||
|
||||
export function MissingTag() {
|
||||
// Slightly stricter check than Entity#isUsed (#3091)
|
||||
function hasTags(entity, graph) {
|
||||
return _.without(Object.keys(entity.tags), 'area', 'name').length > 0 ||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import { t } from '../util/locale';
|
||||
import _ from 'lodash';
|
||||
export function TagSuggestsArea() {
|
||||
import { t } from '../util/locale';
|
||||
|
||||
// https://github.com/openstreetmap/josm/blob/mirror/src/org/
|
||||
// openstreetmap/josm/data/validation/tests/UnclosedWays.java#L80
|
||||
// https://github.com/openstreetmap/josm/blob/mirror/src/org/
|
||||
// openstreetmap/josm/data/validation/tests/UnclosedWays.java#L80
|
||||
export function TagSuggestsArea() {
|
||||
function tagSuggestsArea(tags) {
|
||||
if (_.isEmpty(tags)) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user