Pacify eslint, get build and tests running again

This commit is contained in:
Bryan Housel
2016-08-26 01:15:07 -04:00
parent 1021f6266f
commit a86f34b4ef
143 changed files with 406 additions and 342 deletions
+2 -2
View File
@@ -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
View File
@@ -1,4 +1,5 @@
import { t } from '../util/locale';
export function ManyDeletions() {
var threshold = 100;
+2 -2
View File
@@ -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 ||
+4 -4
View File
@@ -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;