From f9458e77b1e478cdf77a8fe26b95fd551203cac1 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 15 Apr 2020 10:34:23 -0700 Subject: [PATCH] chore: run fix instead of lint in synthfile (#583) --- packages/google-cloud-speech/synth.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/google-cloud-speech/synth.py b/packages/google-cloud-speech/synth.py index 3b72bfb6a17..ac196861f2b 100644 --- a/packages/google-cloud-speech/synth.py +++ b/packages/google-cloud-speech/synth.py @@ -51,8 +51,8 @@ # Rename the generated methods to avoid confusion. s.replace(f'src/{version}/{name}_client.ts', r'( +)streamingRecognize\(', '\\1_streamingRecognize(') s.replace(f'test/gapic_{name}_{version}.ts', r'client\.streamingRecognize\(', 'client._streamingRecognize(') - s.replace(f'src/{version}/{name}_client.ts', r'\Z', - '\n' + + s.replace(f'src/{version}/{name}_client.ts', r'\Z', + '\n' + "import {ImprovedStreamingClient} from '../helpers';\n" + '// eslint-disable-next-line @typescript-eslint/no-empty-interface\n' + 'export interface SpeechClient extends ImprovedStreamingClient {}\n' @@ -65,5 +65,5 @@ # Node.js specific cleanup # subprocess.run(['npm', 'install']) -subprocess.run(['npm', 'run', 'lint']) +subprocess.run(['npm', 'run', 'fix']) subprocess.run(['npx', 'compileProtos', 'src'])