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"], "strict": ["error", "global"],
"curly": "warn", "curly": "warn",
"quotes": ["warn", "single"], "quotes": ["warn", "single"],
"indent": ["warn", 4] "indent": ["warn", 4],
"no-multi-spaces": ["error", {"ignoreEOLComments": true} ]
}, },
"plugins": [ "plugins": [
"react" "react"

View File

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

View File

@ -28,7 +28,7 @@ class Header extends React.Component {
<Logo/> <Logo/>
</span> </span>
<button className="navbar-toggler navbar-toggler-right" type="button" <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> <span className="navbar-toggler-icon"></span>
</button> </button>
<div className={this.state.collapseMenu ? 'collapse navbar-collapse' : 'navbar-collapse'}> <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 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 ( return (
<Sidebar title={title} back={back}> <Sidebar title={title} back={back}>