From 678b889d5d64e99095c33e21d6c9708b3ea46243 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 5 Dec 2018 13:54:56 -0800 Subject: [PATCH] chore: clean up usage of prettier and eslint (#130) --- packages/google-cloud-dataproc/package.json | 6 +++--- packages/google-cloud-dataproc/synth.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google-cloud-dataproc/package.json b/packages/google-cloud-dataproc/package.json index 996291f6e14..a853efa370c 100644 --- a/packages/google-cloud-dataproc/package.json +++ b/packages/google-cloud-dataproc/package.json @@ -35,10 +35,10 @@ "cover": "nyc --reporter=lcov mocha test/*.js && nyc report", "samples-test": "cd samples/ && npm link ../ && npm test && cd ../", "test-no-cover": "mocha test/*.js", - "lint": "eslint src/ samples/ system-test/ test/ smoke-test/", - "prettier": "prettier --write src/*.js src/*/*.js samples/*.js samples/*/*.js test/*.js test/*/*.js system-test/*.js system-test/*/*.js smoke-test/*.js", + "lint": "eslint '**/*.js'", "docs": "jsdoc -c .jsdoc.js", - "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000" + "system-test": "mocha system-test/*.js smoke-test/*.js --timeout 600000", + "fix": "eslint --fix '**/*.js'" }, "dependencies": { "google-gax": "^0.22.0", diff --git a/packages/google-cloud-dataproc/synth.py b/packages/google-cloud-dataproc/synth.py index 5d00ed91033..0411a498dba 100644 --- a/packages/google-cloud-dataproc/synth.py +++ b/packages/google-cloud-dataproc/synth.py @@ -26,4 +26,4 @@ s.copy(templates) subprocess.run(['npm', 'install']) -subprocess.run(['npm', 'run', 'prettier']) +subprocess.run(['npm', 'run', 'fix'])