Commit Graph

31998 Commits

Author SHA1 Message Date
wangcaoyu
99405339f1 change collectDiagnostics
Signed-off-by: wangcaoyu <wangcaoyu@huawei.com>
2024-04-15 21:48:19 +08:00
openharmony_ci
7a98e664da
!302 Requirement ArkTSLinter add testing tools
Merge pull request !302 from ironrain/share
2024-03-14 14:21:51 +00:00
lizhonghan
e17c5c4ed7 Requirement ArkTSLinter add testing tools
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I986SE
Test: tsc tests

requirement:
1. add 3rdlibs testing.
2. artTSTest update. and add arkTSVersion1_0 and arkTSVersion1_1.
3. add issues and cookbook testing.

internal: None
Change-Id: I466bb7bf4aa0f107438967a1f4461ac4a78cc3e6
Signed-off-by: lizhonghan <lizhonghan1@huawei.com>
2024-03-14 21:41:30 +08:00
openharmony_ci
639c7f668c
!296 Change TS target from 2017 to 2020
Merge pull request !296 from 肖培阳/changeTargetTo2021
2024-03-14 12:48:13 +00:00
x30053363
acab204c72 change target to es2021
Signed-off-by: x30053363 <xiaopeiyang1@huawei.com>
Change-Id: I15161d056b1592b8e26bd1ff475527af370b0107
2024-03-13 16:31:15 +08:00
openharmony_ci
9c65d3e363
!299 Pack the package to target out dir
Merge pull request !299 from zhangchen168/0305-tsc-ci
2024-03-06 02:34:14 +00:00
zhangchen
f85015649d Pack the package to target out dir
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I9610E

Signed-off-by: zhangchen <zhangchen168@huawei.com>
Change-Id: Ifb2f574e48f1cddebc313a2a4c11ecccab672faf
2024-03-05 21:40:35 +08:00
openharmony_ci
1643898f38
!297 Fix ArkTSLinter readonly array bug
Merge pull request !297 from ironrain/work_0304_None_master_1
2024-03-05 12:46:26 +00:00
lizhonghan
cce6b8f423 Fix ArkTSLinter readonly array bug
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I95QGC
Test: tsc tests

bugfix:
1. Fix the problem of error when readonly is used as function modification

internal: #15966

Change-Id: Ide8cbf598d6e6fc0454eea53d70075e13d4bd581
Signed-off-by: lizhonghan <lizhonghan1@huawei.com>
2024-03-05 10:50:39 +08:00
openharmony_ci
8083c1fbc0
!290 fix const enum problem
Merge pull request !290 from 徐城/dev-2024-02-18-01
2024-03-04 01:34:56 +00:00
xucheng46
63ffb6892a fix const enum problem
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I91W4Y
Test: tsc tests

Signed-off-by: xucheng46 <xucheng46@huawei.com>
Change-Id: Ia76effcdf409146afe2cca2043f141b6f4370c5b
2024-03-03 17:30:36 +08:00
openharmony_ci
dd7f528ea5
!292 Requirement ArkTSLinter add Linter perfomance log printing
Merge pull request !292 from ironrain/work_0226_None_master_1
2024-03-02 12:04:30 +00:00
lizhonghan
885b0de0a2 Requirement ArkTSLinter add Linter perfomance log printing
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I93SYL
Test: tsc tests

requirement:
1. add Linter perfomance log printing.
es2bundle add 3 phase: getProgram(not ArkTSLinter), getReverseStrictBuilderProgram, updateErrorFile.
typescript add 8 phase: init,strictProgramGetSemanticDiagnostics, strictProgramGetSyntacticDiagnostics, nonStrictProgramGetSemanticDiagnostics,
nonStrictProgramGetSyntacticDiagnostics, getTscDiagnostics, emitBuildInfo, lint.

internal: None
Change-Id: Ic97630aea9a6d34b02719a23e22ade2d41497912
Signed-off-by: lizhonghan <lizhonghan1@huawei.com>
2024-03-02 17:19:32 +08:00
openharmony_ci
7174082072
!294 Adapt LocalStorage parameter in struct constructor
Merge pull request !294 from 徐城/dev-2024-0226-01-localstorage
2024-02-29 10:10:54 +00:00
xucheng46
9206ffcd86 Adapt LocalStorage parameter in struct constructor
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I93W55
Test: Tsc test

Signed-off-by: xucheng46 <xucheng46@huawei.com>
Change-Id: I5269089bb9e92981272a7773cf16a1489418b43b
2024-02-29 16:43:57 +08:00
openharmony_ci
a4618f3570
!288 Fix ArkTSLinter preview duplicate error problem
Merge pull request !288 from ironrain/work_0208_287_master_1
2024-02-18 06:53:50 +00:00
xucheng46
f6cd146125 Fix ArkTSLinter preview duplicate error problem
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I91HTJ
Test: tsc tests

