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-11 08:25:25 -05: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/**/*"
]
}
+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))
+2 -1
View File
@@ -43,6 +43,7 @@
"sandboxed-module": "^2.0.4",
"sinon": "~9.0.1",
"sinon-chai": "^3.7.0",
"timekeeper": "2.2.0"
"timekeeper": "2.2.0",
"typescript": "^5.0.4"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}
+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))
+2 -1
View File
@@ -34,6 +34,7 @@
"esmock": "^2.1.0",
"mocha": "^10.2.0",
"sinon": "~9.0.1",
"sinon-chai": "^3.7.0"
"sinon-chai": "^3.7.0",
"typescript": "^5.0.4"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}
+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))
+2 -1
View File
@@ -42,6 +42,7 @@
"mocha": "^10.2.0",
"sandboxed-module": "~2.0.4",
"sinon": "~9.0.2",
"sinon-chai": "^3.7.0"
"sinon-chai": "^3.7.0",
"typescript": "^5.0.4"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}
+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))
+2 -1
View File
@@ -42,6 +42,7 @@
"sandboxed-module": "^2.0.4",
"sinon": "^9.2.4",
"sinon-chai": "^3.7.0",
"timekeeper": "^2.0.0"
"timekeeper": "^2.0.0",
"typescript": "^5.0.4"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}
+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))
+2 -1
View File
@@ -45,6 +45,7 @@
"sinon": "9.0.2",
"sinon-chai": "^3.7.0",
"streamifier": "^0.1.1",
"timekeeper": "^2.2.0"
"timekeeper": "^2.2.0",
"typescript": "^5.0.4"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}
+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))
+1
View File
@@ -46,6 +46,7 @@
"node-fetch": "^2.6.7",
"sinon": "^9.0.2",
"swagger-client": "^3.10.0",
"typescript": "^5.0.4",
"yauzl": "^2.9.1"
},
"scripts": {
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}
+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))
+2 -1
View File
@@ -35,6 +35,7 @@
"chai-as-promised": "^7.1.1",
"mocha": "^10.2.0",
"sandboxed-module": "^2.0.4",
"sinon": "^9.2.4"
"sinon": "^9.2.4",
"typescript": "^5.0.4"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}
+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))
+2 -1
View File
@@ -51,6 +51,7 @@
"nock": "^12.0.3",
"sinon": "~9.0.1",
"sinon-chai": "^3.7.0",
"timekeeper": "2.2.0"
"timekeeper": "2.2.0",
"typescript": "^5.0.4"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}
+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))
+1
View File
@@ -43,6 +43,7 @@
"sandboxed-module": "~0.3.0",
"sinon": "^9.2.4",
"timekeeper": "0.0.4",
"typescript": "^5.0.4",
"uid-safe": "^2.1.5"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}
+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))
+2 -1
View File
@@ -40,6 +40,7 @@
"chai-as-promised": "^7.1.1",
"esmock": "^2.1.0",
"mocha": "^10.2.0",
"sinon": "^9.2.4"
"sinon": "^9.2.4",
"typescript": "^5.0.4"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.backend.json",
"include": [
"app.js",
"app/src/**/*",
"scripts/**/*",
"test/**/*"
]
}
+1
View File
@@ -49,6 +49,7 @@ FROM deps as dev
ARG SENTRY_RELEASE
ENV SENTRY_RELEASE=$SENTRY_RELEASE
COPY tsconfig.backend.json /overleaf/
COPY services/web /overleaf/services/web
# Build the latex parser
+1 -9
View File
@@ -1,13 +1,5 @@
{
"compilerOptions": {
"allowJs": true,
"esModuleInterop": true,
"moduleResolution": "node",
"noEmit": true,
"noImplicitAny": false,
"skipLibCheck": true,
"strict": true
},
"extends": "../../tsconfig.backend.json",
"include": [
"app/src/**/*",
"modules/*/app/src/**/*",