1# ArkCompiler Subsystem Changelog 2 3## cl.ArkCompiler.1 ArkTS Linter Rules Changed 4 5**Access Level** 6 7Others 8 9**Reason for Change** 10 11For ease of use, the linter rules **arkts-no-generic-lambdas** and **arkts-no-import-default-as** are deleted from ArkTS. 12 13**Change Impact** 14 15This change is a compatibility change. 16 17**Start API Level** 18 1910 20 21**Change Since** 22 23OpenHarmony SDK 5.0.0.25 24 25**Key API/Component Changes** 26 27Before the change, a linter error is reported for the following two rules. After the change, no linter error is reported for the two rules. 28 29- (Deleted) Rule 1: Use Generic Functions Instead of Generic Arrow Functions 30 31 Rule: arkts-no-generic-lambdas 32 33 Severity: error 34 35 Rule description: ArkTS does not support generic arrow functions. 36 37 TypeScript syntax: 38 39 ```typescript 40 let generic_arrow_func = <T extends String> (x: T) => { return x; }; 41 42 generic_arrow_func('string'); 43 ``` 44 45 ArkTS syntax: 46 47 ```typescript 48 function generic_func<T extends String>(x: T): T { 49 return x; 50 } 51 52 generic_func<String>('string'); 53 ``` 54 55- (Deleted) Rule 2: Import default as... Is Not Supported 56 57 Rule: arkts-no-import-default-as 58 59 Severity: error 60 61 Rule description: ArkTS does not support the **import default as...** syntax. Use explicit **import... from...** instead. 62 63 TypeScript syntax: 64 65 ```typescript 66 import { default as d } from 'mod' 67 ``` 68 69 ArkTS syntax: 70 71 ```typescript 72 import d from 'mod' 73 ``` 74 75**Adaptation Guide** 76 77No adaptation is required. 78