Skip to content

Commit

Permalink
Enable prefer-const in the eslint config (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored Sep 20, 2018
1 parent 3d017bc commit 5f40757
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-redis/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ rules:
eqeqeq: error
no-warning-comments: warn
no-var: error
prefer-const: error
3 changes: 2 additions & 1 deletion packages/google-cloud-redis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
"lint": "eslint src/ samples/ system-test/ test/",
"prettier": "prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js",
"docs": "jsdoc -c .jsdoc.js",
"system-test": "mocha system-test/ --timeout 600000"
"system-test": "mocha system-test/ --timeout 600000",
"fix": "eslint --fix '**/*.js' && npm run prettier"
},
"dependencies": {
"google-gax": "^0.20.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-redis/src/v1/cloud_redis_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ class CloudRedisClient {
'updateInstance',
'deleteInstance',
];
for (let methodName of cloudRedisStubMethods) {
for (const methodName of cloudRedisStubMethods) {
this._innerApiCalls[methodName] = gax.createApiCall(
cloudRedisStub.then(
stub =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class CloudRedisClient {
'updateInstance',
'deleteInstance',
];
for (let methodName of cloudRedisStubMethods) {
for (const methodName of cloudRedisStubMethods) {
this._innerApiCalls[methodName] = gax.createApiCall(
cloudRedisStub.then(
stub =>
Expand Down

0 comments on commit 5f40757

Please sign in to comment.