change linter to standard

This commit is contained in:
Unknown
2018-11-12 10:28:59 +00:00
parent 19f3edf55a
commit 04d80c7c2f
19 changed files with 837 additions and 691 deletions

View File

@@ -1,17 +1,18 @@
import {Router, next} from "express";
import {mapboxAccessToken} from "../config";
import morgan from "morgan";
import mapbox from "./mapbox";
import { Router } from 'express'
import { mapboxAccessToken } from '../config'
import morgan from 'morgan'
import mapbox from './mapbox'
export default ({config, db}) => {
let routes = Router();
// eslint-disable-next-line
export default ({ config, db }) => {
let routes = Router()
/* logging middleware */
routes.use(morgan("dev"));
routes.use(morgan('dev'))
if (mapboxAccessToken) {
routes.get("/mapbox/:z/:y/:x", mapbox(mapboxAccessToken));
routes.get('/mapbox/:z/:y/:x', mapbox(mapboxAccessToken))
}
return routes;
};
return routes
}