Add custom eslint rule

Adding a custom Radicle ESLint rule to enforce one (1) space
after a unary logical NOT (`!`)

Signed-off-by: Sebastian Martinez <sebastinez@me.com>
This commit is contained in:
Sebastian Martinez
2022-02-28 13:57:42 +01:00
committed by Alexis Sellier
parent 582ca41e5e
commit 55bf46729b
6 changed files with 21 additions and 5 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
async function isAbleToWithdraw(amount: string): Promise<[boolean, string?]> {
try {
if (!$session) { return [false]; }
if (! $session) { return [false]; }
if (!amount || amount === "0") { return [false, "Not able to withdraw zero tokens"]; }
if (toWei(amount).gt(maxWithdrawAmount)) return [false, `Reduce amount, max withdrawal is ${formatEther(maxWithdrawAmount)}`];
let currentTime = new Date().getTime();