Skip to content

Commit 1bdc490

Browse files
committed
lint code
1 parent e8bf60d commit 1bdc490

File tree

9 files changed

+38
-17
lines changed

9 files changed

+38
-17
lines changed

lib/memoize/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function memoize(options: MemoizeOptions = {}): MethodDecorator {
4545
max = 50,
4646
ttl = 1000 * 60 * 30,
4747
strategy = 'concat',
48-
skipCache = []
48+
skipCache = [],
4949
} = options;
5050
/* eslint-enable */
5151

workers/archiver/src/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default class ArchiverWorker extends Worker {
8686

8787
const projects = await this.projectCollection.find({}).project({
8888
_id: 1,
89-
name: 1
89+
name: 1,
9090
});
9191
const projectsData: ReportDataByProject[] = [];
9292

@@ -155,11 +155,11 @@ export default class ArchiverWorker extends Worker {
155155
await this.projectCollection.updateOne({
156156
_id: project._id,
157157
},
158-
{
159-
$inc: {
160-
archivedEventsCount: deletedCount,
161-
},
162-
});
158+
{
159+
$inc: {
160+
archivedEventsCount: deletedCount,
161+
},
162+
});
163163
}
164164

165165
/**
@@ -351,7 +351,7 @@ export default class ArchiverWorker extends Worker {
351351
this.logger.info('Report notification response:', {
352352
status: response?.status,
353353
statusText: response?.statusText,
354-
data: response?.data
354+
data: response?.data,
355355
});
356356
}
357357

workers/email/scripts/emailOverview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ class EmailTestServer {
156156
tariffPlanId: '5f47f031ff71510040f433c1',
157157
password: '1as2eadd321a3cDf',
158158
plan: {
159-
name: 'Корпоративный'
159+
name: 'Корпоративный',
160160
},
161161
workspaceName: workspace.name,
162162
};

workers/javascript/tests/index.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,5 +442,4 @@ describe('JavaScript event worker', () => {
442442

443443
await worker.finish();
444444
});
445-
446445
});

workers/limiter/tests/dbHelper.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ describe('DbHelper', () => {
304304
/**
305305
* Act
306306
*/
307-
await dbHelper.updateWorkspacesEventsCountAndIsBlocked([updatedWorkspace]);
307+
await dbHelper.updateWorkspacesEventsCountAndIsBlocked([ updatedWorkspace ]);
308308

309309
/**
310310
* Assert

workers/paymaster/src/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,13 +160,17 @@ export default class PaymasterWorker extends Worker {
160160

161161
/**
162162
* Finds plan by id from cached plans
163+
*
164+
* @param planId
163165
*/
164166
private findPlanById(planId: WorkspaceDBScheme['tariffPlanId']): PlanDBScheme | undefined {
165167
return this.plans.find((plan) => plan._id.toString() === planId.toString());
166168
}
167169

168170
/**
169171
* Returns workspace plan, refreshes cache when plan is missing
172+
*
173+
* @param workspace
170174
*/
171175
private async getWorkspacePlan(workspace: WorkspaceDBScheme): Promise<PlanDBScheme> {
172176
let currentPlan = this.findPlanById(workspace.tariffPlanId);
@@ -413,7 +417,6 @@ export default class PaymasterWorker extends Worker {
413417
});
414418
}
415419

416-
417420
/**
418421
* Sends reminder emails to blocked workspace admins
419422
*

workers/paymaster/tests/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ describe('PaymasterWorker', () => {
317317
}
318318

319319
MockDate.reset();
320+
320321
return addTaskSpy;
321322
};
322323

workers/release/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,7 @@ export default class ReleaseWorker extends Worker {
281281
/**
282282
* Some bundlers could skip file in the source map content since it duplicates in map name
283283
* Like map name bundle.js.map is a source map for a bundle.js
284+
*
284285
* @see https://sourcemaps.info/spec.html - format
285286
*/
286287
originFileName: mapContent.file ?? file.name.replace(/\.map$/, ''),

workers/sentry/tests/index.test.ts

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -806,23 +806,33 @@ describe('SentryEventWorker', () => {
806806
event_id: '4c40fee730194a989439a86bf75634111',
807807
sent_at: '2025-08-29T10:59:29.952Z',
808808
/* eslint-enable @typescript-eslint/naming-convention */
809-
sdk: { name: 'sentry.javascript.react', version: '9.10.1' },
809+
sdk: {
810+
name: 'sentry.javascript.react',
811+
version: '9.10.1',
812+
},
810813
}),
811814
// Event item header
812815
JSON.stringify({ type: 'event' }),
813816
// Event item payload
814-
JSON.stringify({ message: 'Test event', level: 'error' }),
817+
JSON.stringify({
818+
message: 'Test event',
819+
level: 'error',
820+
}),
815821
// Replay event item header - should be filtered out
816822
JSON.stringify({ type: 'replay_event' }),
817823
// Replay event item payload - should be filtered out
818824
JSON.stringify({
819825
/* eslint-disable @typescript-eslint/naming-convention */
820826
replay_id: 'test-replay',
827+
/* eslint-disable @typescript-eslint/naming-convention */
821828
segment_id: 1,
822829
/* eslint-enable @typescript-eslint/naming-convention */
823830
}),
824831
// Replay recording item header - should be filtered out
825-
JSON.stringify({ type: 'replay_recording', length: 343 }),
832+
JSON.stringify({
833+
type: 'replay_recording',
834+
length: 343,
835+
}),
826836
// Replay recording binary payload - should be filtered out
827837
'binary-data-here-that-is-not-json',
828838
];
@@ -841,6 +851,7 @@ describe('SentryEventWorker', () => {
841851
expect(mockedAmqpChannel.sendToQueue).toHaveBeenCalledTimes(1);
842852

843853
const addedTaskPayload = getAddTaskPayloadFromLastCall();
854+
844855
expect(addedTaskPayload).toMatchObject({
845856
payload: expect.objectContaining({
846857
addons: {
@@ -865,7 +876,10 @@ describe('SentryEventWorker', () => {
865876
event_id: '62680958b3ab4497886375e06533d86a',
866877
sent_at: '2025-12-24T13:16:34.580Z',
867878
/* eslint-enable @typescript-eslint/naming-convention */
868-
sdk: { name: 'sentry.javascript.react', version: '10.22.0' },
879+
sdk: {
880+
name: 'sentry.javascript.react',
881+
version: '10.22.0',
882+
},
869883
}),
870884
// Replay event item header - should be filtered out
871885
JSON.stringify({ type: 'replay_event' }),
@@ -907,7 +921,10 @@ describe('SentryEventWorker', () => {
907921
/* eslint-enable @typescript-eslint/naming-convention */
908922
}),
909923
// Replay recording item header - should be filtered out
910-
JSON.stringify({ type: 'replay_recording', length: 16385 }),
924+
JSON.stringify({
925+
type: 'replay_recording',
926+
length: 16385,
927+
}),
911928
// Segment ID - should be filtered out
912929
JSON.stringify({ segment_id: 1 }),
913930
// Binary data (simulated) - should be filtered out

0 commit comments

Comments
 (0)