Lint empty lines
This commit is contained in:
parent
9b96872922
commit
f6e933ff8f
@ -27,7 +27,9 @@
|
||||
"indent": ["warn", 4],
|
||||
"no-multi-spaces": ["warn", {"ignoreEOLComments": true} ],
|
||||
"comma-spacing": ["warn"],
|
||||
"camelcase": ["warn", {"ignoreDestructuring": true ,"properties": "never"}]
|
||||
"camelcase": ["warn", {"ignoreDestructuring": true ,"properties": "never"}],
|
||||
"eol-last": ["warn", "always"],
|
||||
"no-multiple-empty-lines": ["warn", {"max": 1}]
|
||||
},
|
||||
"plugins": [
|
||||
"jest",
|
||||
|
@ -165,7 +165,6 @@ function saveBuilding(buildingId, building, userId) {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function likeBuilding(buildingId, userId) {
|
||||
// start transaction around save operation
|
||||
// - insert building-user like
|
||||
@ -220,7 +219,6 @@ function likeBuilding(buildingId, userId) {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function unlikeBuilding(buildingId, userId) {
|
||||
// start transaction around save operation
|
||||
// - insert building-user like
|
||||
|
@ -4,7 +4,6 @@
|
||||
*/
|
||||
import db from '../db';
|
||||
|
||||
|
||||
function createUser(user) {
|
||||
if (!user.password || user.password.length < 8) {
|
||||
return Promise.reject({ error: 'Password must be at least 8 characters' })
|
||||
|
@ -16,7 +16,6 @@ import MyAccountPage from './my-account';
|
||||
import SignUp from './signup';
|
||||
import Welcome from './welcome';
|
||||
|
||||
|
||||
/**
|
||||
* App component
|
||||
*
|
||||
|
@ -11,7 +11,6 @@ import { parseCategoryURL } from '../parse';
|
||||
|
||||
import CONFIG from './fields-config.json';
|
||||
|
||||
|
||||
const BuildingEdit = (props) => {
|
||||
if (!props.user){
|
||||
return <Redirect to="/sign-up.html" />
|
||||
|
@ -11,7 +11,6 @@ import { parseCategoryURL } from '../parse';
|
||||
|
||||
import CONFIG from './fields-config.json';
|
||||
|
||||
|
||||
const BuildingView = (props) => {
|
||||
if (!props.building_id){
|
||||
return (
|
||||
|
@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
|
||||
|
||||
import './legend.css';
|
||||
|
||||
|
||||
const LEGEND_CONFIG = {
|
||||
location: {
|
||||
title: 'Location',
|
||||
|
@ -6,7 +6,6 @@ import http from 'http';
|
||||
|
||||
import app from './server';
|
||||
|
||||
|
||||
const server = http.createServer(app);
|
||||
|
||||
let currentApp = app;
|
||||
|
@ -198,5 +198,4 @@ function getHighlightTableDefinition(geometryId) {
|
||||
) as highlight`
|
||||
}
|
||||
|
||||
|
||||
export { getBbox, getXYZ, renderTile, TILE_SIZE };
|
||||
|
@ -181,7 +181,6 @@ function StitchTile(tileset, z, x, y) {
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function handleHighlightTileRequest(req, res) {
|
||||
const { z, x, y } = req.params
|
||||
const intZ = strictParseInt(z);
|
||||
|
Loading…
Reference in New Issue
Block a user