fix: lint only the curriculum for curriculum PRs (#48045)

pull/48046/head
Naomi Carrigan 2022-10-14 13:05:39 -07:00 committed by GitHub
parent 4386d1025b
commit 035b475500
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 6 deletions

View File

@ -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.

View File

@ -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",