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