Merge pull request #16393 from overleaf/em-typescript-libraries

Add type checking to libraries

GitOrigin-RevId: bed79f5123081773d6ac6e27698246726184c5e6
This commit is contained in:
Eric Mc Sween
2024-01-11 08:26:29 -05:00
committed by Copybot
parent f1b460ecea
commit d227dfba0c
28 changed files with 276 additions and 123 deletions
+11 -7
View File
@@ -8,14 +8,18 @@
"author": "Overleaf (https://www.overleaf.com)",
"private": true,
"scripts": {
"lint": "eslint --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix .",
"format": "prettier --list-different $PWD/'**/*.js'",
"format:fix": "prettier --write $PWD/'**/*.js'",
"test": "mocha --recursive test/unit/src/",
"test:ci": "npm run test"
"lint": "eslint --ext .js --ext .cjs --max-warnings 0 --format unix .",
"lint:fix": "eslint --fix --ext .js --ext .cjs .",
"format": "prettier --list-different $PWD/'**/*.{js,cjs}'",
"format:fix": "prettier --write $PWD/'**/*.{js,cjs}'",
"test": "npm run lint && npm run format && npm run typecheck && npm run test:unit",
"test:ci": "npm run test:unit",
"typecheck": "tsc --noEmit",
"test:unit": "mocha --exit test/**/*.{js,cjs}",
"update-types": "rm -rf types && tsc --emitDeclarationOnly"
},
"devDependencies": {
"mocha": "^10.2.0"
"mocha": "^10.2.0",
"typescript": "^5.0.4"
}
}