mirror of
https://github.com/WeBankFinTech/fes.js.git
synced 2025-04-06 03:59:53 +08:00
fix: 优化项目模板ts配置
This commit is contained in:
parent
dc3e0aceb1
commit
dd455fba7b
@ -3,7 +3,10 @@
|
|||||||
"outDir": "build/dist",
|
"outDir": "build/dist",
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"lib": ["esnext", "dom"],
|
"lib": [
|
||||||
|
"esnext",
|
||||||
|
"dom"
|
||||||
|
],
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
@ -14,24 +17,31 @@
|
|||||||
"suppressImplicitAnyIndexErrors": true,
|
"suppressImplicitAnyIndexErrors": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"],
|
"@/*": [
|
||||||
"@@/*": ["./src/.fes/*"]
|
"./src/*"
|
||||||
|
],
|
||||||
|
"@@/*": [
|
||||||
|
"./src/.fes/*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
"*.js",
|
||||||
|
".fes*.js",
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
"tests/**/*",
|
|
||||||
"test/**/*",
|
|
||||||
"__test__/**/*",
|
|
||||||
"typings/**/*",
|
"typings/**/*",
|
||||||
"config/**/*",
|
"config/**/*",
|
||||||
".eslintrc.js",
|
"src/.fes/configType.d.ts"
|
||||||
".stylelintrc.js",
|
|
||||||
".prettierrc.js"
|
|
||||||
],
|
],
|
||||||
"exclude": ["node_modules", "build", "dist", "scripts", "src/.fes/*", "webpack", "jest"]
|
"exclude": [
|
||||||
|
"build",
|
||||||
|
"dist",
|
||||||
|
"scripts",
|
||||||
|
"webpack",
|
||||||
|
"jest",
|
||||||
|
"node_modules"
|
||||||
|
]
|
||||||
}
|
}
|
@ -3,7 +3,10 @@
|
|||||||
"outDir": "build/dist",
|
"outDir": "build/dist",
|
||||||
"module": "esnext",
|
"module": "esnext",
|
||||||
"target": "esnext",
|
"target": "esnext",
|
||||||
"lib": ["esnext", "dom"],
|
"lib": [
|
||||||
|
"esnext",
|
||||||
|
"dom"
|
||||||
|
],
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"baseUrl": ".",
|
"baseUrl": ".",
|
||||||
"jsx": "preserve",
|
"jsx": "preserve",
|
||||||
@ -14,24 +17,31 @@
|
|||||||
"suppressImplicitAnyIndexErrors": true,
|
"suppressImplicitAnyIndexErrors": true,
|
||||||
"noUnusedLocals": true,
|
"noUnusedLocals": true,
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"paths": {
|
"paths": {
|
||||||
"@/*": ["./src/*"],
|
"@/*": [
|
||||||
"@@/*": ["./src/.fes/*"]
|
"./src/*"
|
||||||
|
],
|
||||||
|
"@@/*": [
|
||||||
|
"./src/.fes/*"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
|
"*.js",
|
||||||
|
".fes*.js",
|
||||||
"src/**/*",
|
"src/**/*",
|
||||||
"tests/**/*",
|
|
||||||
"test/**/*",
|
|
||||||
"__test__/**/*",
|
|
||||||
"typings/**/*",
|
"typings/**/*",
|
||||||
"config/**/*",
|
"config/**/*",
|
||||||
".eslintrc.js",
|
"src/.fes/configType.d.ts"
|
||||||
".stylelintrc.js",
|
|
||||||
".prettierrc.js"
|
|
||||||
],
|
],
|
||||||
"exclude": ["node_modules", "build", "dist", "scripts", "src/.fes/*", "webpack", "jest"]
|
"exclude": [
|
||||||
|
"build",
|
||||||
|
"dist",
|
||||||
|
"scripts",
|
||||||
|
"webpack",
|
||||||
|
"jest",
|
||||||
|
"node_modules"
|
||||||
|
]
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user