From b0c0a408b7e638b8f13b19b5d1c1258c574d226a Mon Sep 17 00:00:00 2001 From: Boris Sekachev Date: Thu, 24 Sep 2020 22:43:26 +0300 Subject: [PATCH] Fixed eslint issues --- cvat-core/src/annotations-collection.js | 2 ++ cvat-core/src/enums.js | 2 +- cvat-core/src/user.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cvat-core/src/annotations-collection.js b/cvat-core/src/annotations-collection.js index 60d004ecee90..003c3b421153 100644 --- a/cvat-core/src/annotations-collection.js +++ b/cvat-core/src/annotations-collection.js @@ -866,6 +866,8 @@ const filteredTracks = this.tracks.filter((track) => !track.removed); let found = false; for (const track of filteredTracks) { + // false positive + // eslint-disable-next-line const { prev, first } = track.boundedKeyframes(frame); const last = prev === null ? first : prev; const lastShape = track.shapes[last]; diff --git a/cvat-core/src/enums.js b/cvat-core/src/enums.js index aedd6ac77ced..91420f982c02 100644 --- a/cvat-core/src/enums.js +++ b/cvat-core/src/enums.js @@ -46,7 +46,7 @@ * @property {string} UNKNOWN 'unknown' * @readonly */ - const RQStatus = Object.freeze({ + const RQStatus = Object.freeze({ QUEUED: 'queued', STARTED: 'started', FINISHED: 'finished', diff --git a/cvat-core/src/user.js b/cvat-core/src/user.js index 555ea83d2a76..f122d20b589d 100644 --- a/cvat-core/src/user.js +++ b/cvat-core/src/user.js @@ -152,7 +152,7 @@ * @readonly * @instance */ - get: () => !data.email_verification_required, + get: () => !data.email_verification_required, }, })); }