Skip to content

Commit

Permalink
chore(eslint): Permit unused function arguments w/ _ prefix (#746)
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrl authored Oct 1, 2024
1 parent 6fe97c9 commit be49aef
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@ module.exports = {
]
}
],
"@typescript-eslint/no-unused-vars": ["error", { ignoreRestSiblings: true }],
"@typescript-eslint/no-unused-vars": [
"error", {
argsIgnorePattern: "^_",
ignoreRestSiblings: true
}
],
"chai-expect/missing-assertion": 2,
"no-duplicate-imports": "error",
"require-await": "error",
Expand Down
1 change: 0 additions & 1 deletion src/apiClient/mockedClient.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
import { ethers } from "ethers";
import { deepCopy } from "ethers/lib/utils";
import { BigNumber, bnOne } from "../utils";
Expand Down
1 change: 0 additions & 1 deletion src/clients/mocks/MockConfigStoreClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ export class MockConfigStoreClient extends AcrossConfigStoreClient {
return this.availableChainIdsOverride ?? super.getChainIdIndicesForBlock(block);
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
getConfigStoreVersionForBlock(_blockNumber: number): number {
return this.configStoreVersion === DEFAULT_CONFIG_STORE_VERSION
? super.getConfigStoreVersionForBlock(_blockNumber)
Expand Down
1 change: 0 additions & 1 deletion src/relayFeeCalculator/relayFeeCalculator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ export class RelayFeeCalculator {
}

// Note: these variables are unused now, but may be needed in future versions of this function that are more complex.
// eslint-disable-next-line @typescript-eslint/no-unused-vars
capitalFeePercent(
_amountToRelay: BigNumberish,
_tokenSymbol: string,
Expand Down

0 comments on commit be49aef

Please sign in to comment.