Re-enable type checking in CI (#8114)

* Re-enable type checking in CI
* Update use-codemirror-scope.ts
* Run patch-package in postinstall script
* Update Dockerfile
* Update .dockerignore

GitOrigin-RevId: 512c7c71a109d2cf34895193078a98c66eb91f29
This commit is contained in:
Alf Eaton 2022-05-26 09:01:50 +01:00 committed by Copybot
parent 75f66ed80c
commit 506010cb14
4 changed files with 5 additions and 4 deletions

View file

@ -19,7 +19,8 @@
"format": "prettier --list-different $PWD/'**/*.js'",
"format:fix": "prettier --write $PWD/'**/*.js'",
"lint": "eslint --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix ."
"lint:fix": "eslint --fix .",
"postinstall": "patch-package"
},
"workspaces": [
"libraries/*",

View file

@ -17,6 +17,7 @@ FROM base as deps
COPY package.json package-lock.json /overleaf/
COPY services/web/package.json /overleaf/services/web/
COPY libraries/ /overleaf/libraries/
COPY patches/ /overleaf/patches/
ENV CYPRESS_INSTALL_BINARY=0

View file

@ -436,9 +436,8 @@ lint: lint_flag_res_send_usage
lint_flag_res_send_usage:
bin/lint_flag_res_send_usage
#lint: typecheck_frontend
lint: typecheck_frontend
typecheck_frontend:
cd ../.. && npx patch-package
npx tsc --noEmit
lint_in_docker:

View file

@ -152,7 +152,7 @@ const initialize = () => {
'gv',
'mf',
],
}
} as typeof window.ExposedSettings
window.project_id = project._id