mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 13:49:00 +02:00
Merge pull request #16385 from overleaf/em-typescript-other-services
Add type checking to all services GitOrigin-RevId: f328a811fca7a783e9aff7d015ea73756acededd
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.backend.json",
|
||||
"include": [
|
||||
"app.js",
|
||||
"app/src/**/*",
|
||||
"scripts/**/*",
|
||||
"test/**/*"
|
||||
]
|
||||
}
|
||||
@@ -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,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/**/*",
|
||||
|
||||
Reference in New Issue
Block a user