添加tslint检测d.ts规范

This commit is contained in:
yangdan8 2019-03-20 13:04:50 +08:00
parent 1011bd411a
commit f6ca27da30
4 changed files with 285 additions and 132 deletions

24
tsconfig.json Normal file
View file

@ -0,0 +1,24 @@
{
"compilerOptions": {
"target": "esnext",
"module": "esnext",
"strict": true,
"jsx": "preserve",
"importHelpers": true,
"moduleResolution": "node",
"experimentalDecorators": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"sourceMap": true,
"baseUrl": ".",
"types": ["node"],
"paths": {
"@/*": ["src/*"]
},
"lib": ["esnext", "dom", "dom.iterable", "scripthost"]
},
"include": [
"types/*.ts",
],
"exclude": ["node_modules"]
}