Skip to content

Commit 58c1265

Browse files
committed
style: Fix linting issues.
1 parent 5484017 commit 58c1265

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

src/app/backglasses/backglass.api.router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
import Router = require('koa-router');
2121
import { ApiRouter } from '../common/api.router';
2222
import { Scope } from '../common/scope';
23+
import { ReleaseVersionApi } from '../releases/version/release.version.api';
2324
import { StarApi } from '../stars/star.api';
2425
import { BackglassApi } from './backglass.api';
25-
import { ReleaseVersionApi } from '../releases/version/release.version.api';
2626
import { BackglassVersionApi } from './version/backglass.version.api';
2727

2828
export class BackglassApiRouter implements ApiRouter {

src/app/backglasses/version/backglass.version.api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
import { defaults, orderBy, pick } from 'lodash';
2121
import sanitize = require('mongo-sanitize');
2222
import { Api } from '../../common/api';
23+
import { apiCache } from '../../common/api.cache';
2324
import { ApiError } from '../../common/api.error';
2425
import { logger } from '../../common/logger';
2526
import { Context } from '../../common/typings/context';
27+
import { GameDocument } from '../../games/game.document';
28+
import { LogEventUtil } from '../../log-event/log.event.util';
2629
import { ReleaseVersionDocument } from '../../releases/version/release.version.document';
2730
import { state } from '../../state';
28-
import { LogEventUtil } from '../../log-event/log.event.util';
29-
import { GameDocument } from '../../games/game.document';
30-
import { apiCache } from '../../common/api.cache';
3131

3232
/* tslint:disable:no-unsafe-finally */
3333
export class BackglassVersionApi extends Api {

src/app/comments/comment.api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import { cloneDeep } from 'lodash';
2121

22+
import { createTwoFilesPatch } from 'diff';
2223
import sanitize = require('mongo-sanitize');
2324
import { acl } from '../common/acl';
2425
import { Api } from '../common/api';
@@ -33,7 +34,6 @@ import { ReleaseDocument } from '../releases/release.document';
3334
import { state } from '../state';
3435
import { UserDocument } from '../users/user.document';
3536
import { CommentDocument } from './comment.document';
36-
import { createTwoFilesPatch } from 'diff';
3737

3838
export class CommentApi extends Api {
3939

src/app/comments/comment.schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const commentFields = {
3939
edits: [{
4040
_edited_by: { type: Schema.Types.ObjectId, required: true, ref: 'User', index: true },
4141
edited_at: { type: Date, required: true },
42-
diff: { type: String }
42+
diff: { type: String },
4343
}],
4444
ip: { type: String, required: true },
4545
created_at: { type: Date, required: true },

src/app/common/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import Router from 'koa-router';
2121
import { difference, extend, intersection, isEmpty, isObject, keys, map, pick, uniq, values } from 'lodash';
2222
import { format as formatUrl, parse as parseUrl } from 'url';
2323
import { state } from '../state';
24+
import { AuthoredEntity } from '../users/authored-entity';
2425
import { UserDocument } from '../users/user.document';
2526
import { acl } from './acl';
2627
import { ApiError, ApiValidationError } from './api.error';
@@ -29,7 +30,6 @@ import { scope, Scope } from './scope';
2930
import { config, settings } from './settings';
3031
import { VpdbBackoffConfig } from './typings/config';
3132
import { Context } from './typings/context';
32-
import { AuthoredEntity } from '../users/authored-entity';
3333

3434
export abstract class Api {
3535

src/app/users/authored-entity.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1818
*/
1919

20-
import { Types, } from 'mongoose';
20+
import { Types } from 'mongoose';
2121
import { ContentAuthor } from './content.author';
2222
import { UserDocument } from './user.document';
2323

src/scripts/migrations/23-9525653-add-rom-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
1818
*/
1919

20+
import { apiCache } from '../../app/common/api.cache';
2021
import { logger } from '../../app/common/logger';
2122
import { state } from '../../app/state';
22-
import { apiCache } from '../../app/common/api.cache';
2323

2424
/**
2525
* Updates most ROM files with the type, so we know which is the main ROM,

0 commit comments

Comments
 (0)