diff --git a/owlbot.py b/owlbot.py index b51f0cc33..c13fbd8b8 100644 --- a/owlbot.py +++ b/owlbot.py @@ -50,6 +50,7 @@ for file in system_test_files: s.replace(file, 'BigtableClient', 'Bigtable') s.replace(file, 'client.close', '// client.close') # this does not work with the manual layer + s.replace(file, 'function doStuffWith', '// eslint-disable-next-line @typescript-eslint/no-unused-vars\nfunction doStuffWith') # The staging directory should never be merged into the main branch. shutil.rmtree(staging) diff --git a/src/cluster.ts b/src/cluster.ts index 161e6b953..11479e699 100644 --- a/src/cluster.ts +++ b/src/cluster.ts @@ -522,7 +522,7 @@ Please use the format 'my-cluster' or '${instance.name}/clusters/my-cluster'.`); const backupInstance = this.id === '-' ? this.instance - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain .cluster(backup.name?.match(/clusters\/([^/]+)/)![1]!) .backup(backup.name!.split('/').pop()!) : this.backup(backup.name!.split('/').pop()!); @@ -595,7 +595,7 @@ Please use the format 'my-cluster' or '${instance.name}/clusters/my-cluster'.`); const backupInstance = this.id === '-' ? this.instance - // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + // eslint-disable-next-line @typescript-eslint/no-non-null-asserted-optional-chain .cluster(backup.name?.match(/clusters\/([^/]+)/)![1]!) .backup(backup.name!.split('/').pop()!) : this.backup(backup.name!.split('/').pop()!); diff --git a/src/index.ts b/src/index.ts index 74873b5ca..997824b82 100644 --- a/src/index.ts +++ b/src/index.ts @@ -957,7 +957,7 @@ promisifyAll(Bigtable, { */ // Allow creating a `Bigtable` instance without using the `new` keyword. -// eslint-disable-next-line @typescript-eslint/no-explicit-any +// eslint-disable-next-line @typescript-eslint/no-explicit-any, no-class-assign (Bigtable as any) = new Proxy(Bigtable, { apply(target, thisArg, argumentsList) { // eslint-disable-next-line @typescript-eslint/no-explicit-any