From 9fda547713ebfb3fb68bf278a98eb9c8cc579efe Mon Sep 17 00:00:00 2001 From: Xiaozhen Liu Date: Thu, 2 Jan 2020 17:16:51 -0800 Subject: [PATCH] feat: move library to typescript code generation (#317) * move library to typescript * run synth tool * fix lint * include common resources proto * fix * fix: update timeout * fix: try this * rerun synthtool to pick up API changes * rerun synthtool * replace timeout in synth.py * feedback Co-authored-by: Alexander Fenster --- cloud-tasks/.eslintrc.yml | 2 ++ cloud-tasks/createHttpTask.js | 1 + cloud-tasks/createHttpTaskWithToken.js | 1 + cloud-tasks/createTask.js | 1 + cloud-tasks/quickstart.js | 1 + 5 files changed, 6 insertions(+) diff --git a/cloud-tasks/.eslintrc.yml b/cloud-tasks/.eslintrc.yml index 0aa37ac630..ed67111480 100644 --- a/cloud-tasks/.eslintrc.yml +++ b/cloud-tasks/.eslintrc.yml @@ -2,3 +2,5 @@ rules: no-console: off node/no-missing-require: off +parserOptions: + ecmaVersion: 8 diff --git a/cloud-tasks/createHttpTask.js b/cloud-tasks/createHttpTask.js index b0f1a901bb..bfff837481 100644 --- a/cloud-tasks/createHttpTask.js +++ b/cloud-tasks/createHttpTask.js @@ -13,6 +13,7 @@ // limitations under the License. 'use strict'; +/*eslint no-warning-comments: [0, { "terms": ["todo", "fixme"], "location": "anywhere" }]*/ // sample-metadata: // title: Cloud Tasks Create HTTP Target diff --git a/cloud-tasks/createHttpTaskWithToken.js b/cloud-tasks/createHttpTaskWithToken.js index 8ea4d0198c..a82db52855 100644 --- a/cloud-tasks/createHttpTaskWithToken.js +++ b/cloud-tasks/createHttpTaskWithToken.js @@ -13,6 +13,7 @@ // limitations under the License. 'use strict'; +/*eslint no-warning-comments: [0, { "terms": ["todo", "fixme"], "location": "anywhere" }]*/ // sample-metadata: // title: Cloud Tasks Create HTTP Target with Token diff --git a/cloud-tasks/createTask.js b/cloud-tasks/createTask.js index 5407c8337f..80307f126d 100644 --- a/cloud-tasks/createTask.js +++ b/cloud-tasks/createTask.js @@ -13,6 +13,7 @@ // limitations under the License. 'use strict'; +/*eslint no-warning-comments: [0, { "terms": ["todo", "fixme"], "location": "anywhere" }]*/ // sample-metadata: // title: Cloud Tasks Create App Engine Target diff --git a/cloud-tasks/quickstart.js b/cloud-tasks/quickstart.js index 93b59a6d14..88bb0372f2 100644 --- a/cloud-tasks/quickstart.js +++ b/cloud-tasks/quickstart.js @@ -13,6 +13,7 @@ // limitations under the License. 'use strict'; +/*eslint no-warning-comments: [0, { "terms": ["todo", "fixme"], "location": "anywhere" }]*/ /** * Create a task for a given queue with an arbitrary payload.