Skip to content

Commit

Permalink
chore: 🤖 fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
sansan committed Oct 4, 2024
1 parent a4eedc0 commit c53723b
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/api/client/Assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ import {
* Handles all Asset related functionality
*/
export class Assets {
private context: Context;
private readonly context: Context;

/**
* @hidden
Expand Down
2 changes: 1 addition & 1 deletion src/api/client/Claims.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ import { calculateNextKey, createProcedureMethod, getDid, removePadding } from '
* Handles all Claims related functionality
*/
export class Claims {
private context: Context;
private readonly context: Context;

/**
* @hidden
Expand Down
2 changes: 1 addition & 1 deletion src/api/client/Network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import { createProcedureMethod, filterEventRecords, optionize } from '~/utils/in
* Handles all Network related functionality, including querying for historical events from middleware
*/
export class Network {
private context: Context;
private readonly context: Context;

/**
* @hidden
Expand Down
1 change: 1 addition & 0 deletions src/api/client/__tests__/Claims.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ describe('Claims Class', () => {
id: 'someCddId',
};

/* eslint-disable @typescript-eslint/naming-convention */
const rawIdentityClaim = {
claim_issuer: dsMockUtils.createMockIdentityId(claimIssuer),
issuance_date: dsMockUtils.createMockMoment(new BigNumber(issuanceDate.getTime())),
Expand Down
4 changes: 2 additions & 2 deletions src/base/Context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export class Context {

public ss58Format: BigNumber;

private _middlewareApi: ApolloClient<NormalizedCacheObject> | null;
private readonly _middlewareApi: ApolloClient<NormalizedCacheObject> | null;

private _signingManager?: SigningManager;

Expand All @@ -129,7 +129,7 @@ export class Context {

public isV6 = false;

private unsubChainVersion: UnsubscribePromise;
private readonly unsubChainVersion: UnsubscribePromise;

/**
* @hidden
Expand Down
2 changes: 1 addition & 1 deletion src/testUtils/mocks/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ function createMockEntityClass<Options extends EntityOptions>(
exists = jest.fn();
toHuman = jest.fn();

private static constructorMock = jest.fn();
private static constructorMock = jest.fn(); // NOSONAR

private static options = {} as Required<Options>;

Expand Down

0 comments on commit c53723b

Please sign in to comment.