From ba034f6340057d25ef4eac6ac7e902dff9fd4db7 Mon Sep 17 00:00:00 2001
From: Patrick Remy <github@patrick-remy.dev>
Date: Fri, 23 Jul 2021 09:26:17 +0200
Subject: [PATCH] :hammer: Fix linting issues

---
 src/client.js         | 4 +++-
 src/gcm/index.js      | 4 ++--
 src/parser.js         | 4 ++--
 src/register/index.js | 5 ++++-
 4 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/src/client.js b/src/client.js
index 22fbea5..2016722 100644
--- a/src/client.js
+++ b/src/client.js
@@ -136,14 +136,16 @@ module.exports = class Client extends EventEmitter {
   }
 
   _onSocketClose() {
-    this.emit('disconnect')
+    this.emit('disconnect');
     this._retry();
   }
 
+  // eslint-disable-next-line no-unused-vars
   _onSocketError(error) {
     // ignore, the close handler takes care of retry
   }
 
+  // eslint-disable-next-line no-unused-vars
   _onParserError(error) {
     this._retry();
   }
diff --git a/src/gcm/index.js b/src/gcm/index.js
index 9260129..940082f 100644
--- a/src/gcm/index.js
+++ b/src/gcm/index.js
@@ -8,8 +8,8 @@ const { toBase64 } = require('../utils/base64');
 
 // Hack to fix PHONE_REGISTRATION_ERROR #17 when bundled with webpack
 // https://github.com/dcodeIO/protobuf.js#browserify-integration
-protobuf.util.Long = Long
-protobuf.configure()
+protobuf.util.Long = Long;
+protobuf.configure();
 
 const serverKey = toBase64(Buffer.from(fcmKey));
 
diff --git a/src/parser.js b/src/parser.js
index 41c4443..ffce4f2 100644
--- a/src/parser.js
+++ b/src/parser.js
@@ -204,7 +204,7 @@ module.exports = class Parser extends EventEmitter {
     // Messages with no content are valid; just use the default protobuf for
     // that tag.
     if (this._messageSize === 0) {
-      this.emit('message', {tag: this._messageTag, object: {}});
+      this.emit('message', { tag : this._messageTag, object : {} });
       this._getNextMessage();
       return;
     }
@@ -230,7 +230,7 @@ module.exports = class Parser extends EventEmitter {
       bytes : Buffer,
     });
 
-    this.emit('message', {tag: this._messageTag, object: object});
+    this.emit('message', { tag : this._messageTag, object : object });
 
     if (this._messageTag === kLoginResponseTag) {
       if (this._handshakeComplete) {
diff --git a/src/register/index.js b/src/register/index.js
index 754ea07..c46fa38 100644
--- a/src/register/index.js
+++ b/src/register/index.js
@@ -4,7 +4,10 @@ const registerFCM = require('../fcm');
 
 module.exports = register;
 
-async function register(senderId, { bundleId } = { bundleId : 'receiver.push.com' }) {
+async function register(
+  senderId,
+  { bundleId } = { bundleId : 'receiver.push.com' }
+) {
   // Should be unique by app - One GCM registration/token by app/appId
   const appId = `wp:${bundleId}#${uuidv4()}`;
   const subscription = await registerGCM(appId);