Skip to content

Commit c71415d

Browse files
author
hirsch88
committed
remove unused locals
1 parent bdf0d54 commit c71415d

File tree

9 files changed

+1
-18
lines changed

9 files changed

+1
-18
lines changed

src/api/listeners/UserAuthenticatedListener.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { inject, named } from 'inversify';
22
import { Types } from '../../constants/Types';
33
import { Core } from '../../constants/Targets';
4-
import { events } from '../../core/api/events';
54
import { Log } from '../../core/log/';
65

76

src/api/listeners/UserCreatedListener.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { inject, named } from 'inversify';
22
import { Types } from '../../constants/Types';
33
import { Core } from '../../constants/Targets';
4-
import { events } from '../../core/api/events';
54
import { Log } from '../../core/log/';
65

76
const log = new Log('api:listeners:UserCreated');

src/api/middlewares/PopulateUserMiddleware.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { inject, named } from 'inversify';
2-
import * as Request from 'request';
32
import { my } from 'my-express';
43
import { Log } from '../../core/log';
54
import { UserService } from '../services/UserService';

src/core/ApiMonitor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as express from 'express';
22
import * as monitor from 'express-status-monitor';
3-
import { my } from 'my-express';
43
import { Environment } from './Environment';
54

65

src/core/Bootstrap.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,11 @@
99
* small monitor app.
1010
*/
1111

12-
import * as fs from 'fs';
1312
import * as http from 'http';
1413
import * as express from 'express';
15-
import * as monitor from 'express-status-monitor';
16-
import { Container } from 'inversify';
1714
import { InversifyExpressServer } from 'inversify-express-utils';
1815
import { Environment } from './Environment';
19-
import { my } from 'my-express';
2016
import { exceptionHandler, extendExpressResponse } from './api';
21-
import { events } from './api/events';
2217
import { Server } from './Server';
2318
import { ioc } from './IoC';
2419
import { Log } from './log';

src/core/IoC.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
* will then be bonded to the express structure with their defined routes.
77
*/
88

9-
import * as fs from 'fs';
109
import * as glob from 'glob';
1110
import { Container, decorate, injectable } from 'inversify';
12-
import { interfaces } from 'inversify-express-utils';
1311
import { Types } from '../constants/Types';
1412
import { Core, Controller, Model, Service, Repository, Middleware, Listener } from '../constants/Targets';
1513

@@ -201,10 +199,6 @@ class IoC {
201199
});
202200
}
203201

204-
private parseName(fileName: string): string {
205-
return fileName.substring(0, fileName.length - 3);
206-
}
207-
208202
private parseFilePath(path: string): any {
209203
const filePath = path.substring(this.getBasePath().length + 1);
210204
const dir = filePath.split('/')[0];

src/core/SwaggerUI.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import * as express from 'express';
22
import * as swaggerUi from 'swagger-ui-express';
3-
import { my } from 'my-express';
43
import { Environment } from './Environment';
54

65

@@ -23,7 +22,6 @@ export class SwaggerUI {
2322
};
2423

2524
// Initialize swagger-jsdoc -> returns validated swagger spec in json format
26-
// const swaggerUi = require('swagger-ui-express');
2725
const route = Environment.get<string>('APP_URL_PREFIX') + Environment.get<string>('SWAGGER_ROUTE');
2826
this.app.use(route, swaggerUi.serve, swaggerUi.setup(swaggerFile));
2927
}

src/core/api/Validate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
* the given validation classes.
99
*/
1010

11-
import { ValidationException } from '../../api/exceptions/ValidationException';
1211
import { RequestBody } from './RequestBody';
1312

1413

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"module": "commonjs",
44
"target": "es6",
55
"noImplicitAny": false,
6+
"noUnusedLocals": true,
67
"moduleResolution": "node",
78
"sourceMap": true,
89
"baseUrl": ".",

0 commit comments

Comments
 (0)