mirror of
https://gitee.com/openharmony/third_party_typescript
synced 2024-11-26 16:42:57 +00:00
!116 Enabel Standard mode for ArkTS Module
Merge pull request !116 from 徐城/dev-2023-0820-03-standard
This commit is contained in:
commit
f5cacdbb10
Binary file not shown.
@ -1936,7 +1936,8 @@ namespace ts {
|
||||
Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_about_to_be_forbidden.message :
|
||||
Diagnostics.Importing_ArkTS_files_in_JS_and_TS_files_is_forbidden.message);
|
||||
const isOhModule = item.file?.fileName.indexOf("/oh_modules/") !== -1;
|
||||
return !((item.file?.scriptKind === ScriptKind.TS && item.file?.isDeclarationFile && messageFlag) || isOhModule);
|
||||
const isApplicationsStandard = (item.file !== undefined) && (item.file.fileName.indexOf("/applications/standard/") !== -1);
|
||||
return !((item.file?.scriptKind === ScriptKind.TS && item.file?.isDeclarationFile && messageFlag) || isOhModule || isApplicationsStandard);
|
||||
});
|
||||
return diagnosticsAfterFilter;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user