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) { constructor(message, context) {
super(message); super(message);
// TODO: Node does not preserve the error name in output when using the below, why? // 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'; this.name = 'ArgumentError';
} }
} }

21
tsconfig.json

@ -1,21 +1,24 @@
{ {
"compilerOptions": { "compilerOptions": {
"outDir": "dist",
"target": "es5", "target": "es5",
"lib": [
"es2015"
],
"module": "commonjs", "module": "commonjs",
"declaration": false, "moduleResolution": "node",
"removeComments": false,
"pretty": true, "pretty": true,
"allowUnreachableCode": false, "newLine": "lf",
"allowUnusedLabels": false, "stripInternal": true,
"noImplicitAny": false, "noImplicitAny": false,
"noImplicitUseStrict": false, "noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"strictNullChecks": true, "strictNullChecks": true,
"outDir": "dist", "alwaysStrict": true
"lib": [
"es2015"
]
}, },
"exclude": [ "exclude": [
"node_modules", "node_modules",

Loading…
Cancel
Save