Merge pull request #16661 from overleaf/em-fix-tsconfig

Small backend Typescript config fixes

GitOrigin-RevId: d600c1f3fa9ef88e9a06aaa5743d454a620c122d
This commit is contained in:
Eric Mc Sween 2024-01-23 14:53:37 -05:00 committed by Copybot
parent d61ac98225
commit 5c517a56c3
13 changed files with 13 additions and 12 deletions

View file

@ -12,7 +12,7 @@
"format:fix": "prettier --write $PWD/'**/*.{js,cjs}'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -12,7 +12,7 @@
"format:fix": "prettier --write $PWD/'**/*.{js,cjs}'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -18,7 +18,7 @@
"lint:fix": "eslint --fix --ext .js --ext .cjs .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -38,7 +38,7 @@
"format": "prettier --list-different $PWD/'**/*.{js,cjs}'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.{js,cjs}'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -27,7 +27,7 @@
"format:fix": "prettier --write $PWD/'**/*.{js,cjs}'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -12,7 +12,7 @@
"format": "prettier --list-different $PWD/'**/*.{js,cjs}'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.{js,cjs}'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -12,7 +12,7 @@
"lint:fix": "eslint --fix --ext .js --ext .cjs .", "lint:fix": "eslint --fix --ext .js --ext .cjs .",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -12,7 +12,7 @@
"format": "prettier --list-different $PWD/'**/*.{js,cjs}'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.{js,cjs}'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -15,7 +15,7 @@
"test": "npm run lint && npm run format && npm run types:check && npm run test:unit", "test": "npm run lint && npm run format && npm run types:check && npm run test:unit",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -21,7 +21,7 @@
"test": "npm run lint && npm run format && npm run types:check && npm run test:unit", "test": "npm run lint && npm run format && npm run types:check && npm run test:unit",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -13,7 +13,7 @@
"test": "npm run lint && npm run format && npm run types:check && npm run test:unit", "test": "npm run lint && npm run format && npm run types:check && npm run test:unit",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"test:unit": "mocha --exit test/**/*.{js,cjs}", "test:unit": "mocha --exit test/**/*.{js,cjs}",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -12,7 +12,7 @@
"format": "prettier --list-different $PWD/'**/*.{js,cjs}'", "format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.{js,cjs}'", "format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test:ci": "npm run test:unit", "test:ci": "npm run test:unit",
"types:build": "[ -d types ] || tsc --emitDeclarationOnly", "types:build": "[ -d types ] || tsc --noEmit false --emitDeclarationOnly",
"types:check": "tsc --noEmit", "types:check": "tsc --noEmit",
"types:rebuild": "rm -rf types && npm run types:build" "types:rebuild": "rm -rf types && npm run types:build"
}, },

View file

@ -3,6 +3,7 @@
"allowJs": true, "allowJs": true,
"esModuleInterop": true, "esModuleInterop": true,
"moduleResolution": "node", "moduleResolution": "node",
"noEmit": true,
"noImplicitAny": false, "noImplicitAny": false,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true "strict": true