Lint multi-spaces

This commit is contained in:
Tom Russell 2019-05-27 16:45:24 +01:00
parent af9c23d883
commit aef53a0ae0
4 changed files with 5 additions and 4 deletions

View File

@ -22,7 +22,8 @@
"strict": ["error", "global"],
"curly": "warn",
"quotes": ["warn", "single"],
"indent": ["warn", 4]
"indent": ["warn", 4],
"no-multi-spaces": ["error", {"ignoreEOLComments": true} ]
},
"plugins": [
"react"

View File

@ -282,7 +282,7 @@ function unlikeBuilding(building_id, user_id) {
}
function privateQueryBuildingBBOX(building_id){
return db.one(
return db.one(
`SELECT
ST_XMin(envelope) as xmin,
ST_YMin(envelope) as ymin,

View File

@ -28,7 +28,7 @@ class Header extends React.Component {
<Logo/>
</span>
<button className="navbar-toggler navbar-toggler-right" type="button"
onClick={this.handleClick} aria-expanded="false" aria-label="Toggle navigation">
onClick={this.handleClick} aria-expanded="false" aria-label="Toggle navigation">
<span className="navbar-toggler-icon"></span>
</button>
<div className={this.state.collapseMenu ? 'collapse navbar-collapse' : 'navbar-collapse'}>

View File

@ -16,7 +16,7 @@ const Overview = (props) => {
}
let title = (props.mode === 'view')? 'View maps' : 'Add or edit data';
let back = (props.mode === 'edit')? `/view/${data_layer}.html` : undefined;
let back = (props.mode === 'edit')? `/view/${data_layer}.html` : undefined;
return (
<Sidebar title={title} back={back}>