• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2022-2023 Huawei Device Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15namespace ts {
16export namespace ArkTSLinter_1_0 {
17
18export const cookBookMsg: string[] = [];
19export const cookBookTag: string[] = [];
20
21for(let i = 0; i <= 151; i++) {
22  cookBookMsg[ i ] = "";
23}
24
25cookBookTag[1] = "Objects with property names that are not identifiers are not supported (arkts-identifiers-as-prop-names)";
26cookBookTag[2] = "\"Symbol()\" API is not supported (arkts-no-symbol)";
27cookBookTag[3] = "Private \"#\" identifiers are not supported (arkts-no-private-identifiers)";
28cookBookTag[4] = "Use unique names for types and namespaces. (arkts-unique-names)";
29cookBookTag[5] = "Use \"let\" instead of \"var\" (arkts-no-var)";
30cookBookTag[6] = "";
31cookBookTag[7] = "";
32cookBookTag[8] = "Use explicit types instead of \"any\", \"unknown\" (arkts-no-any-unknown)";
33cookBookTag[9] = "";
34cookBookTag[10] = "";
35cookBookTag[11] = "";
36cookBookTag[12] = "";
37cookBookTag[13] = "";
38cookBookTag[14] = "Use \"class\" instead of a type with call signature (arkts-no-call-signatures)";
39cookBookTag[15] = "Use \"class\" instead of a type with constructor signature (arkts-no-ctor-signatures-type)";
40cookBookTag[16] = "Only one static block is supported (arkts-no-multiple-static-blocks)";
41cookBookTag[17] = "Indexed signatures are not supported (arkts-no-indexed-signatures)";
42cookBookTag[18] = "";
43cookBookTag[19] = "Use inheritance instead of intersection types (arkts-no-intersection-types)";
44cookBookTag[20] = "";
45cookBookTag[21] = "Type notation using \"this\" is not supported (arkts-no-typing-with-this)";
46cookBookTag[22] = "Conditional types are not supported (arkts-no-conditional-types)";
47cookBookTag[23] = "";
48cookBookTag[24] = "";
49cookBookTag[25] = "Declaring fields in \"constructor\" is not supported (arkts-no-ctor-prop-decls)";
50cookBookTag[26] = "";
51cookBookTag[27] = "Construct signatures are not supported in interfaces (arkts-no-ctor-signatures-iface)";
52cookBookTag[28] = "Indexed access types are not supported (arkts-no-aliases-by-index)";
53cookBookTag[29] = "Indexed access is not supported for fields (arkts-no-props-by-index)";
54cookBookTag[30] = "Structural typing is not supported (arkts-no-structural-typing)";
55cookBookTag[31] = "";
56cookBookTag[32] = "";
57cookBookTag[33] = "";
58cookBookTag[34] = "Type inference in case of generic function calls is limited (arkts-no-inferred-generic-params)";
59cookBookTag[35] = "";
60cookBookTag[36] = "";
61cookBookTag[37] = "RegExp literals are not supported (arkts-no-regexp-literals)";
62cookBookTag[38] = "Object literal must correspond to some explicitly declared class or interface (arkts-no-untyped-obj-literals)";
63cookBookTag[39] = "";
64cookBookTag[40] = "Object literals cannot be used as type declarations (arkts-no-obj-literals-as-types)";
65cookBookTag[41] = "";
66cookBookTag[42] = "";
67cookBookTag[43] = "Array literals must contain elements of only inferrable types (arkts-no-noninferrable-arr-literals)";
68cookBookTag[44] = "";
69cookBookTag[45] = "";
70cookBookTag[46] = "Use arrow functions instead of function expressions (arkts-no-func-expressions)";
71cookBookTag[47] = "";
72cookBookTag[48] = "";
73cookBookTag[49] = "Use generic functions instead of generic arrow functions (arkts-no-generic-lambdas)";
74cookBookTag[50] = "Class literals are not supported (arkts-no-class-literals)";
75cookBookTag[51] = "Classes cannot be specified in \"implements\" clause (arkts-implements-only-iface)";
76cookBookTag[52] = "Reassigning object methods is not supported (arkts-no-method-reassignment)";
77cookBookTag[53] = "Only \"as T\" syntax is supported for type casts (arkts-as-casts)";
78cookBookTag[54] = "JSX expressions are not supported (arkts-no-jsx)";
79cookBookTag[55] = "Unary operators \"+\", \"-\" and \"~\" work only on numbers (arkts-no-polymorphic-unops)";
80cookBookTag[56] = "";
81cookBookTag[57] = "";
82cookBookTag[58] = "";
83cookBookTag[59] = "\"delete\" operator is not supported (arkts-no-delete)";
84cookBookTag[60] = "\"typeof\" operator is allowed only in expression contexts (arkts-no-type-query)";
85cookBookTag[61] = "";
86cookBookTag[62] = "";
87cookBookTag[63] = "";
88cookBookTag[64] = "";
89cookBookTag[65] = "\"instanceof\" operator is partially supported (arkts-instanceof-ref-types)";
90cookBookTag[66] = "\"in\" operator is not supported (arkts-no-in)";
91cookBookTag[67] = "";
92cookBookTag[68] = "";
93cookBookTag[69] = "Destructuring assignment is not supported (arkts-no-destruct-assignment)";
94cookBookTag[70] = "";
95cookBookTag[71] = "The comma operator \",\" is supported only in \"for\" loops (arkts-no-comma-outside-loops)";
96cookBookTag[72] = "";
97cookBookTag[73] = "";
98cookBookTag[74] = "Destructuring variable declarations are not supported (arkts-no-destruct-decls)";
99cookBookTag[75] = "";
100cookBookTag[76] = "";
101cookBookTag[77] = "";
102cookBookTag[78] = "";
103cookBookTag[79] = "Type annotation in catch clause is not supported (arkts-no-types-in-catch)";
104cookBookTag[80] = "\"for .. in\" is not supported (arkts-no-for-in)";
105cookBookTag[81] = "";
106cookBookTag[82] = "";
107cookBookTag[83] = "Mapped type expression is not supported (arkts-no-mapped-types)";
108cookBookTag[84] = "\"with\" statement is not supported (arkts-no-with)";
109cookBookTag[85] = "";
110cookBookTag[86] = "";
111cookBookTag[87] = "\"throw\" statements cannot accept values of arbitrary types (arkts-limited-throw)";
112cookBookTag[88] = "";
113cookBookTag[89] = "";
114cookBookTag[90] = "Function return type inference is limited (arkts-no-implicit-return-types)";
115cookBookTag[91] = "Destructuring parameter declarations are not supported (arkts-no-destruct-params)";
116cookBookTag[92] = "Nested functions are not supported (arkts-no-nested-funcs)";
117cookBookTag[93] = "Using \"this\" inside stand-alone functions is not supported (arkts-no-standalone-this)";
118cookBookTag[94] = "Generator functions are not supported (arkts-no-generators)";
119cookBookTag[95] = "";
120cookBookTag[96] = "Type guarding is supported with \"instanceof\" and \"as\" (arkts-no-is)";
121cookBookTag[97] = "";
122cookBookTag[98] = "";
123cookBookTag[99] = "It is possible to spread only arrays or classes derived from arrays into the rest parameter or array literals (arkts-no-spread)";
124cookBookTag[100] = "";
125cookBookTag[101] = "";
126cookBookTag[102] = "Interface can not extend interfaces with the same method (arkts-no-extend-same-prop)";
127cookBookTag[103] = "Declaration merging is not supported (arkts-no-decl-merging)";
128cookBookTag[104] = "Interfaces cannot extend classes (arkts-extends-only-class)";
129cookBookTag[105] = "";
130cookBookTag[106] = "Constructor function type is not supported (arkts-no-ctor-signatures-funcs)";
131cookBookTag[107] = "";
132cookBookTag[108] = "";
133cookBookTag[109] = "";
134cookBookTag[110] = "";
135cookBookTag[111] = "Enumeration members can be initialized only with compile time expressions of the same type (arkts-no-enum-mixed-types)";
136cookBookTag[112] = "";
137cookBookTag[113] = "\"enum\" declaration merging is not supported (arkts-no-enum-merging)";
138cookBookTag[114] = "Namespaces cannot be used as objects (arkts-no-ns-as-obj)";
139cookBookTag[115] = "";
140cookBookTag[116] = "Non-declaration statements in namespaces are not supported (single semicolons are considered as empty non-delcaration statements) (arkts-no-ns-statements)";
141cookBookTag[117] = "";
142cookBookTag[118] = "Special import type declarations are not supported (arkts-no-special-imports)";
143cookBookTag[119] = "Importing a module for side-effects only is not supported (arkts-no-side-effects-imports)";
144cookBookTag[120] = "\"import default as ...\" is not supported (arkts-no-import-default-as)";
145cookBookTag[121] = "\"require\" and \"import\" assignment are not supported (arkts-no-require)";
146cookBookTag[122] = "";
147cookBookTag[123] = "";
148cookBookTag[124] = "";
149cookBookTag[125] = "";
150cookBookTag[126] = "\"export = ...\" assignment is not supported (arkts-no-export-assignment)";
151cookBookTag[127] = "Special \"export type\" declarations are not supported (arkts-no-special-exports)";
152cookBookTag[128] = "Ambient module declaration is not supported (arkts-no-ambient-decls)";
153cookBookTag[129] = "Wildcards in module names are not supported (arkts-no-module-wildcards)";
154cookBookTag[130] = "Universal module definitions (UMD) are not supported (arkts-no-umd)";
155cookBookTag[131] = "";
156cookBookTag[132] = "\"new.target\" is not supported (arkts-no-new-target)";
157cookBookTag[133] = "";
158cookBookTag[134] = "Definite assignment assertions are not supported (arkts-no-definite-assignment)";
159cookBookTag[135] = "";
160cookBookTag[136] = "Prototype assignment is not supported (arkts-no-prototype-assignment)";
161cookBookTag[137] = "\"globalThis\" is not supported (arkts-no-globalthis)";
162cookBookTag[138] = "Some of utility types are not supported (arkts-no-utility-types)";
163cookBookTag[139] = "Declaring properties on functions is not supported (arkts-no-func-props)";
164cookBookTag[140] = "\"Function.apply\", \"Function.bind\", \"Function.call\" are not supported (arkts-no-func-apply-bind-call)";
165cookBookTag[141] = "";
166cookBookTag[142] = "\"as const\" assertions are not supported (arkts-no-as-const)";
167cookBookTag[143] = "Import assertions are not supported (arkts-no-import-assertions)";
168cookBookTag[144] = "Usage of standard library is restricted (arkts-limited-stdlib)";
169cookBookTag[145] = "Strict type checking is enforced (arkts-strict-typing)";
170cookBookTag[146] = "Switching off type checks with in-place comments is not allowed (arkts-strict-typing-required)";
171cookBookTag[147] = "No dependencies on TypeScript code are currently allowed (arkts-no-ts-deps)";
172cookBookTag[148] = "No decorators except ArkUI decorators are currently allowed (arkts-no-decorators-except-arkui)";
173cookBookTag[149] = "Classes cannot be used as objects (arkts-no-classes-as-obj)";
174cookBookTag[150] = "\"import\" statements after other statements are not allowed (arkts-no-misplaced-imports)";
175cookBookTag[151] = 'Usage of "ESObject" type is restricted (arkts-limited-esobj)';
176}
177}