diff --git a/example/dtsm.json b/example/dtsm.json deleted file mode 100644 index 08d0601..0000000 --- a/example/dtsm.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "repos": [ - { - "url": "https://github.com/borisyankov/DefinitelyTyped.git", - "ref": "master" - } - ], - "path": "typings", - "bundle": "typings/bundle.d.ts", - "link": { - "npm": { - "include": true - } - }, - "dependencies": { - "node/node.d.ts": { - "ref": "09e37435ffb2c56a6f908081194a74756f24f99d" - }, - "es6-promise/es6-promise.d.ts": { - "ref": "09e37435ffb2c56a6f908081194a74756f24f99d" - } - } -} \ No newline at end of file diff --git a/example/index.ts b/example/index.ts index bf1eb66..e5f2e3d 100644 --- a/example/index.ts +++ b/example/index.ts @@ -5,6 +5,7 @@ tsfmt dryRun: true, replace: false, verify: false, + tsconfig: true, tslint: true, editorconfig: true, tsfmt: true diff --git a/example/package.json b/example/package.json index f01b771..1b4533f 100644 --- a/example/package.json +++ b/example/package.json @@ -1,18 +1,20 @@ { - "name": "use-typescript-formatter-api-sample", - "private": true, - "version": "0.0.1", - "description": "", - "main": "index.js", - "scripts": { - "setup": "dtsm install", - "build": "tsc -p ./", - "exec": "node index", - "test": "npm run setup && npm run build && npm run exec" - }, - "author": "vvakame+dev@gmail.com", - "license": "MIT", - "dependencies": { - "typescript-formatter": "^1.0.0" - } + "name": "use-typescript-formatter-api-sample", + "private": true, + "version": "0.0.1", + "description": "", + "main": "index.js", + "scripts": { + "build": "tsc -p ./", + "exec": "node index", + "test": "npm run build && npm run exec" + }, + "author": "vvakame+dev@gmail.com", + "license": "MIT", + "dependencies": { + "typescript-formatter": "^3.0.0" + }, + "devDependencies": { + "typescript": "^2.0.0" + } } diff --git a/example/tsconfig.json b/example/tsconfig.json index 3ab3ae4..74e7fc5 100644 --- a/example/tsconfig.json +++ b/example/tsconfig.json @@ -2,8 +2,16 @@ "compilerOptions": { "module": "commonjs", "target": "es5", + "lib": [ + "es2015" + ], "noImplicitAny": true, - "rootDir": ".", + "strictNullChecks": true, + "noEmitOnError": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noUnusedLocals": true, + "noUnusedParameters": true, "sourceMap": false, "listFiles": true },