Skip to content

Commit e4f9e5d

Browse files
committed
run lint
1 parent 4309f14 commit e4f9e5d

25 files changed

+104
-91
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ build/
55
docs/
66
protos/
77
src/apis/
8+
samples/

samples/blogger/blogger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ blogger.blogs.get(
3131
throw err;
3232
}
3333
console.log(res.data);
34-
}
34+
},
3535
);

samples/drive/export.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function runSample() {
3535
const dest = fs.createWriteStream(destPath);
3636
const res = await drive.files.export(
3737
{fileId, mimeType: 'application/pdf'},
38-
{responseType: 'stream'}
38+
{responseType: 'stream'},
3939
);
4040
await new Promise((resolve, reject) => {
4141
res.data

samples/drive/upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ async function runSample(fileName) {
4848
readline.cursorTo(process.stdout, 0);
4949
process.stdout.write(`${Math.round(progress)}% complete`);
5050
},
51-
}
51+
},
5252
);
5353
console.log(res.data);
5454
return res.data;

samples/oauth2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ if (fs.existsSync(keyPath)) {
3838
const oauth2Client = new google.auth.OAuth2(
3939
keys.client_id,
4040
keys.client_secret,
41-
keys.redirect_uris[0]
41+
keys.redirect_uris[0],
4242
);
4343

4444
/**

samples/sheets/quickstart.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const scopes = ['https://www.googleapis.com/auth/spreadsheets.readonly'];
2828
const client = new google.auth.OAuth2(
2929
keys.web.client_id,
3030
keys.web.client_secret,
31-
keys.web.redirect_uris[0]
31+
keys.web.redirect_uris[0],
3232
);
3333

3434
// Generate the url that will be used for authorization
@@ -86,7 +86,7 @@ function listMajors(auth) {
8686
console.log(`${row[0]}, ${row[4]}`);
8787
}
8888
}
89-
}
89+
},
9090
);
9191
}
9292
// [END main_body]

samples/test/test.samples.sheets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ describe('sheets samples', () => {
4848
const scope = nock(baseUrl)
4949
.post(
5050
`/v4/spreadsheets/aSheetId/values/${encodeURIComponent(
51-
range
52-
)}:append?valueInputOption=USER_ENTERED`
51+
range,
52+
)}:append?valueInputOption=USER_ENTERED`,
5353
)
5454
.reply(200, {});
5555
const data = await samples.append.runSample('aSheetId', 'A1:A10');

samples/test/test.samples.webmasters.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('webmaster samples', () => {
4444
it('should query analytics', async () => {
4545
const siteUrl = 'http://jbeckwith.com';
4646
const path = `/webmasters/v3/sites/${encodeURIComponent(
47-
siteUrl
47+
siteUrl,
4848
)}/searchAnalytics/query`;
4949
const scope = nock('https://www.googleapis.com').post(path).reply(200, {});
5050
const data = await samples.query.runSample();

samples/test/test.samples.youtube.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ describe('YouTube samples', () => {
4747
it('should upload a video', async () => {
4848
const scope = nock('https://youtube.googleapis.com')
4949
.post(
50-
'/upload/youtube/v3/videos?part=id%2Csnippet%2Cstatus&notifySubscribers=false&uploadType=multipart'
50+
'/upload/youtube/v3/videos?part=id%2Csnippet%2Cstatus&notifySubscribers=false&uploadType=multipart',
5151
)
5252
.reply(200, {kind: 'youtube#video'});
5353
const data = await samples.upload.runSample(someFile);

samples/youtube/upload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function runSample(fileName) {
6565
readline.cursorTo(process.stdout, 0, null);
6666
process.stdout.write(`${Math.round(progress)}% complete`);
6767
},
68-
}
68+
},
6969
);
7070
console.log('\n\n');
7171
console.log(res.data);

0 commit comments

Comments
 (0)