Skip to content

Commit dc69b96

Browse files
JustinBeckwithalexander-fenster
authored andcommitted
Enable no-var in eslint (#120)
1 parent 68faa78 commit dc69b96

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

packages/google-cloud-language/.eslintrc.yml

+1
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

packages/google-cloud-language/system-test/language_service_smoke_test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@ describe('LanguageServiceSmokeTest', () => {
1818
it('successfully makes a call to the service', done => {
1919
const language = require('../src');
2020

21-
var client = new language.v1.LanguageServiceClient({
21+
let client = new language.v1.LanguageServiceClient({
2222
// optional auth parameters.
2323
});
2424

25-
var content = 'Hello, world!';
26-
var type = 'PLAIN_TEXT';
27-
var document = {
25+
let content = 'Hello, world!';
26+
let type = 'PLAIN_TEXT';
27+
let document = {
2828
content: content,
2929
type: type,
3030
};
3131
client
3232
.analyzeSentiment({document: document})
3333
.then(responses => {
34-
var response = responses[0];
34+
let response = responses[0];
3535
console.log(response);
3636
})
3737
.then(done)

0 commit comments

Comments
 (0)