!116 Enabel Standard mode for ArkTS Module

Merge pull request !116 from 徐城/dev-2023-0820-03-standard
This commit is contained in:
openharmony_ci 2023-09-02 09:29:28 +00:00 committed by Gitee
commit f5cacdbb10
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 1 deletions

View File

@ -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;
}