From 29021a8028f1927baffc43163f61cb92079b1a28 Mon Sep 17 00:00:00 2001 From: Alexey Date: Tue, 6 Jul 2021 13:51:06 +0300 Subject: [PATCH] fix trailingComma --- .prettierrc | 3 ++- src/merkleTree.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.prettierrc b/.prettierrc index 19d94ee..7d955c2 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,5 +2,6 @@ "semi": false, "arrowParens": "always", "singleQuote": true, - "printWidth": 110 + "printWidth": 110, + "trailingComma": "all" } diff --git a/src/merkleTree.js b/src/merkleTree.js index a569123..2f2511c 100644 --- a/src/merkleTree.js +++ b/src/merkleTree.js @@ -49,7 +49,7 @@ class MerkleTree { this._layers[level - 1][i * 2], i * 2 + 1 < this._layers[level - 1].length ? this._layers[level - 1][i * 2 + 1] - : this._zeros[level - 1] + : this._zeros[level - 1], ) } } @@ -102,7 +102,7 @@ class MerkleTree { this._layers[level - 1][index * 2], index * 2 + 1 < this._layers[level - 1].length ? this._layers[level - 1][index * 2 + 1] - : this._zeros[level - 1] + : this._zeros[level - 1], ) } }