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
parent
commit
c66131a4e9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      source/lib/argument-error.ts
  2. 21
      tsconfig.json

2
source/lib/argument-error.ts

@ -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';
}
}

21
tsconfig.json

@ -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",

Loading…
Cancel
Save