Update eslint version and eslint rules Legacy indent rules doesn't handle all cases. As a result there are different indents in .js files. This commit update eslint rules and add autofix for incorrect indents. It is expected that fix should be run after converting to class-based elements. Change-Id: I9d37a3d4319e2af71ddb93100a6791b8ddb7de79
diff --git a/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.js b/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.js index cc7fbe6..b2b1588 100644 --- a/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.js +++ b/polygerrit-ui/app/elements/change/gr-reply-dialog/gr-reply-dialog.js
@@ -87,7 +87,7 @@ * @event comment-refresh */ - /** + /** * Fires when the state of the send button (enabled/disabled) changes. * * @event send-disabled-changed @@ -249,7 +249,7 @@ this.fetchChangeUpdates(this.change, this.$.restAPI) .then(result => { this.knownLatestState = result.isLatest ? - LatestPatchState.LATEST : LatestPatchState.NOT_LATEST; + LatestPatchState.LATEST : LatestPatchState.NOT_LATEST; }); this._focusOn(opt_focusTarget); @@ -394,16 +394,16 @@ return this.$.restAPI.removeChangeReviewer(this.change._number, account._account_id).then(response => { - if (!response.ok) { return response; } + if (!response.ok) { return response; } - const reviewers = this.change.reviewers[type] || []; - for (let i = 0; i < reviewers.length; i++) { - if (reviewers[i]._account_id == account._account_id) { - this.splice(`change.reviewers.${type}`, i, 1); - break; - } - } - }); + const reviewers = this.change.reviewers[type] || []; + for (let i = 0; i < reviewers.length; i++) { + if (reviewers[i]._account_id == account._account_id) { + this.splice(`change.reviewers.${type}`, i, 1); + break; + } + } + }); }, _mapReviewer(reviewer) {