Skip to content

Commit e726999

Browse files
authored
chore: tidy up tsconfig (#214)
1 parent 966fecf commit e726999

File tree

4 files changed

+10
-22
lines changed

4 files changed

+10
-22
lines changed

example/tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"dom",
66
"es2015"
77
],
8-
"module": "commonjs",
8+
"module": "es2015",
99
"moduleResolution": "node",
1010
"experimentalDecorators": true,
1111
"strict": true,
12-
"suppressImplicitAnyIndexErrors": true,
13-
"removeComments": true
12+
"noUnusedLocals": true,
13+
"noUnusedParameters": true
1414
},
1515
"include": [
1616
"./**/*.ts"

src/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Vue from 'vue'
22
import { VueClass } from './declarations'
3-
import { noop, warn } from './util'
3+
import { warn } from './util'
44

55
export function collectDataFromConstructor (vm: Vue, Component: VueClass<Vue>) {
66
// override _init to prevent to init as Vue instance

test/tsconfig.json

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
11
{
2+
"extends": "../tsconfig.json",
23
"compilerOptions": {
3-
"target": "es5",
4-
"lib": [
5-
"dom",
6-
"es2015"
7-
],
8-
"module": "commonjs",
9-
"moduleResolution": "node",
10-
"isolatedModules": false,
11-
"experimentalDecorators": true,
12-
"noImplicitAny": true,
13-
"noImplicitThis": true,
14-
"strictNullChecks": true,
15-
"removeComments": true,
16-
"suppressImplicitAnyIndexErrors": true,
17-
"allowSyntheticDefaultImports": true
4+
"outDir": "",
5+
"experimentalDecorators": true
186
},
197
"include": [
208
"./**/*.ts"

tsconfig.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
"module": "es2015",
99
"moduleResolution": "node",
1010
"outDir": "lib",
11-
"experimentalDecorators": true,
1211
"declaration": true,
1312
"strict": true,
14-
"suppressImplicitAnyIndexErrors": true,
15-
"removeComments": true
13+
"noUnusedLocals": true,
14+
"noUnusedParameters": true,
15+
"suppressImplicitAnyIndexErrors": true
1616
},
1717
"include": [
1818
"src/**/*.ts"

0 commit comments

Comments
 (0)