Skip to content

Commit

Permalink
chore: update typescript config
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Sep 11, 2024
1 parent 62baced commit 99d45a5
Showing 1 changed file with 27 additions and 9 deletions.
36 changes: 27 additions & 9 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,36 @@
{
"compilerOptions": {
"outDir": "dist",
"module": "Node16",
// project options
"lib": ["ESNext"],
"outDir": "dist",
"removeComments": true,
"target": "ESNext",
"module": "Node16",
"allowImportingTsExtensions": true,
"emitDeclarationOnly": true,
"moduleResolution": "Node16",
"strict": true,
"stripInternal": true,

// Module resolution
"esModuleInterop": true,
"declaration": true,
"moduleResolution": "Node16",

// Source Map
"sourceMap": true,
"resolveJsonModule": false

// Strict Checks
"alwaysStrict": true, // Ensures that your files are parsed in the ECMAScript strict mode, and emit “use strict” for each source file.
"allowUnreachableCode": false, // pick up dead code paths
"noImplicitAny": true, // In some cases where no type annotations are present, TypeScript will fall back to a type of any for a variable when it cannot infer the type.
"strictNullChecks": true, // When strictNullChecks is true, null and undefined have their own distinct types and you’ll get a type error if you try to use them where a concrete value is expected.
"allowJs": true,
// Linter Checks
"noImplicitReturns": true,
"noUnusedLocals": false, // Report errors on unused local variables.
"noUnusedParameters": false, // Report errors on unused parameters in functions
"declaration": true,
"checkJs": false,
"skipLibCheck": true,

"resolveJsonModule": false,
"emitDeclarationOnly": true,
"allowImportingTsExtensions": true
},
"include": ["src"]
}

0 comments on commit 99d45a5

Please sign in to comment.