Skip to content

Commit 3b365be

Browse files
committed
feat(example): update example code
1 parent b858991 commit 3b365be

File tree

4 files changed

+28
-40
lines changed

4 files changed

+28
-40
lines changed

example/dtsm.json

-23
This file was deleted.

example/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ tsfmt
55
dryRun: true,
66
replace: false,
77
verify: false,
8+
tsconfig: true,
89
tslint: true,
910
editorconfig: true,
1011
tsfmt: true

example/package.json

+18-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
{
2-
"name": "use-typescript-formatter-api-sample",
3-
"private": true,
4-
"version": "0.0.1",
5-
"description": "",
6-
"main": "index.js",
7-
"scripts": {
8-
"setup": "dtsm install",
9-
"build": "tsc -p ./",
10-
"exec": "node index",
11-
"test": "npm run setup && npm run build && npm run exec"
12-
},
13-
"author": "[email protected]",
14-
"license": "MIT",
15-
"dependencies": {
16-
"typescript-formatter": "^1.0.0"
17-
}
2+
"name": "use-typescript-formatter-api-sample",
3+
"private": true,
4+
"version": "0.0.1",
5+
"description": "",
6+
"main": "index.js",
7+
"scripts": {
8+
"build": "tsc -p ./",
9+
"exec": "node index",
10+
"test": "npm run build && npm run exec"
11+
},
12+
"author": "[email protected]",
13+
"license": "MIT",
14+
"dependencies": {
15+
"typescript-formatter": "^3.0.0"
16+
},
17+
"devDependencies": {
18+
"typescript": "^2.0.0"
19+
}
1820
}

example/tsconfig.json

+9-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,16 @@
22
"compilerOptions": {
33
"module": "commonjs",
44
"target": "es5",
5+
"lib": [
6+
"es2015"
7+
],
58
"noImplicitAny": true,
6-
"rootDir": ".",
9+
"strictNullChecks": true,
10+
"noEmitOnError": true,
11+
"noImplicitReturns": true,
12+
"noImplicitThis": true,
13+
"noUnusedLocals": true,
14+
"noUnusedParameters": true,
715
"sourceMap": false,
816
"listFiles": true
917
},

0 commit comments

Comments
 (0)