Lint empty lines

This commit is contained in:
Tom Russell 2019-05-27 18:33:36 +01:00
parent 9b96872922
commit f6e933ff8f
10 changed files with 3 additions and 11 deletions

View File

@ -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",

View File

@ -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

View File

@ -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' })

View File

@ -16,7 +16,6 @@ import MyAccountPage from './my-account';
import SignUp from './signup';
import Welcome from './welcome';
/**
* App component
*

View File

@ -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" />

View File

@ -11,7 +11,6 @@ import { parseCategoryURL } from '../parse';
import CONFIG from './fields-config.json';
const BuildingView = (props) => {
if (!props.building_id){
return (

View File

@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
import './legend.css';
const LEGEND_CONFIG = {
location: {
title: 'Location',

View File

@ -6,7 +6,6 @@ import http from 'http';
import app from './server';
const server = http.createServer(app);
let currentApp = app;

View File

@ -198,5 +198,4 @@ function getHighlightTableDefinition(geometryId) {
) as highlight`
}
export { getBbox, getXYZ, renderTile, TILE_SIZE };

View File

@ -181,7 +181,6 @@ function StitchTile(tileset, z, x, y) {
});
}
function handleHighlightTileRequest(req, res) {
const { z, x, y } = req.params
const intZ = strictParseInt(z);