From 1d9cd24e8729e92d20c65a84928046a75792e866 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Wed, 5 Dec 2018 13:54:26 -0800 Subject: [PATCH] chore: clean up usage of prettier and eslint (#131) --- packages/google-container/package.json | 6 +++--- packages/google-container/synth.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/google-container/package.json b/packages/google-container/package.json index 360b8ae8d4a..0531a5d89a6 100644 --- a/packages/google-container/package.json +++ b/packages/google-container/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-container/synth.py b/packages/google-container/synth.py index 354e25f0f50..25b4fd4793d 100644 --- a/packages/google-container/synth.py +++ b/packages/google-container/synth.py @@ -24,4 +24,4 @@ # Node.js specific cleanup subprocess.run(['npm', 'install']) -subprocess.run(['npm', 'run', 'prettier']) +subprocess.run(['npm', 'run', 'fix'])