update devDependencies, update eslint config, fix lint issues
[squeep-totp] / lib / totp.js
index a1d2fce6820afffc3a2d892565262666897f6363..15aa01e26e3ec13509b83060be109c527b907197 100644 (file)
@@ -19,7 +19,7 @@ class TimeBasedOneTimePassword extends HOTP {
     const _options = { ...options };
     super(_options);
     this.driftOffsets = [
-      0n, // check now first
+      0n, // Check now first
       ...Array.from({ length: this.driftBackward }, (v, k) => BigInt(-(k + 1))),
       ...Array.from({ length: this.driftForward }, (v, k) => BigInt(k + 1)),
     ];
@@ -48,7 +48,7 @@ class TimeBasedOneTimePassword extends HOTP {
     return BigInt(Math.floor((epoch - this.timeStepStartSeconds) / this.timeStepSeconds));
   }
 
-  set counter(_) { /* ignore assignment */ } // eslint-disable-line class-methods-use-this
+  set counter(_) { /* Ignore assignment */ } // eslint-disable-line class-methods-use-this
 
   static get _defaultOptions() {
     const options = Object.assign(super._defaultOptions, {