mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-12-06 17:27:59 +00:00
Update TSConfig to produce type definitions (#79)
* Update TSConfig to produce type definitions Also, add some stricter type-checking, and remove settings that were set to the same value as the default for that setting. I also reorganized the sections into the sections that TypeScript itself generates when you boot up a `tsconfig.json` using their CLI. * Downgrade target to ES6 for Node 8 support * Add engines specification to package.json Make it clear that we support Node 8 and above.
This commit is contained in:
@@ -1,25 +1,31 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"target": "es6",
|
||||
"lib": [
|
||||
"es2017"
|
||||
],
|
||||
// Basic Options
|
||||
"target": "ES6",
|
||||
"module": "commonjs",
|
||||
"declaration": true,
|
||||
"declarationMap": true,
|
||||
"sourceMap": true,
|
||||
|
||||
// Directories
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"strictNullChecks": false,
|
||||
|
||||
// Strict Type-Checking Options
|
||||
"strict": true,
|
||||
"noImplicitAny": false,
|
||||
|
||||
// Additional Checks
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"removeComments": false,
|
||||
"preserveConstEnums": false,
|
||||
"suppressImplicitAnyIndexErrors": false,
|
||||
"sourceMap": true,
|
||||
"skipLibCheck": true,
|
||||
"allowJs": true
|
||||
"noImplicitReturns": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
|
||||
// Module Resolution Options
|
||||
"moduleResolution": "node",
|
||||
|
||||
// Advanced Options
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"include": [
|
||||
"src/**/*.ts"
|
||||
]
|
||||
"include": ["src/**/*.ts"]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user