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
+4
View File
@@ -6,6 +6,10 @@ install:
build: install
npm run build
.PHONY: fmt
fmt:
npm run fmt
.PHONY: clean
clean:
rm -rf node_modules
+1
View File
@@ -11,6 +11,7 @@
"clean": "rimraf build",
"dev": "npm run clean && webpack --config configuration/webpack/webpack.config.dev.js",
"e2e": "node node_modules/jest/bin/jest.js --verbose false --config __tests__/e2e/e2eJestConfig.json e2e/e2e.test.js",
"fmt": "eslint --fix src",
"lint": "eslint src",
"smoke-test": "start-server-and-test start-server-for-test :5000 e2e",
"start": "node server/development.js",