Skip to content

Commit 3dd471c

Browse files
committed
Format code for newer eslint
Signed-off-by: Carlos Martín <carlos.martin.sanchez@gmail.com>
1 parent 6d8f899 commit 3dd471c

4 files changed

Lines changed: 17 additions & 8 deletions

File tree

frontend/.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,9 @@ module.exports = {
2222
'class-methods-use-this': 0, // strange rule. It doesn't allow to create method render() without this
2323
'no-case-declarations': 0, // otherwise code is very ugly
2424
},
25+
settings: {
26+
"react": {
27+
"version": "detect",
28+
},
29+
}
2530
};

frontend/src/App.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -376,12 +376,14 @@ FROM ( SELECT MONTH(committer_when) as month,
376376
this.stopInactiveTimer(key);
377377

378378
const hiddenKeys = Array.from(results.keys()).filter(k => k !== key);
379-
hiddenKeys.filter(k => !this.timers[k]).forEach(k => {
380-
this.timers[k] = window.setTimeout(
381-
() => this.removeResultContent(k),
382-
INACTIVE_TIMEOUT
383-
);
384-
});
379+
hiddenKeys
380+
.filter(k => !this.timers[k])
381+
.forEach(k => {
382+
this.timers[k] = window.setTimeout(
383+
() => this.removeResultContent(k),
384+
INACTIVE_TIMEOUT
385+
);
386+
});
385387
}
386388

387389
stopInactiveTimer(key) {

frontend/src/components/QueryBox.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ class QueryBox extends Component {
117117
bsStyle="gbpl-primary-tint-2-link"
118118
onClick={this.showHelpModal}
119119
>
120-
<HelpIcon className="big-icon" />HELP
120+
<HelpIcon className="big-icon" />
121+
HELP
121122
</Button>
122123
</Col>
123124
</Row>

frontend/src/components/TabbedResults.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ function ResultInfo({ result }) {
138138
if (result.errorMsg) {
139139
return (
140140
<span className="meta meta-error">
141-
<ErrorIcon className="big-icon" />Query Failed - {result.errorMsg}
141+
<ErrorIcon className="big-icon" />
142+
Query Failed - {result.errorMsg}
142143
</span>
143144
);
144145
}

0 commit comments

Comments
 (0)