Use more explicit names
This commit is contained in:
parent
53530517a4
commit
1dd79d573c
|
@ -13,23 +13,23 @@ export function isImplicitProjectConfigFile(configFileName: string) {
|
|||
}
|
||||
|
||||
export function inferredProjectConfig(
|
||||
config: TypeScriptServiceConfiguration
|
||||
serviceConfig: TypeScriptServiceConfiguration,
|
||||
): Proto.ExternalProjectCompilerOptions {
|
||||
const base: Proto.ExternalProjectCompilerOptions = {
|
||||
const projectConfig: Proto.ExternalProjectCompilerOptions = {
|
||||
module: 'commonjs' as Proto.ModuleKind,
|
||||
target: 'es2016' as Proto.ScriptTarget,
|
||||
jsx: 'preserve' as Proto.JsxEmit
|
||||
jsx: 'preserve' as Proto.JsxEmit,
|
||||
};
|
||||
|
||||
if (config.checkJs) {
|
||||
base.checkJs = true;
|
||||
if (serviceConfig.checkJs) {
|
||||
projectConfig.checkJs = true;
|
||||
}
|
||||
|
||||
if (config.experimentalDecorators) {
|
||||
base.experimentalDecorators = true;
|
||||
if (serviceConfig.experimentalDecorators) {
|
||||
projectConfig.experimentalDecorators = true;
|
||||
}
|
||||
|
||||
return base;
|
||||
return projectConfig;
|
||||
}
|
||||
|
||||
function inferredProjectConfigSnippet(
|
||||
|
|
Loading…
Reference in a new issue