diff --git a/.github/workflows/crowdin-download.curriculum.yml b/.github/workflows/crowdin-download.curriculum.yml index 8d8dab8ce24..5bce72cf643 100644 --- a/.github/workflows/crowdin-download.curriculum.yml +++ b/.github/workflows/crowdin-download.curriculum.yml @@ -265,13 +265,9 @@ jobs: npm run build:curriculum npm run build:server - - name: Format Files + - name: Lint and Format Files run: | - npm run format - - - name: Lint Files - run: | - npm run lint + npm run format:curriculum # We do not need to run tests because they are run after the PR is created. diff --git a/package.json b/package.json index 420e1fbe880..2196bc2709b 100644 --- a/package.json +++ b/package.json @@ -73,6 +73,9 @@ "e2e:prd:watch": "npm run build && start-test ':3000/status/ping|8000' cypress:dev:watch", "ensure-env": "cross-env DEBUG=fcc:* ts-node ./tools/scripts/build/ensure-env.ts", "format": "run-s format:eslint format:prettier", + "format:curriculum": "run-s format:curriculum:eslint format:curriculum:prettier", + "format:curriculum:eslint": "eslint ./curriculum --fix", + "format:curriculum:prettier": "prettier --write ./curriculum", "format:eslint": "eslint . --fix", "format:prettier": "prettier --write .", "hooks:install": "node node_modules/husky/husky.js install",