Skip to content

Commit

Permalink
Enable no-var in eslint (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and sofisl committed Oct 13, 2022
1 parent e71d070 commit 82170e2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-language/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ rules:
block-scoped-var: error
eqeqeq: error
no-warning-comments: warn
no-var: error
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ describe('LanguageServiceSmokeTest', () => {
it('successfully makes a call to the service', done => {
const language = require('../src');

var client = new language.v1.LanguageServiceClient({
let client = new language.v1.LanguageServiceClient({
// optional auth parameters.
});

var content = 'Hello, world!';
var type = 'PLAIN_TEXT';
var document = {
let content = 'Hello, world!';
let type = 'PLAIN_TEXT';
let document = {
content: content,
type: type,
};
client
.analyzeSentiment({document: document})
.then(responses => {
var response = responses[0];
let response = responses[0];
console.log(response);
})
.then(done)
Expand Down

0 comments on commit 82170e2

Please sign in to comment.