From 7870c8185ecdc0265eac89df7d45d876832367b5 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Mon, 16 Dec 2019 11:58:22 +0000 Subject: [PATCH] Add linting to makefile --- services/filestore/.prettierignore | 1 + services/filestore/Makefile | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 services/filestore/.prettierignore diff --git a/services/filestore/.prettierignore b/services/filestore/.prettierignore new file mode 100644 index 0000000000..3c3629e647 --- /dev/null +++ b/services/filestore/.prettierignore @@ -0,0 +1 @@ +node_modules diff --git a/services/filestore/Makefile b/services/filestore/Makefile index e83a0696e0..b5b188aa51 100644 --- a/services/filestore/Makefile +++ b/services/filestore/Makefile @@ -21,7 +21,17 @@ clean: rm -rf test/unit/js rm -rf test/acceptance/js -test: test_unit test_acceptance +format: + $(DOCKER_COMPOSE) run --rm test_unit npm run format + +format_fix: + $(DOCKER_COMPOSE) run --rm test_unit npm run format:fix + +lint: + $(DOCKER_COMPOSE) run --rm test_unit npm run lint + + +test: format lint test_unit test_acceptance test_unit: @[ ! -d test/unit ] && echo "filestore has no unit tests" || $(DOCKER_COMPOSE) run --rm test_unit