From 48df1577aa99782dbe4daaef26d39676255de768 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Tue, 18 Sep 2018 10:34:55 -0700 Subject: [PATCH] Enable no-var in eslint (#153) --- compute/mailjet.js | 6 +++--- compute/sendgrid.js | 4 ++-- compute/startup-script/system-test/index.test.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/compute/mailjet.js b/compute/mailjet.js index ab3686941d..ece5d102ee 100644 --- a/compute/mailjet.js +++ b/compute/mailjet.js @@ -16,10 +16,10 @@ 'use strict'; // [START send] -var mailer = require('nodemailer'); -var smtp = require('nodemailer-smtp-transport'); +let mailer = require('nodemailer'); +let smtp = require('nodemailer-smtp-transport'); -var transport = mailer.createTransport( +let transport = mailer.createTransport( smtp({ host: 'in.mailjet.com', port: 2525, diff --git a/compute/sendgrid.js b/compute/sendgrid.js index 95f873701e..79ad26e769 100644 --- a/compute/sendgrid.js +++ b/compute/sendgrid.js @@ -15,11 +15,11 @@ // [START send] // This sample is based off of https://www.npmjs.com/package/sendgrid#without-mail-helper-class -var Sendgrid = require('sendgrid')( +let Sendgrid = require('sendgrid')( process.env.SENDGRID_API_KEY || '' ); -var request = Sendgrid.emptyRequest({ +let request = Sendgrid.emptyRequest({ method: 'POST', path: '/v3/mail/send', body: { diff --git a/compute/startup-script/system-test/index.test.js b/compute/startup-script/system-test/index.test.js index 719b47188d..55f1c6548e 100644 --- a/compute/startup-script/system-test/index.test.js +++ b/compute/startup-script/system-test/index.test.js @@ -35,7 +35,7 @@ test.cb(`should list vms`, t => { }); test.cb(`should create vm`, t => { - var TESTS_PREFIX = 'gcloud-tests-'; + let TESTS_PREFIX = 'gcloud-tests-'; const name = generateName('vm-with-apache'); function generateName(customPrefix) {