title: 'functions' is assigned a value but never used
body: <p>I am getting an error in terminal when trying to run 'firebase deploy'. This brings the error</p>
  <pre><code>1:7  error  'functions' is assigned a value but never used  no-unused-vars
  </code></pre>
  <p>here is my index.js file</p>
  <pre><code>// The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers.
  const functions = require('firebase-functions');
  
  // The Firebase Admin SDK to access Firestore.
  const admin = require('firebase-admin');
  admin.initializeApp();
  
  // Take the text parameter passed to this HTTP endpoint and insert it into 
  // Firestore under the path /messages/:documentId/original
  exports.addMessage = functions.https.onRequest(async (req, res) =&gt; {
  // Grab the text parameter.
  const original = req.query.text;
  // Push the new message into Firestore using the Firebase Admin SDK.
  const writeResult = await admin.firestore().collection('messages').add({original: original});
  // Send back a message that we've successfully written the message
  res.json({result: `Message with ID: ${writeResult.id} added.`});
  });
  
  // Listens for new messages added to /messages/:documentId/original and creates an
  // uppercase version of the message to /messages/:documentId/uppercase
  exports.makeUppercase = functions.firestore.document('/messages/{documentId}')
  .onCreate((snap, context) =&gt; {
   // Grab the current value of what was written to Firestore.
   const original = snap.data().original;
  
   // Access the parameter `{documentId}` with `context.params`
   functions.logger.log('Uppercasing', context.params.documentId, original);
  
   const uppercase = original.toUpperCase();
  
   // You must return a Promise when performing asynchronous tasks inside a Functions such as
   // writing to Firestore.
   // Setting an 'uppercase' field in Firestore document returns a Promise.
  return snap.ref.set({uppercase}, {merge: true});
  });
  </code></pre>
  <p>this is directly from the firebase functions documentation</p>
  <p><a href="https://i.stack.imgur.com/2Ym0L.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2Ym0L.jpg" alt="enter image description here" /></a></p>