Add auto-formatting to client and server modules

One thing that can make linting faster is auto-formatting. This commit
adds the yapf auto-formatting tool to the server module and uses
eslint's "fix" functionality to speed up the linting/formatting process.
This commit is contained in:
Matt Weiden
2019-12-19 15:19:22 -08:00
parent cc0880560b
commit 176ea3bc91
5 changed files with 18 additions and 0 deletions
+7
View File
@@ -54,6 +54,13 @@ build-for-server-dev: clean-server build-client
cp client/build/service-worker.js server/app/web/static/js/
# FORMATTING CODE
.PHOHY: fmt
fmt: fmt-client fmt-server
fmt-%:
cd $(*) && $(MAKE) fmt
# CREATING DISTRIBUTION RELEASE