bugfix:
1. Fixing the issue of defining structs with the same name in different files in the preview scene, causing errors, and reporting continued errors even after renaming them to different names.

internal: #15665
Change-Id: Icccaf324b144b89bdf4f955ce864119b54fa29dd
Signed-off-by: lizhonghan <lizhonghan1@huawei.com>
2024-02-17 07:11:21 +00:00
openharmony_ci
1f2a3c4b48
!285 Fix ArkTSLinter relax structural-typeing for library
Merge pull request !285 from ironrain/work_0206_274_master_1
2024-02-07 11:59:09 +00:00
lizhonghan
117327258b Fix ArkTSLinter relax structural-typeing for library
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I91EQM
Test: tsc tests

bugfix:
1. Relax `structural-typeing` rule for library to resolve lib function overload problem.

internal: #15391
Change-Id: I9643c7701112ed18f6a9a3303e757bf7706f97f4
Signed-off-by: lizhonghan <lizhonghan1@huawei.com>
2024-02-07 02:26:06 +00:00
openharmony_ci
98923f8626
!280 Fix ArkTSLinter the arkts-no-import-assertions rule is supported
Merge pull request !280 from ironrain/work_0205_275_1
2024-02-07 02:20:12 +00:00
lizhonghan
9ea6730533 Fix ArkTSLinter the arkts-no-import-assertions rule is supported
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I918V7
Test: tsc tests

bugfix:
1. Fix support for arkts-no-import-assertions rules to synchronize RT results

internal: #15615
Change-Id: I4a0f0530c2247b0308b00430832ed025e75648c0
Signed-off-by: lizhonghan <lizhonghan1@huawei.com>
2024-02-06 06:19:48 +00:00
openharmony_ci
366e2282a7
!272 Fix ArkTSLinter the type cannot be correctly recognized about '__'
Merge pull request !272 from ironrain/work_0130_271_1
2024-01-30 15:10:04 +00:00
lizhonghan
acdd3472f4 Fix ArkTSLinter the type cannot be correctly recognized when using '__' as beginning of property name
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8ZS2U
Test: tsc tests

bugfix:
1.Fix the error when '__' as beginning of property name, the type cannot be correctly recognized.
2.Fix highlight range. About `arkts-no-implict-return-types`.befor highlight whole function, now only function name.

internal: #15497, #14357
Change-Id: I7d9a10048141c69ceeaa4fead8b158b7156bac37
Signed-off-by: lizhonghan <lizhonghan1@huawei.com>
2024-01-30 11:29:38 +00:00
openharmony_ci
5fcdd34c67
!270 Isolate arkui props
Merge pull request !270 from chenqy930/isolate-ui-props
2024-01-25 06:45:45 +00:00
openharmony_ci
385f13788e
!269 fix code check
Merge pull request !269 from 徐城/dev-2024-0121-04-static-block-add-in-v10-3
2024-01-25 02:07:23 +00:00
c00513733
4065bb589b Isolate arkui props
Issue: https://gitee.com/openharmony/developtools_ace_ets2bundle/issues/I8Y1VW

Signed-off-by: c00513733 <chenqiuyao@huawei.com>
Change-Id: I07c371518cfb3fdbf6f6d9c30b4f0dc63d0c300b
2024-01-24 03:38:58 +00:00
xucheng46
672fce47c6 fix linter code check
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8YDKV
Test: tsc test

Signed-off-by: xucheng46 <xucheng46@huawei.com>
Change-Id: I53bf9ea89c3a169c1b2b766e7944c5dc125526ca
2024-01-23 21:35:55 +08:00
openharmony_ci
496174c4fb
!268 fix thei static block check problem
Merge pull request !268 from 徐城/dev-2024-0121-01-static-block
2024-01-23 09:29:32 +00:00
xucheng46
b1852751c7 fix thei strict block check problem
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8XS30
Test: tsc test

Signed-off-by: xucheng46 <xucheng46@huawei.com>
Change-Id: Ide994cc1ddc1fdfae14ddfd15e3fbb9565f165d6
2024-01-23 15:17:37 +08:00
openharmony_ci
89cd44d3fb
!252 Fix ArkTSLinter generic parameter bug for arrary type
Merge pull request !252 from ironrain/work_0103_250_1
2024-01-21 11:15:23 +00:00
lizhonghan
0c986b83e4 Fix ArkTSLinter generic parameter bug for arrary type
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8T4QD
Test: tsc tests

bugfix:
1.Fix the error When using array type as generic parameter, an error occurs.

internal: #15086

Change-Id: I69b0dd80775f365fa4b7a1f362213c7548a588c3
Signed-off-by: lizhonghan <lizhonghan1@huawei.com>
2024-01-17 03:38:45 +00:00
openharmony_ci
a211807c6d
!266 add flag skip tsc oh_modules check
Merge pull request !266 from 徐城/dev-2024-0112-02-ignore
2024-01-12 16:10:18 +00:00
xucheng46
2ca31f0913 add flag skip tsc oh_modules check
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8VRMZ
Test: tsc test

Signed-off-by: xucheng46 <xucheng46@huawei.com>
Change-Id: I67bec385d128187942f4bb70b898b0c767053c79
2024-01-12 20:39:39 +08:00
openharmony_ci
1ff18a2142
!258 Speedup incremental build: revert linter parallel and add language service cache
Merge pull request !258 from chenqy930/revert-parallel
2024-01-12 12:35:17 +00:00
c00513733
4178369ae1 Use language service to cache, use language service to create program in linter
Signed-off-by: c00513733 <chenqiuyao@huawei.com>
Change-Id: I4411eed88dd4878cc826e500ae67d32cd902e65c
2024-01-12 02:57:27 +00:00
openharmony_ci
139c322f3f
!263 ignore the type of private property in decl class
Merge pull request !263 from 徐城/dev-2024-0110-02-private
2024-01-11 13:30:56 +00:00
xucheng46
278601e2df ignore the type of private property in decl class
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8V6Z2
Test: tsc test

Signed-off-by: xucheng46 <xucheng46@huawei.com>
Change-Id: Ic1b03235dd4fe0aadb1c131281445331431f2fb8
2024-01-11 15:58:49 +08:00
c00513733
feb7fc21cd Revert "do arkts linter parallel"
This reverts commit 8568221313.

Signed-off-by: c00513733 <chenqiuyao@huawei.com>
Change-Id: Ie0d9c008059ef077e8fef53dcf04c9b4dfe15730
2024-01-09 07:16:27 +00:00
openharmony_ci
8a4ad54cdf
!246 Cancel the tsc build process in CI and upload the lib code.
Merge pull request !246 from zhangchen168/1227-cancel-build
2024-01-08 11:04:51 +00:00
openharmony_ci
9620dd2558
!255 Modify the version of README.OpenSource
Merge pull request !255 from zhangchen168/0104-readmesource
2024-01-04 10:18:08 +00:00
zhangchen
718719a2e8 Modify the version of README.OpenSource
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8TMEX

Signed-off-by: zhangchen <zhangchen168@huawei.com>
Change-Id: Ic3fbbf4c3ba8b428d8c1c7f6c7ceed59ecad4de7
2024-01-04 08:15:23 +00:00
zhangchen
4c5ab8bdc4 dynamic import json5
Signed-off-by: zhangchen <zhangchen168@huawei.com>
Change-Id: I07d8e598c3d91d5dca986a0afa854eadfcb0d79e
2024-01-03 09:40:09 +00:00
openharmony_ci
c8dc0fc77a
!249 Fix ArkTSLinter report information about col and line
Merge pull request !249 from ironrain/work_1129_248_1
2024-01-03 01:41:20 +00:00
lizhonghan
c58caa64c1 Fix ArkTSLinter report information about col and line
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8S84S
Test: tsc tests

bugfix:
1.Sync RT hignlight ruller, it will change ArkTSLinter report information about col and line.

internal:

Change-Id: Ifd3c43a9f5fbe81d598aa0f7cd3942348adaafc6
Signed-off-by: lizhonghan <lizhonghan1@huawei.com>
2023-12-29 01:18:12 +00:00
zhangchen
48d41aef68 Cancel the tsc build process in CI and upload the lib code
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8ROKY

Signed-off-by: zhangchen <zhangchen168@huawei.com>
Change-Id: Ib823b8c6e36b59e978c1770706dc6b6ad1179394
2023-12-27 09:05:02 +00:00
openharmony_ci
e7d0500d65
!241 Fix ArkTSLinter Record bug and change ruler
Merge pull request !241 from ironrain/work_1222
2023-12-26 05:23:44 +00:00
lizhonghan
c7a25873e5 Fix ArkTSLinter Record bug and change ruler
Issue: https://gitee.com/openharmony/third_party_typescript/issues/I8QMEK
Test: tsc tests

bugfix:
1.Fix the error: When using strings as index values in the definition of a Record, an error occurs. For example, ['a']: 1.
2.'arkts-no-func-apply-bind-call' is splited into two rulers.

internal: #14953,#14954

Change-Id: Ie728fcddb0fbec39fa0390e7b5fde681e28f2567
Signed-off-by: lizhonghan <lizhonghan1@huawei.com>
2023-12-26 01:37:35 +00:00
openharmony_ci
6786c9d78b
!239 BugFix for Remove Declaration Comments
Merge pull request !239 from 邓新宇/removeCommentsBugFix
2023-12-25 14:13:06 +00:00
openharmony_ci
5a2897657c
!211 do arkts linter parallel
Merge pull request !211 from 徐城/dev-2023-1118-opt-sdk-linter-01-mst
2023-12-25 13:55:37 +00:00
openharmony_ci
93245f5af3
!244 fix the error filter in oh_modules
Merge pull request !244 from 徐城/dev-2023-1223-oh_module_01
2023-12-25 13:05:43 +00:00