🧑💻(frontend) add makefile lint --fix
Add a Makefile command to easily run the automatic fixup for frontend files.
This commit is contained in:
6
Makefile
6
Makefile
@@ -158,10 +158,14 @@ lint-pylint: ## lint back-end python sources with pylint only on changed files f
|
|||||||
bin/pylint --diff-only=origin/main
|
bin/pylint --diff-only=origin/main
|
||||||
.PHONY: lint-pylint
|
.PHONY: lint-pylint
|
||||||
|
|
||||||
lint-front:
|
lint-front: ## lint front-end sources with eslint
|
||||||
cd $(PATH_FRONT) && yarn lint
|
cd $(PATH_FRONT) && yarn lint
|
||||||
.PHONY: lint-front
|
.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
|
test: ## run project tests
|
||||||
@$(MAKE) test-back-parallel
|
@$(MAKE) test-back-parallel
|
||||||
.PHONY: test
|
.PHONY: test
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
"ci:build": "yarn APP_DESK run build:ci",
|
"ci:build": "yarn APP_DESK run build:ci",
|
||||||
"e2e:test": "yarn APP_E2E run test",
|
"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": "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:extract": "yarn I18N run extract-translation",
|
||||||
"i18n:deploy": "yarn I18N run format-deploy && yarn APP_DESK prettier",
|
"i18n:deploy": "yarn I18N run format-deploy && yarn APP_DESK prettier",
|
||||||
"i18n:test": "yarn I18N run test"
|
"i18n:test": "yarn I18N run test"
|
||||||
|
|||||||
Reference in New Issue
Block a user