Skip to content

Commit ecd8246

Browse files
committed
chore: convert tslint:disable comments to eslint equivalents in tests/
1 parent 1dbdbe5 commit ecd8246

11 files changed

Lines changed: 5 additions & 12 deletions

tests/docs-tests/src/tests/architecture/hooks/building-custom-hooks.feature.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ describe('Feature: Building custom hooks', () => {
5555

5656
@Get('/')
5757
@Hook((ctx, services) => {
58-
// tslint:disable-next-line
5958
const logger = services.get(Logger);
6059
// logger.log('IP: ' + ctx.request.ip);
6160
})

tests/docs-tests/src/tests/architecture/hooks/executing-logic-after-the-controller-method.feature.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ describe('Feature: Executing logic after the controller method.', () => {
4444
const time = process.hrtime();
4545

4646
return () => {
47-
// tslint:disable-next-line
4847
const seconds = process.hrtime(time)[0];
4948
// console.log(`Executed in ${seconds} seconds`);
5049
};

tests/docs-tests/src/tests/architecture/hooks/grouping-several-hooks-into-one.feature.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ describe('Feature: Grouping several hooks into one.', () => {
1212

1313
// Before
1414

15-
// tslint:disable-next-line
1615
class MyController {
1716
@Get('/products')
1817
@ValidateHeader('Authorization')

tests/docs-tests/src/tests/authentication/social-auth/adding-social-auth-controllers.feature.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('Feature: Adding social auth controllers', () => {
1010

1111
/* ======================= DOCUMENTATION BEGIN ======================= */
1212

13-
// tslint:disable-next-line:no-unused-variable
13+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1414
class AuthController {
1515
@dependency
1616
google: GoogleProvider;
@@ -26,7 +26,7 @@ describe('Feature: Adding social auth controllers', () => {
2626
async handleGoogleRedirection(ctx: Context) {
2727
// Once the user gives their permission to log in with Google, the OAuth server
2828
// will redirect the user to this route. This route must match the redirect URI.
29-
// tslint:disable-next-line:no-unused-variable
29+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3030
const { userInfo, tokens } = await this.google.getUserInfo(ctx);
3131

3232
// Do something with the user information AND/OR the access token.

tests/docs-tests/src/tests/common/async-tasks/using-async-tasks.feature.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('Feature: Using async tasks', () => {
1313

1414
/* ======================= DOCUMENTATION BEGIN ======================= */
1515

16-
// tslint:disable-next-line:no-unused-variable
16+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
1717
class SubscriptionService {
1818
@dependency
1919
asyncService: AsyncService;

tests/docs-tests/src/tests/common/file-storage/upload-and-download-files/using-buffers-in-file-uploads.feature.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('Feature: Using buffers in file uploads', () => {
3030
uploadProfilePhoto(ctx: Context) {
3131
const { buffer } = ctx.files.get('profile')[0];
3232
const files = ctx.files.get('images');
33-
// tslint:disable-next-line:no-unused-variable
33+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3434
for (const file of files) {
3535
// Do something with file.buffer
3636
}

tests/docs-tests/src/tests/common/validation-and-sanitization.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('[Docs] Input Validation & Sanitization', () => {
2626
describe('Validation & Sanitization of HTTP Requests', () => {
2727

2828
// Test compilation
29-
// tslint:disable-next-line:no-unused-variable
29+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3030
class MyController {
3131

3232
@Post('/user')

tests/docs-tests/src/tests/common/websocket/handling-connection.feature.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ describe('Feature: Handling connection', () => {
77

88
/* ======================= DOCUMENTATION BEGIN ======================= */
99

10-
// tslint:disable-next-line
1110
class WebsocketController extends SocketIOController {
1211

1312
onConnection(ctx: WebsocketContext) {

tests/docs-tests/src/tests/common/websocket/passing-custom-server-options.feature.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ describe('Feature: Passing custom server options', () => {
77

88
/* ======================= DOCUMENTATION BEGIN ======================= */
99

10-
// tslint:disable-next-line
1110
class WebsocketController extends SocketIOController {
1211

1312
options = {

tests/docs-tests/src/tests/common/websocket/using-websocket-controllers-and-hooks.feature.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ describe('Feature: Using Websocket controllers and hooks', () => {
3737

3838
}
3939

40-
// tslint:disable-next-line
4140
class WebsocketController extends SocketIOController {
4241
subControllers = [
4342
wsController('users ', UserController)

0 commit comments

Comments
 (0)