Skip to content

Commit f5aa455

Browse files
JustinBeckwithalexander-fenster
authored andcommitted
Enable no-var in eslint (#331)
1 parent 5f90f65 commit f5aa455

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

handwritten/spanner/.eslintrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ rules:
1111
block-scoped-var: error
1212
eqeqeq: error
1313
no-warning-comments: warn
14+
no-var: error

handwritten/spanner/test/session.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@ describe('Session', function() {
188188
});
189189

190190
describe('beginTransaction', function() {
191-
var TRANSACTION;
192-
var RESPONSE;
191+
let TRANSACTION;
192+
let RESPONSE;
193193

194194
beforeEach(function() {
195195
TRANSACTION = {begin: util.noop};
@@ -198,7 +198,7 @@ describe('Session', function() {
198198
});
199199

200200
it('should pass the transaction options', function(done) {
201-
var OPTIONS = {};
201+
let OPTIONS = {};
202202

203203
session.transaction = function(options) {
204204
assert.strictEqual(options, OPTIONS);
@@ -222,7 +222,7 @@ describe('Session', function() {
222222
});
223223

224224
it('should return any api errors', function(done) {
225-
var ERROR = new Error('err');
225+
let ERROR = new Error('err');
226226

227227
TRANSACTION.begin = function(callback) {
228228
callback(ERROR, RESPONSE);

0 commit comments

Comments
 (0)