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": {
"exactOptionalPropertyTypes": true,
"strict": true,
"module": "NodeNext",
"moduleResolution": "NodeNext",
"module": "node16",
"declaration": true,
"outDir": "dist",
"sourceMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ES2022"],
"target": "ES2022",
"target": "es2022",
"skipLibCheck": true
},
"include": ["src"]