Browse Source
Tweaks to tsconfig.json (#21)
I removed options that were the same as the default and added some missing useful ones.
iss58
Sindre Sorhus
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
13 additions and
10 deletions
-
source/lib/argument-error.ts
-
tsconfig.json
|
|
@ -2,7 +2,7 @@ export class ArgumentError extends Error { |
|
|
|
constructor(message, context) { |
|
|
|
super(message); |
|
|
|
// TODO: Node does not preserve the error name in output when using the below, why?
|
|
|
|
// Error.captureStackTrace(this, context);
|
|
|
|
Error.captureStackTrace(this, context); |
|
|
|
this.name = 'ArgumentError'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
@ -1,21 +1,24 @@ |
|
|
|
{ |
|
|
|
"compilerOptions": { |
|
|
|
"outDir": "dist", |
|
|
|
"target": "es5", |
|
|
|
"lib": [ |
|
|
|
"es2015" |
|
|
|
], |
|
|
|
"module": "commonjs", |
|
|
|
"declaration": false, |
|
|
|
"removeComments": false, |
|
|
|
"moduleResolution": "node", |
|
|
|
"pretty": true, |
|
|
|
"allowUnreachableCode": false, |
|
|
|
"allowUnusedLabels": false, |
|
|
|
"newLine": "lf", |
|
|
|
"stripInternal": true, |
|
|
|
"noImplicitAny": false, |
|
|
|
"noImplicitUseStrict": false, |
|
|
|
"noImplicitReturns": true, |
|
|
|
"noImplicitThis": true, |
|
|
|
"noUnusedLocals": true, |
|
|
|
"noUnusedParameters": true, |
|
|
|
"noFallthroughCasesInSwitch": true, |
|
|
|
"allowSyntheticDefaultImports": true, |
|
|
|
"strictNullChecks": true, |
|
|
|
"outDir": "dist", |
|
|
|
"lib": [ |
|
|
|
"es2015" |
|
|
|
] |
|
|
|
"alwaysStrict": true |
|
|
|
}, |
|
|
|
"exclude": [ |
|
|
|
"node_modules", |
|
|
|