Skip to content

Commit

Permalink
SERVICES-1760: add custom rule for eslint no-ununsed-var
Browse files Browse the repository at this point in the history
- add ignore patterns for underscored variables

Signed-off-by: Claudiu Lataretu <[email protected]>
  • Loading branch information
claudiulataretu committed Aug 21, 2023
1 parent 5b3e7bd commit f65a7bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,14 @@ module.exports = {
},
rules: {
"@typescript-eslint/no-explicit-any": ["off"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_",
"caughtErrorsIgnorePattern": "^_"
}
],
}
};
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export abstract class FarmComputeService implements IFarmComputeService {
return await this.computeFarmLockedValueUSD(farmAddress);
}

async computeFarmLockedValueUSD(farmAddress: string): Promise<string> {
async computeFarmLockedValueUSD(_farmAddress: string): Promise<string> {
return '0';
}

Expand Down

0 comments on commit f65a7bc

Please sign in to comment.