build: audit TypeScript configuration (#132)

* build(typescript): remove unnecessary compiler options

* build(typescript): adjust style for value of `module` and `target` compiler options

* build(typescript): use `node16` module instead of `nodenext`

* build(typescript): enable `exactOptionalPropertyTypes` compiler option
This commit is contained in:
Alfi Maulana 2023-12-13 21:40:14 +07:00 committed by GitHub
parent 27e324dd89
commit a56fc88b91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,15 +1,12 @@
{ {
"compilerOptions": { "compilerOptions": {
"exactOptionalPropertyTypes": true,
"strict": true, "strict": true,
"module": "NodeNext", "module": "node16",
"moduleResolution": "NodeNext",
"declaration": true, "declaration": true,
"outDir": "dist", "outDir": "dist",
"sourceMap": true, "sourceMap": true,
"esModuleInterop": true, "target": "es2022",
"forceConsistentCasingInFileNames": true,
"lib": ["ES2022"],
"target": "ES2022",
"skipLibCheck": true "skipLibCheck": true
}, },
"include": ["src"] "include": ["src"]