mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-22 21:43:47 +00:00
Add linting to makefile
This commit is contained in:
parent
230baef8fa
commit
7870c8185e
2 changed files with 12 additions and 1 deletions
1
services/filestore/.prettierignore
Normal file
1
services/filestore/.prettierignore
Normal file
|
@ -0,0 +1 @@
|
|||
node_modules
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue