From f4e8c633b19da2a37823623f45899724a37fd98d Mon Sep 17 00:00:00 2001 From: youdongzhen Date: Wed, 10 Sep 2025 17:28:18 +0800 Subject: [PATCH] fix test Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICXDMP Signed-off-by: youdongzhen Change-Id: I6cab46c8aff6c45e7c75d1450f182c30fc2d5020 --- ets2panda/linter/eslint.config.mjs | 2 +- ets2panda/linter/src/testRunner/TestFactory.ts | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ets2panda/linter/eslint.config.mjs b/ets2panda/linter/eslint.config.mjs index f5afd19191..cb74f4e9df 100644 --- a/ets2panda/linter/eslint.config.mjs +++ b/ets2panda/linter/eslint.config.mjs @@ -127,7 +127,7 @@ export default tseslint.config( '@stylistic/eol-last': ['error', 'always'], '@stylistic/no-confusing-arrow': 'error', '@stylistic/no-floating-decimal': 'error', - '@stylistic/func-call-spacing': ['error', 'never'], + '@/func-call-spacing': ['error', 'never'], '@stylistic/function-call-argument-newline': ['error', 'consistent'], '@stylistic/function-paren-newline': ['error', 'consistent'], '@stylistic/generator-star-spacing': ['error', { before: true, after: false }], diff --git a/ets2panda/linter/src/testRunner/TestFactory.ts b/ets2panda/linter/src/testRunner/TestFactory.ts index ef4a2906ab..70751139d5 100644 --- a/ets2panda/linter/src/testRunner/TestFactory.ts +++ b/ets2panda/linter/src/testRunner/TestFactory.ts @@ -125,8 +125,9 @@ function getLinterOptionsFromCommandLine(cmdLine: string): LinterOptions { function getDefaultTestOptions(): LinterOptions { return { useRtLogic: true, - checkTsAsSource: - true /* By default, treat any test file with '.ts' extension as a source file (as opposed to library) */, + + /* By default, treat any test file with '.ts' extension as a source file (as opposed to library) */ + checkTsAsSource: true, compatibleSdkVersion: 12, compatibleSdkVersionStage: 'beta3', checkTsAndJs: true -- Gitee