diff --git a/packages/errors/src/message-formatter.ts b/packages/errors/src/message-formatter.ts index 0e864b58cde..ef51e30e52a 100644 --- a/packages/errors/src/message-formatter.ts +++ b/packages/errors/src/message-formatter.ts @@ -28,8 +28,10 @@ export function getHumanReadableErrorMessage const variableName = messageFormatString.slice(state[START_INDEX] + 1, endIndex); fragments.push( - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions - variableName in context ? `${context[variableName as keyof typeof context]}` : `$${variableName}`, + variableName in context + ? // eslint-disable-next-line @typescript-eslint/restrict-template-expressions + `${context[variableName as keyof typeof context]}` + : `$${variableName}`, ); } else if (state[TYPE] === StateType.Text) { fragments.push(messageFormatString.slice(state[START_INDEX], endIndex)); @@ -44,8 +46,8 @@ export function getHumanReadableErrorMessage messageFormatString[0] === '\\' ? StateType.EscapeSequence : messageFormatString[0] === '$' - ? StateType.Variable - : StateType.Text, + ? StateType.Variable + : StateType.Text, }; return; } diff --git a/packages/rpc-transport-http/src/__tests__/http-transport-test.ts b/packages/rpc-transport-http/src/__tests__/http-transport-test.ts index 058b60f314b..0ca641b3239 100644 --- a/packages/rpc-transport-http/src/__tests__/http-transport-test.ts +++ b/packages/rpc-transport-http/src/__tests__/http-transport-test.ts @@ -71,7 +71,7 @@ describe('createHttpTransport', () => { thrownError = e as SolanaError; } expect(thrownError).toBeDefined(); - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions + // eslint-disable-next-line @typescript-eslint/restrict-template-expressions expect(`${thrownError.context.headers}`).not.toMatch(/doNotLog/); }); });