Skip to content

Commit

Permalink
Add linting for healthcare
Browse files Browse the repository at this point in the history
Fixes: #836
Fixes: #839
  • Loading branch information
fhinkel committed Nov 13, 2018
1 parent 73861ac commit c576712
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ appengine/loopback/*
functions/**
iot/*
appengine/*
healthcare/*
5 changes: 5 additions & 0 deletions healthcare/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
rules:
node/no-unsupported-features/es-syntax: off
no-empty: off

4 changes: 2 additions & 2 deletions healthcare/datasets/datasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function createDataset(client, projectId, cloudRegion, datasetId) {
// [END healthcare_create_dataset]

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

client.projects.locations.datasets
.deidentify(request)
.then(results => {
.then(() => {
console.log(`De-identified data written from dataset
${sourceDatasetId} to dataset ${destinationDatasetId}`);
})
Expand Down
4 changes: 2 additions & 2 deletions healthcare/dicom/dicom_stores.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function importDicomObject(

client.projects.locations.datasets.dicomStores
.import(request)
.then(results => {
.then(() => {
console.log(`Imported DICOM objects from bucket ${contentUri}`);
})
.catch(err => {
Expand Down Expand Up @@ -239,7 +239,7 @@ function exportDicomInstanceGcs(

client.projects.locations.datasets.dicomStores
.export(request)
.then(results => {
.then(() => {
console.log(`Exported DICOM instances to bucket ${uriPrefix}`);
})
.catch(err => {
Expand Down
4 changes: 2 additions & 2 deletions healthcare/dicom/dicomweb.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function dicomWebRetrieveStudy(
};

request(options)
.then(results => {
.then(() => {
console.log(`Retrieved study with UID: ${studyUid}`);
})
.catch(err => {
Expand Down Expand Up @@ -186,7 +186,7 @@ function dicomWebDeleteStudy(
};

request(options)
.then(results => {
.then(() => {
console.log('Deleted study.');
})
.catch(err => {
Expand Down

0 comments on commit c576712

Please sign in to comment.