TS config tweaks

This commit is contained in:
Sindre Sorhus 2018-05-19 15:42:12 +07:00
parent 37f6cc3fe3
commit db25d554dc
3 changed files with 19 additions and 14 deletions

View file

@ -1,4 +1,4 @@
import * as util from 'util'; import util from 'util';
import symbolObservable from 'symbol-observable'; import symbolObservable from 'symbol-observable';
type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array; type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array;

View file

@ -1,8 +1,8 @@
import * as fs from 'fs'; import fs from 'fs';
import * as net from 'net'; import net from 'net';
import * as Stream from 'stream'; import Stream from 'stream';
import * as util from 'util'; import util from 'util';
import * as tempy from 'tempy'; import tempy from 'tempy';
import test, {TestContext, Context} from 'ava'; import test, {TestContext, Context} from 'ava';
import {JSDOM} from 'jsdom'; import {JSDOM} from 'jsdom';
import {Subject, Observable} from 'rxjs'; import {Subject, Observable} from 'rxjs';

View file

@ -1,25 +1,30 @@
{ {
"compilerOptions": { "compilerOptions": {
"outDir": "dist", "outDir": "dist",
"target": "es2015", "target": "es2016",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"skipLibCheck": true,
"pretty": true,
"newLine": "lf",
"lib": [ "lib": [
"dom", "dom",
"es2015", "es2015",
"es2016",
"es2017.sharedmemory" "es2017.sharedmemory"
], ],
"module": "commonjs",
"moduleResolution": "node",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"declaration": true,
"pretty": true,
"newLine": "lf",
"stripInternal": true, "stripInternal": true,
"strict": true, "strict": true,
"noImplicitReturns": true, "noImplicitReturns": true,
"noUnusedLocals": true, "noUnusedLocals": true,
"noUnusedParameters": true, "noUnusedParameters": true,
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"esModuleInterop": true "noEmitOnError": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true
}, },
"exclude": [ "exclude": [
"node_modules", "node_modules",