🧑‍💻(frontend) add makefile lint --fix

Add a Makefile command to easily run the automatic fixup for frontend
files.
This commit is contained in:
Quentin BEY
2025-05-20 14:57:06 +02:00
parent c7eb86eaa9
commit 8fed2606d6
2 changed files with 6 additions and 1 deletions

View File

@@ -158,10 +158,14 @@ lint-pylint: ## lint back-end python sources with pylint only on changed files f
bin/pylint --diff-only=origin/main
.PHONY: lint-pylint
lint-front:
lint-front: ## lint front-end sources with eslint
cd $(PATH_FRONT) && yarn lint
.PHONY: lint-front
lint-front-fix: ## fix front-end sources with eslint
cd $(PATH_FRONT) && yarn lint-fix
.PHONY: lint-front-fix
test: ## run project tests
@$(MAKE) test-back-parallel
.PHONY: test

View File

@@ -19,6 +19,7 @@
"ci:build": "yarn APP_DESK run build:ci",
"e2e:test": "yarn APP_E2E run test",
"lint": "yarn APP_DESK run lint && yarn APP_E2E run lint && yarn workspace eslint-config-people run lint && yarn I18N run lint",
"lint-fix": "yarn APP_DESK run lint --fix && yarn APP_E2E run lint --fix && yarn workspace eslint-config-people run lint --fix && yarn I18N run lint --fix",
"i18n:extract": "yarn I18N run extract-translation",
"i18n:deploy": "yarn I18N run format-deploy && yarn APP_DESK prettier",
"i18n:test": "yarn I18N run test"