fix: lint only the curriculum for curriculum PRs (#48045)
parent
4386d1025b
commit
035b475500
|
@ -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.
|
||||
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue