Skip to content

Commit c576712

Browse files
committed
Add linting for healthcare
Fixes: #836 Fixes: #839
1 parent 73861ac commit c576712

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ appengine/loopback/*
33
functions/**
44
iot/*
55
appengine/*
6-
healthcare/*

healthcare/.eslintrc.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
rules:
3+
node/no-unsupported-features/es-syntax: off
4+
no-empty: off
5+

healthcare/datasets/datasets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function createDataset(client, projectId, cloudRegion, datasetId) {
4040
// [END healthcare_create_dataset]
4141

4242
// [START healthcare_delete_dataset]
43-
function deleteDataset(client, projectId, cloudRegion, datasetId, cb) {
43+
function deleteDataset(client, projectId, cloudRegion, datasetId) {
4444
// Client retrieved in callback
4545
// getClient(serviceAccountJson, function(client) {...});
4646
// const cloudRegion = 'us-central1';
@@ -160,7 +160,7 @@ function deidentifyDataset(
160160

161161
client.projects.locations.datasets
162162
.deidentify(request)
163-
.then(results => {
163+
.then(() => {
164164
console.log(`De-identified data written from dataset
165165
${sourceDatasetId} to dataset ${destinationDatasetId}`);
166166
})

healthcare/dicom/dicom_stores.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function importDicomObject(
199199

200200
client.projects.locations.datasets.dicomStores
201201
.import(request)
202-
.then(results => {
202+
.then(() => {
203203
console.log(`Imported DICOM objects from bucket ${contentUri}`);
204204
})
205205
.catch(err => {
@@ -239,7 +239,7 @@ function exportDicomInstanceGcs(
239239

240240
client.projects.locations.datasets.dicomStores
241241
.export(request)
242-
.then(results => {
242+
.then(() => {
243243
console.log(`Exported DICOM instances to bucket ${uriPrefix}`);
244244
})
245245
.catch(err => {

healthcare/dicom/dicomweb.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function dicomWebRetrieveStudy(
147147
};
148148

149149
request(options)
150-
.then(results => {
150+
.then(() => {
151151
console.log(`Retrieved study with UID: ${studyUid}`);
152152
})
153153
.catch(err => {
@@ -186,7 +186,7 @@ function dicomWebDeleteStudy(
186186
};
187187

188188
request(options)
189-
.then(results => {
189+
.then(() => {
190190
console.log('Deleted study.');
191191
})
192192
.catch(err => {

0 commit comments

Comments
 (0)