Skip to content

Commit efb3086

Browse files
authored
chore: clean up linting issues (#649)
1 parent 4eefedf commit efb3086

File tree

48 files changed

+59
-84
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+59
-84
lines changed

examples/setup-aep-fee-router/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ async function main() {
169169
['parentChainRewardRecipient', parentChainRewardRecipient],
170170
] as const);
171171

172-
type FeeCollectorKey = typeof feeCollectors extends Map<infer K, any> ? K : never;
172+
type FeeCollectorKey = typeof feeCollectors extends Map<infer K, unknown> ? K : never;
173173

174174
const feeCollectorToRewardDistributor: Record<FeeCollectorKey, `0x${string}`> = {} as Record<
175175
FeeCollectorKey,

prettier.config.cjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
module.exports = {
2+
// eslint-disable-next-line @typescript-eslint/no-require-imports
23
...require('@offchainlabs/prettier-config'),
34
// override here
45
};

src/actions/getMaxTimeVariation.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { sequencerInboxABI } from '../contracts/SequencerInbox';
33
import { ActionParameters } from '../types/Actions';
44

55
export type GetMaxTimeVariationParameters<Curried extends boolean = false> = ActionParameters<
6-
{},
6+
Record<string, never>,
77
'sequencerInbox',
88
Curried
99
>;

src/arbAggregatorPrepareTransactionRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export async function arbAggregatorPrepareTransactionRequest<
8686
abi: arbAggregatorABI,
8787
} as unknown as ArbAggregatorPrepareFunctionDataParameters<TFunctionName>);
8888

89-
// @ts-ignore (todo: fix viem type issue)
89+
// @ts-expect-error -- todo: fix viem type issue
9090
const request = await client.prepareTransactionRequest({
9191
chain: client.chain,
9292
to,

src/arbAggregatorReadContract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function arbAggregatorReadContract<
2020
client: PublicClient<Transport, TChain>,
2121
params: ArbAggregatorReadContractParameters<TFunctionName>,
2222
): Promise<ArbAggregatorReadContractReturnType<TFunctionName>> {
23-
// @ts-ignore (todo: fix viem type issue)
23+
// @ts-expect-error -- todo: fix viem type issue
2424
return client.readContract({
2525
address: arbAggregatorAddress,
2626
abi: arbAggregatorABI,

src/arbGasInfoReadContract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function arbGasInfoReadContract<
2020
client: PublicClient<Transport, TChain>,
2121
params: ArbGasInfoReadContractParameters<TFunctionName>,
2222
): Promise<ArbGasInfoReadContractReturnType<TFunctionName>> {
23-
// @ts-ignore (todo: fix viem type issue)
23+
// @ts-expect-error -- todo: fix viem type issue
2424
return client.readContract({
2525
address: arbGasInfoAddress,
2626
abi: arbGasInfoABI,

src/arbOwnerPrepareTransactionRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export async function arbOwnerPrepareTransactionRequest<
8787
abi: arbOwnerABI,
8888
} as unknown as ArbOwnerPrepareFunctionDataParameters<TFunctionName>);
8989

90-
// @ts-ignore (todo: fix viem type issue)
90+
// @ts-expect-error -- todo: fix viem type issue
9191
const request = await client.prepareTransactionRequest({
9292
chain: client.chain,
9393
to,

src/arbOwnerReadContract.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function arbOwnerReadContract<
2020
client: PublicClient<Transport, TChain>,
2121
params: ArbOwnerReadContractParameters<TFunctionName>,
2222
): Promise<ArbOwnerReadContractReturnType<TFunctionName>> {
23-
// @ts-ignore (todo: fix viem type issue)
23+
// @ts-expect-error -- todo: fix viem type issue
2424
return client.readContract({
2525
address: arbOwnerPublicAddress,
2626
abi: arbOwnerPublicABI,

src/chains.unit.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { testHelper_createCustomParentChain } from './testHelpers';
66
describe('registerCustomParentChain', () => {
77
it(`throws if "contracts.rollupCreator.address" is invalid`, () => {
88
// omit contracts from the chain
9-
const { contracts, ...chain } = testHelper_createCustomParentChain();
9+
const { ...chain } = testHelper_createCustomParentChain();
1010

1111
expect(() =>
1212
registerCustomParentChain({

src/createRollup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ export async function createRollup<TChain extends Chain | undefined>({
221221
// from RPCs that use load balancing and caching. More information can be found here:
222222
// https://github.com/wevm/viem/issues/1056#issuecomment-1689800265 )
223223
const tx = createRollupPrepareTransaction(
224-
// @ts-ignore (todo: fix viem type issue)
224+
// @ts-expect-error -- todo: fix viem type issue
225225
await parentChainPublicClient.getTransaction({ hash: txHash }),
226226
);
227227

0 commit comments

Comments
 (0)