Merge pull request #16385 from overleaf/em-typescript-other-services

Add type checking to all services

GitOrigin-RevId: f328a811fca7a783e9aff7d015ea73756acededd
This commit is contained in:
Eric Mc Sween
2024-01-12 09:03:22 +00:00
committed by Copybot
parent b5b62b4b41
commit e76c2bd04d
37 changed files with 246 additions and 65 deletions
+4 -1
View File
@@ -45,7 +45,10 @@ lint:
lint_fix:
$(RUN_LINTING) lint:fix
test: format lint test_unit test_acceptance
typecheck:
$(RUN_LINTING) typecheck
test: format lint typecheck test_unit test_acceptance
test_unit:
ifneq (,$(wildcard test/unit))
+4 -2
View File
@@ -14,7 +14,8 @@
"lint": "eslint --max-warnings 0 --format unix .",
"format": "prettier --list-different $PWD/'**/*.js'",
"format:fix": "prettier --write $PWD/'**/*.js'",
"lint:fix": "eslint --fix ."
"lint:fix": "eslint --fix .",
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@overleaf/logger": "*",
@@ -35,7 +36,8 @@
"request": "^2.88.2",
"sandboxed-module": "^2.0.4",
"sinon": "^9.2.4",
"timekeeper": "^2.2.0"
"timekeeper": "^2.2.0",
"typescript": "^5.0.4"
},
"version": "1.0.0",
"directories": {
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}