aboutsummaryrefslogtreecommitdiff
path: root/tsconfig.json
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2023-10-24 03:41:47 +0700
committerShulhan <ms@kilabit.info>2023-10-24 22:28:25 +0700
commit85c3fc0431e7e75a41894d4669f6a46bbda5440b (patch)
tree15b73a82e9eaaa9ac9f2558578c8d7610ad392cd /tsconfig.json
parent891a860299ac76739d59f46280cbed63ff07743e (diff)
downloadpakakeh.ts-85c3fc0431e7e75a41894d4669f6a46bbda5440b.tar.xz
all: fix all linter warnings from tsc and eslint
In this changes we introduce eslint as our linter for TypeScript and update our tsconfig to be more strict. The ".eslintrc.yaml" and "tsconfig.json" is taken from golang/website repository [1]. [1]: https://cs.opensource.google/go/x/website
Diffstat (limited to 'tsconfig.json')
-rw-r--r--tsconfig.json21
1 files changed, 16 insertions, 5 deletions
diff --git a/tsconfig.json b/tsconfig.json
index bcb70d1..707ff90 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -1,12 +1,23 @@
{
"compilerOptions": {
- "declaration": true,
+ /* Visit https://aka.ms/tsconfig.json to read more about this file */
+ "target": "es2018",
+ "module": "es2020",
+ "isolatedModules": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
- "inlineSourceMap": true,
- "lib": ["es2015", "dom", "es2015.promise"],
- "module": "es2015",
"strict": true,
- "target": "es2015"
+ "noImplicitAny": true,
+ "noImplicitThis": true,
+ "useUnknownInCatchVariables": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "exactOptionalPropertyTypes": true,
+ "noImplicitReturns": true,
+ "noFallthroughCasesInSwitch": true,
+ "noUncheckedIndexedAccess": true,
+ "noImplicitOverride": true,
+ "noPropertyAccessFromIndexSignature": true,
+ "skipLibCheck": true,
}
}