Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

Commit 9ac298c

Browse files
committed
fix: lint samples
1 parent cf7d412 commit 9ac298c

40 files changed

+48
-48
lines changed

samples/addColumnLoadAppend.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
function main(
1818
datasetId = 'my_dataset',
1919
tableId = 'my_table',
20-
fileName = '/path/to/file.csv'
20+
fileName = '/path/to/file.csv',
2121
) {
2222
// [START bigquery_add_column_load_append]
2323
// Import the Google Cloud client libraries

samples/auth-user-sample/authUserFlow.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function getRedirectUrl() {
4545
const oAuth2Client = new OAuth2Client(
4646
keys.installed.client_id,
4747
keys.installed.client_secret,
48-
keys.installed.redirect_uris[0]
48+
keys.installed.redirect_uris[0],
4949
);
5050

5151
// Generate the url that will be used for the consent dialog.
@@ -56,7 +56,7 @@ async function getRedirectUrl() {
5656
});
5757

5858
console.info(
59-
`Please visit this URL to authorize this application: ${authorizeUrl}`
59+
`Please visit this URL to authorize this application: ${authorizeUrl}`,
6060
);
6161

6262
const code = await rl.questionAsync('Enter the authorization code: ');
@@ -71,7 +71,7 @@ async function exchangeCode(code) {
7171
const oAuth2Client = new OAuth2Client(
7272
keys.installed.client_id,
7373
keys.installed.client_secret,
74-
keys.installed.redirect_uris[0]
74+
keys.installed.redirect_uris[0],
7575
);
7676

7777
const r = await oAuth2Client.getToken(code);

samples/authViewTutorial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function main(
1919
sourceDatasetId = 'shared_views',
2020
sourceTableId = 'my_source_table',
2121
sharedDatasetId = 'shared_views',
22-
sharedViewId = 'github_analyst_view'
22+
sharedViewId = 'github_analyst_view',
2323
) {
2424
// [START bigquery_authorized_view_tutorial]
2525
async function authorizedViewTutorial() {

samples/browseTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
function main(
1818
datasetId = 'my_dataset', // Existing dataset
19-
tableId = 'my_table' // Table to create
19+
tableId = 'my_table', // Table to create
2020
) {
2121
// [START bigquery_browse_table]
2222
// Import the Google Cloud client library using default credentials

samples/copyTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function main(
1818
srcDatasetId = 'my_src_dataset',
1919
srcTableId = 'my_src_table',
2020
destDatasetId = 'my_dest_dataset',
21-
destTableId = 'my_dest_table'
21+
destTableId = 'my_dest_table',
2222
) {
2323
// [START bigquery_copy_table]
2424
// Import the Google Cloud client library and create a client

samples/copyTableMultipleSource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
function main(
1818
datasetId = 'my_dataset', // Existing dataset
1919
sourceTable = 'my_table', // Existing table to copy from
20-
destinationTable = 'testing' // Existing table to copy to
20+
destinationTable = 'testing', // Existing table to copy to
2121
) {
2222
// [START bigquery_copy_table_multiple_source]
2323
// Import the Google Cloud client library

samples/createRoutine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
function main(
1818
datasetId = 'my_dataset', // Existing dataset
19-
routineId = 'my_routine' // Routine to be created
19+
routineId = 'my_routine', // Routine to be created
2020
) {
2121
// [START bigquery_create_routine]
2222
// Import the Google Cloud client library and create a client

samples/createRoutineDDL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
function main(
1818
projectId = 'my_project', // GCP project
1919
datasetId = 'my_dataset', // Existing dataset
20-
routineId = 'my_routine' // Routine to be created
20+
routineId = 'my_routine', // Routine to be created
2121
) {
2222
// [START bigquery_create_routine_ddl]
2323
// Import the Google Cloud client library and create a client

samples/createTable.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function main(
2222
{name: 'Age', type: 'INTEGER'},
2323
{name: 'Weight', type: 'FLOAT'},
2424
{name: 'IsMagic', type: 'BOOLEAN'},
25-
]
25+
],
2626
) {
2727
// [START bigquery_create_table]
2828
// Import the Google Cloud client library and create a client

samples/createTableColumnACL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
function main(
1818
datasetId = 'my_dataset', // Existing dataset
1919
tableId = 'my_table', // Table to be created
20-
policyTagName = 'projects/myProject/location/us/taxonomies/myTaxonomy/policyTags/myPolicyTag' // Existing policy tag
20+
policyTagName = 'projects/myProject/location/us/taxonomies/myTaxonomy/policyTags/myPolicyTag', // Existing policy tag
2121
) {
2222
// [START bigquery_create_table_column_ACL]
2323
// Import the Google Cloud client library and create a client

0 commit comments

Comments
 (0)