typescript 0.0.4

TypeScript compiler and runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
#![warn(missing_docs)]

use std::hash::Hash;

/// TypeScript 语言配置
///
/// 支持 TypeScript 语法特性
#[derive(Debug, Clone, Default)]
pub struct TypeScriptLanguage {
    /// 支持的 TypeScript 特性
    pub features: std::collections::HashSet<TypeScriptFeature>,
}

impl TypeScriptLanguage {
    /// 创建一个新的 TypeScript 语言配置
    pub fn new() -> Self {
        Self::default()
    }

    /// 创建标准的 TypeScript 语言配置,支持所有常见的 TypeScript 特性
    pub fn standard() -> Self {
        let mut language = Self::new();

        // 基本类型系统特性
        language.add_feature(TypeScriptFeature::TypeAnnotations);
        language.add_feature(TypeScriptFeature::Interfaces);
        language.add_feature(TypeScriptFeature::Generics);
        language.add_feature(TypeScriptFeature::Enums);
        language.add_feature(TypeScriptFeature::TypeAliases);
        language.add_feature(TypeScriptFeature::UnionTypes);
        language.add_feature(TypeScriptFeature::IntersectionTypes);
        language.add_feature(TypeScriptFeature::LiteralTypes);
        language.add_feature(TypeScriptFeature::TupleTypes);
        language.add_feature(TypeScriptFeature::FunctionTypes);
        language.add_feature(TypeScriptFeature::ObjectTypes);
        language.add_feature(TypeScriptFeature::ArrayTypes);
        language.add_feature(TypeScriptFeature::IndexedAccessTypes);
        language.add_feature(TypeScriptFeature::KeyofTypes);
        language.add_feature(TypeScriptFeature::TypeofTypes);
        language.add_feature(TypeScriptFeature::InferredTypes);
        language.add_feature(TypeScriptFeature::RecursiveTypes);
        language.add_feature(TypeScriptFeature::GenericConstraints);
        language.add_feature(TypeScriptFeature::TypeParameterDefaults);
        language.add_feature(TypeScriptFeature::RestTypeParameters);
        language.add_feature(TypeScriptFeature::OptionalTypeParameters);
        language.add_feature(TypeScriptFeature::OverloadedFunctionTypes);
        language.add_feature(TypeScriptFeature::ConstructorTypes);

        // 类相关特性
        language.add_feature(TypeScriptFeature::AccessModifiers);
        language.add_feature(TypeScriptFeature::StaticMembers);
        language.add_feature(TypeScriptFeature::AbstractClasses);
        language.add_feature(TypeScriptFeature::Inheritance);
        language.add_feature(TypeScriptFeature::InterfaceImplementation);

        // 模块系统
        language.add_feature(TypeScriptFeature::ModuleSystem);
        language.add_feature(TypeScriptFeature::EsModules);
        language.add_feature(TypeScriptFeature::CommonJsModules);
        language.add_feature(TypeScriptFeature::ExternalModuleDeclarations);

        // 语法特性
        language.add_feature(TypeScriptFeature::AsyncAwait);
        language.add_feature(TypeScriptFeature::OptionalChaining);
        language.add_feature(TypeScriptFeature::NullishCoalescing);
        language.add_feature(TypeScriptFeature::TemplateLiteralTypes);
        language.add_feature(TypeScriptFeature::MappedTypes);
        language.add_feature(TypeScriptFeature::ConditionalTypes);
        language.add_feature(TypeScriptFeature::Namespaces);
        language.add_feature(TypeScriptFeature::Decorators);

        // 严格模式选项
        language.add_feature(TypeScriptFeature::StrictMode);
        language.add_feature(TypeScriptFeature::StrictNullChecks);
        language.add_feature(TypeScriptFeature::StrictFunctionTypes);
        language.add_feature(TypeScriptFeature::StrictBindCallApply);
        language.add_feature(TypeScriptFeature::StrictPropertyInitialization);
        language.add_feature(TypeScriptFeature::NoImplicitAny);
        language.add_feature(TypeScriptFeature::NoImplicitThis);
        language.add_feature(TypeScriptFeature::AlwaysStrict);

        // 代码质量选项
        language.add_feature(TypeScriptFeature::NoUnusedVariables);
        language.add_feature(TypeScriptFeature::NoUnusedParameters);
        language.add_feature(TypeScriptFeature::NoEmptyFunctions);
        language.add_feature(TypeScriptFeature::NoEmptyInterfaces);
        language.add_feature(TypeScriptFeature::NoDuplicateImports);
        language.add_feature(TypeScriptFeature::NoDuplicateClassMembers);
        language.add_feature(TypeScriptFeature::NoDuplicateParameters);
        language.add_feature(TypeScriptFeature::NoDuplicateCaseLabels);
        language.add_feature(TypeScriptFeature::NoUnreachableCode);
        language.add_feature(TypeScriptFeature::NoImplicitReturns);

        // 其他特性
        language.add_feature(TypeScriptFeature::TripleSlashDirectives);
        language.add_feature(TypeScriptFeature::JsDocComments);

        language
    }

    /// 添加一个 TypeScript 特性
    pub fn add_feature(&mut self, feature: TypeScriptFeature) {
        self.features.insert(feature);
    }

    /// 检查是否支持某个 TypeScript 特性
    pub fn supports(&self, feature: TypeScriptFeature) -> bool {
        self.features.contains(&feature)
    }
}

/// TypeScript 语法特性
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub enum TypeScriptFeature {
    /// 类型注解
    TypeAnnotations,
    /// 接口定义
    Interfaces,
    /// 泛型
    Generics,
    /// 枚举
    Enums,
    /// 命名空间
    Namespaces,
    /// 装饰器
    Decorators,
    /// 异步/等待
    AsyncAwait,
    /// 可选链
    OptionalChaining,
    /// 空值合并
    NullishCoalescing,
    /// 模板字面量类型
    TemplateLiteralTypes,
    /// 映射类型
    MappedTypes,
    /// 条件类型
    ConditionalTypes,
    /// 类型别名
    TypeAliases,
    /// 联合类型
    UnionTypes,
    /// 交叉类型
    IntersectionTypes,
    /// 字面量类型
    LiteralTypes,
    /// 元组类型
    TupleTypes,
    /// 函数类型
    FunctionTypes,
    /// 对象类型
    ObjectTypes,
    /// 数组类型
    ArrayTypes,
    /// 索引访问类型
    IndexedAccessTypes,
    /// 键值类型
    KeyofTypes,
    /// typeof 类型
    TypeofTypes,
    /// 推断类型
    InferredTypes,
    /// 递归类型
    RecursiveTypes,
    /// 泛型约束
    GenericConstraints,
    /// 类型参数默认值
    TypeParameterDefaults,
    /// 剩余类型参数
    RestTypeParameters,
    /// 可选类型参数
    OptionalTypeParameters,
    /// 重载函数类型
    OverloadedFunctionTypes,
    /// 构造函数类型
    ConstructorTypes,
    /// 访问修饰符
    AccessModifiers,
    /// 静态成员
    StaticMembers,
    /// 抽象类和方法
    AbstractClasses,
    /// 继承
    Inheritance,
    /// 实现接口
    InterfaceImplementation,
    /// 模块系统
    ModuleSystem,
    /// ES 模块
    EsModules,
    /// CommonJS 模块
    CommonJsModules,
    /// 外部模块声明
    ExternalModuleDeclarations,
    /// 三斜杠指令
    TripleSlashDirectives,
    /// JSDoc 注释
    JsDocComments,
    /// 严格模式
    StrictMode,
    /// 严格空检查
    StrictNullChecks,
    /// 严格函数类型
    StrictFunctionTypes,
    /// 严格绑定调用
    StrictBindCallApply,
    /// 严格属性初始化
    StrictPropertyInitialization,
    /// 无隐式 any
    NoImplicitAny,
    /// 无隐式 this
    NoImplicitThis,
    /// 总是严格模式
    AlwaysStrict,
    /// 禁止未使用的变量
    NoUnusedVariables,
    /// 禁止未使用的参数
    NoUnusedParameters,
    /// 禁止空函数
    NoEmptyFunctions,
    /// 禁止空接口
    NoEmptyInterfaces,
    /// 禁止重复的导入
    NoDuplicateImports,
    /// 禁止重复的类成员
    NoDuplicateClassMembers,
    /// 禁止重复的函数参数
    NoDuplicateParameters,
    /// 禁止重复的 case 标签
    NoDuplicateCaseLabels,
    /// 禁止不可达代码
    NoUnreachableCode,
    /// 禁止未返回值的函数
    NoImplicitReturns,
    /// 禁止赋值表达式中的类型转换
    NoImplicitCoercion,
    /// 禁止使用 eval
    NoEval,
    /// 禁止使用 with
    NoWith,
    /// 禁止使用 arguments
    NoArguments,
    /// 禁止使用 delete
    NoDelete,
    /// 禁止使用 void
    NoVoid,
    /// 禁止使用 undefined
    NoUndefined,
    /// 禁止使用 null
    NoNull,
    /// 禁止使用 any
    NoAny,
    /// 禁止使用 never
    NoNever,
    /// 禁止使用 object
    NoObject,
    /// 禁止使用 unknown
    NoUnknown,
    /// 禁止使用 symbol
    NoSymbol,
    /// 禁止使用 bigint
    NoBigInt,
    /// 禁止使用 number
    NoNumber,
    /// 禁止使用 string
    NoString,
    /// 禁止使用 boolean
    NoBoolean,
    /// 禁止使用 array
    NoArray,
    /// 禁止使用 tuple
    NoTuple,
    /// 禁止使用 enum
    NoEnum,
    /// 禁止使用 interface
    NoInterface,
    /// 禁止使用 type
    NoType,
    /// 禁止使用 class
    NoClass,
    /// 禁止使用 function
    NoFunction,
    /// 禁止使用 const
    NoConst,
    /// 禁止使用 let
    NoLet,
    /// 禁止使用 var
    NoVar,
    /// 禁止使用 async
    NoAsync,
    /// 禁止使用 await
    NoAwait,
    /// 禁止使用 yield
    NoYield,
    /// 禁止使用 return
    NoReturn,
    /// 禁止使用 throw
    NoThrow,
    /// 禁止使用 try
    NoTry,
    /// 禁止使用 catch
    NoCatch,
    /// 禁止使用 finally
    NoFinally,
    /// 禁止使用 if
    NoIf,
    /// 禁止使用 else
    NoElse,
    /// 禁止使用 switch
    NoSwitch,
    /// 禁止使用 case
    NoCase,
    /// 禁止使用 default
    NoDefault,
    /// 禁止使用 for
    NoFor,
    /// 禁止使用 while
    NoWhile,
    /// 禁止使用 do
    NoDo,
    /// 禁止使用 break
    NoBreak,
    /// 禁止使用 continue
    NoContinue,
    /// 禁止使用 with
    NoWithStatement,
    /// 禁止使用 debugger
    NoDebugger,
    /// 禁止使用 import
    NoImport,
    /// 禁止使用 export
    NoExport,
    /// 禁止使用 from
    NoFrom,
    /// 禁止使用 as
    NoAs,
    /// 禁止使用 in
    NoIn,
    /// 禁止使用 instanceof
    NoInstanceOf,
    /// 禁止使用 new
    NoNew,
    /// 禁止使用 this
    NoThis,
    /// 禁止使用 super
    NoSuper,
    /// 禁止使用 static
    NoStatic,
    /// 禁止使用 public
    NoPublic,
    /// 禁止使用 private
    NoPrivate,
    /// 禁止使用 protected
    NoProtected,
    /// 禁止使用 abstract
    NoAbstract,
    /// 禁止使用 readonly
    NoReadonly,
    /// 禁止使用 optional
    NoOptional,
    /// 禁止使用 rest
    NoRest,
    /// 禁止使用 spread
    NoSpread,
    /// 禁止使用 destructuring
    NoDestructuring,
    /// 禁止使用 arrow functions
    NoArrowFunctions,
    /// 禁止使用 generator functions
    NoGeneratorFunctions,
    /// 禁止使用 async functions
    NoAsyncFunctions,
    /// 禁止使用 method syntax
    NoMethodSyntax,
    /// 禁止使用 computed properties
    NoComputedProperties,
    /// 禁止使用 shorthand properties
    NoShorthandProperties,
    /// 禁止使用 rest properties
    NoRestProperties,
    /// 禁止使用 spread properties
    NoSpreadProperties,
    /// 禁止使用 template literals
    NoTemplateLiterals,
    /// 禁止使用 regex literals
    NoRegexLiterals,
    /// 禁止使用 numeric literals
    NoNumericLiterals,
    /// 禁止使用 string literals
    NoStringLiterals,
    /// 禁止使用 boolean literals
    NoBooleanLiterals,
    /// 禁止使用 null literals
    NoNullLiterals,
    /// 禁止使用 undefined literals
    NoUndefinedLiterals,
    /// 禁止使用 bigint literals
    NoBigIntLiterals,
    /// 禁止使用 symbol literals
    NoSymbolLiterals,
    /// 禁止使用 object literals
    NoObjectLiterals,
    /// 禁止使用 array literals
    NoArrayLiterals,
    /// 禁止使用 function literals
    NoFunctionLiterals,
    /// 禁止使用 class literals
    NoClassLiterals,
    /// 禁止使用 namespace literals
    NoNamespaceLiterals,
    /// 禁止使用 module literals
    NoModuleLiterals,
    /// 禁止使用 enum literals
    NoEnumLiterals,
    /// 禁止使用 type literals
    NoTypeLiterals,
    /// 禁止使用 interface literals
    NoInterfaceLiterals,
    /// 禁止使用 union literals
    NoUnionLiterals,
    /// 禁止使用 intersection literals
    NoIntersectionLiterals,
    /// 禁止使用 literal types
    NoLiteralTypes,
    /// 禁止使用 tuple types
    NoTupleTypes,
    /// 禁止使用 function types
    NoFunctionTypes,
    /// 禁止使用 object types
    NoObjectTypes,
    /// 禁止使用 array types
    NoArrayTypes,
    /// 禁止使用 indexed access types
    NoIndexedAccessTypes,
    /// 禁止使用 keyof types
    NoKeyofTypes,
    /// 禁止使用 typeof types
    NoTypeofTypes,
    /// 禁止使用 inferred types
    NoInferredTypes,
    /// 禁止使用 recursive types
    NoRecursiveTypes,
    /// 禁止使用 generic constraints
    NoGenericConstraints,
    /// 禁止使用 type parameter defaults
    NoTypeParameterDefaults,
    /// 禁止使用 rest type parameters
    NoRestTypeParameters,
    /// 禁止使用 optional type parameters
    NoOptionalTypeParameters,
    /// 禁止使用 overloaded function types
    NoOverloadedFunctionTypes,
    /// 禁止使用 constructor types
    NoConstructorTypes,
    /// 禁止使用 access modifiers
    NoAccessModifiers,
    /// 禁止使用 static members
    NoStaticMembers,
    /// 禁止使用 abstract classes and methods
    NoAbstractClasses,
    /// 禁止使用 inheritance
    NoInheritance,
    /// 禁止使用 interface implementation
    NoInterfaceImplementation,
    /// 禁止使用 module system
    NoModuleSystem,
    /// 禁止使用 ES modules
    NoEsModules,
    /// 禁止使用 CommonJS modules
    NoCommonJsModules,
    /// 禁止使用 external module declarations
    NoExternalModuleDeclarations,
    /// 禁止使用 triple-slash directives
    NoTripleSlashDirectives,
    /// 禁止使用 JSDoc comments
    NoJsDocComments,
    /// 禁止使用 strict mode
    NoStrictMode,
    /// 禁止使用 strict null checks
    NoStrictNullChecks,
    /// 禁止使用 strict function types
    NoStrictFunctionTypes,
    /// 禁止使用 strict bind call apply
    NoStrictBindCallApply,
    /// 禁止使用 strict property initialization
    NoStrictPropertyInitialization,
    /// 禁止使用 no implicit any
    NoNoImplicitAny,
    /// 禁止使用 no implicit this
    NoNoImplicitThis,
    /// 禁止使用 always strict
    NoAlwaysStrict,
    /// 禁止使用 no unused variables
    NoNoUnusedVariables,
    /// 禁止使用 no unused parameters
    NoNoUnusedParameters,
    /// 禁止使用 no empty functions
    NoNoEmptyFunctions,
    /// 禁止使用 no empty interfaces
    NoNoEmptyInterfaces,
    /// 禁止使用 no duplicate imports
    NoNoDuplicateImports,
    /// 禁止使用 no duplicate class members
    NoNoDuplicateClassMembers,
    /// 禁止使用 no duplicate parameters
    NoNoDuplicateParameters,
    /// 禁止使用 no duplicate case labels
    NoNoDuplicateCaseLabels,
    /// 禁止使用 no unreachable code
    NoNoUnreachableCode,
    /// 禁止使用 no implicit returns
    NoNoImplicitReturns,
    /// 禁止使用 no implicit coercion
    NoNoImplicitCoercion,
    /// 禁止使用 no eval
    NoNoEval,
    /// 禁止使用 no with
    NoNoWith,
    /// 禁止使用 no arguments
    NoNoArguments,
    /// 禁止使用 no delete
    NoNoDelete,
    /// 禁止使用 no void
    NoNoVoid,
    /// 禁止使用 no undefined
    NoNoUndefined,
    /// 禁止使用 no null
    NoNoNull,
    /// 禁止使用 no any
    NoNoAny,
    /// 禁止使用 no never
    NoNoNever,
    /// 禁止使用 no object
    NoNoObject,
    /// 禁止使用 no unknown
    NoNoUnknown,
    /// 禁止使用 no symbol
    NoNoSymbol,
    /// 禁止使用 no bigint
    NoNoBigInt,
    /// 禁止使用 no number
    NoNoNumber,
    /// 禁止使用 no string
    NoNoString,
    /// 禁止使用 no boolean
    NoNoBoolean,
    /// 禁止使用 no array
    NoNoArray,
    /// 禁止使用 no tuple
    NoNoTuple,
    /// 禁止使用 no enum
    NoNoEnum,
    /// 禁止使用 no interface
    NoNoInterface,
    /// 禁止使用 no type
    NoNoType,
    /// 禁止使用 no class
    NoNoClass,
    /// 禁止使用 no function
    NoNoFunction,
    /// 禁止使用 no const
    NoNoConst,
    /// 禁止使用 no let
    NoNoLet,
    /// 禁止使用 no var
    NoNoVar,
    /// 禁止使用 no async
    NoNoAsync,
    /// 禁止使用 no await
    NoNoAwait,
    /// 禁止使用 no yield
    NoNoYield,
    /// 禁止使用 no return
    NoNoReturn,
    /// 禁止使用 no throw
    NoNoThrow,
    /// 禁止使用 no try
    NoNoTry,
    /// 禁止使用 no catch
    NoNoCatch,
    /// 禁止使用 no finally
    NoNoFinally,
    /// 禁止使用 no if
    NoNoIf,
    /// 禁止使用 no else
    NoNoElse,
    /// 禁止使用 no switch
    NoNoSwitch,
    /// 禁止使用 no case
    NoNoCase,
    /// 禁止使用 no default
    NoNoDefault,
    /// 禁止使用 no for
    NoNoFor,
    /// 禁止使用 no while
    NoNoWhile,
    /// 禁止使用 no do
    NoNoDo,
    /// 禁止使用 no break
    NoNoBreak,
    /// 禁止使用 no continue
    NoNoContinue,
    /// 禁止使用 no with statement
    NoNoWithStatement,
    /// 禁止使用 no debugger
    NoNoDebugger,
    /// 禁止使用 no import
    NoNoImport,
    /// 禁止使用 no export
    NoNoExport,
    /// 禁止使用 no from
    NoNoFrom,
    /// 禁止使用 no as
    NoNoAs,
    /// 禁止使用 no in
    NoNoIn,
    /// 禁止使用 no instanceof
    NoNoInstanceOf,
    /// 禁止使用 no new
    NoNoNew,
    /// 禁止使用 no this
    NoNoThis,
    /// 禁止使用 no super
    NoNoSuper,
    /// 禁止使用 no static
    NoNoStatic,
    /// 禁止使用 no public
    NoNoPublic,
    /// 禁止使用 no private
    NoNoPrivate,
    /// 禁止使用 no protected
    NoNoProtected,
    /// 禁止使用 no abstract
    NoNoAbstract,
    /// 禁止使用 no readonly
    NoNoReadonly,
    /// 禁止使用 no optional
    NoNoOptional,
    /// 禁止使用 no rest
    NoNoRest,
    /// 禁止使用 no spread
    NoNoSpread,
    /// 禁止使用 no destructuring
    NoNoDestructuring,
    /// 禁止使用 no arrow functions
    NoNoArrowFunctions,
    /// 禁止使用 no generator functions
    NoNoGeneratorFunctions,
    /// 禁止使用 no async functions
    NoNoAsyncFunctions,
    /// 禁止使用 no method syntax
    NoNoMethodSyntax,
    /// 禁止使用 no computed properties
    NoNoComputedProperties,
    /// 禁止使用 no shorthand properties
    NoNoShorthandProperties,
    /// 禁止使用 no rest properties
    NoNoRestProperties,
    /// 禁止使用 no spread properties
    NoNoSpreadProperties,
    /// 禁止使用 no template literals
    NoNoTemplateLiterals,
    /// 禁止使用 no regex literals
    NoNoRegexLiterals,
    /// 禁止使用 no numeric literals
    NoNoNumericLiterals,
    /// 禁止使用 no string literals
    NoNoStringLiterals,
    /// 禁止使用 no boolean literals
    NoNoBooleanLiterals,
    /// 禁止使用 no null literals
    NoNoNullLiterals,
    /// 禁止使用 no undefined literals
    NoNoUndefinedLiterals,
    /// 禁止使用 no bigint literals
    NoNoBigIntLiterals,
    /// 禁止使用 no symbol literals
    NoNoSymbolLiterals,
    /// 禁止使用 no object literals
    NoNoObjectLiterals,
    /// 禁止使用 no array literals
    NoNoArrayLiterals,
    /// 禁止使用 no function literals
    NoNoFunctionLiterals,
    /// 禁止使用 no class literals
    NoNoClassLiterals,
    /// 禁止使用 no namespace literals
    NoNoNamespaceLiterals,
    /// 禁止使用 no module literals
    NoNoModuleLiterals,
    /// 禁止使用 no enum literals
    NoNoEnumLiterals,
    /// 禁止使用 no type literals
    NoNoTypeLiterals,
    /// 禁止使用 no interface literals
    NoNoInterfaceLiterals,
    /// 禁止使用 no union literals
    NoNoUnionLiterals,
    /// 禁止使用 no intersection literals
    NoNoIntersectionLiterals,
    /// 禁止使用 no literal types
    NoNoLiteralTypes,
    /// 禁止使用 no tuple types
    NoNoTupleTypes,
    /// 禁止使用 no function types
    NoNoFunctionTypes,
    /// 禁止使用 no object types
    NoNoObjectTypes,
    /// 禁止使用 no array types
    NoNoArrayTypes,
    /// 禁止使用 no indexed access types
    NoNoIndexedAccessTypes,
    /// 禁止使用 no keyof types
    NoNoKeyofTypes,
    /// 禁止使用 no typeof types
    NoNoTypeofTypes,
    /// 禁止使用 no inferred types
    NoNoInferredTypes,
    /// 禁止使用 no recursive types
    NoNoRecursiveTypes,
    /// 禁止使用 no generic constraints
    NoNoGenericConstraints,
    /// 禁止使用 no type parameter defaults
    NoNoTypeParameterDefaults,
    /// 禁止使用 no rest type parameters
    NoNoRestTypeParameters,
    /// 禁止使用 no optional type parameters
    NoNoOptionalTypeParameters,
    /// 禁止使用 no overloaded function types
    NoNoOverloadedFunctionTypes,
    /// 禁止使用 no constructor types
    NoNoConstructorTypes,
    /// 禁止使用 no access modifiers
    NoNoAccessModifiers,
    /// 禁止使用 no static members
    NoNoStaticMembers,
    /// 禁止使用 no abstract classes and methods
    NoNoAbstractClasses,
    /// 禁止使用 no inheritance
    NoNoInheritance,
    /// 禁止使用 no interface implementation
    NoNoInterfaceImplementation,
    /// 禁止使用 no module system
    NoNoModuleSystem,
    /// 禁止使用 no ES modules
    NoNoEsModules,
    /// 禁止使用 no CommonJS modules
    NoNoCommonJsModules,
    /// 禁止使用 no external module declarations
    NoNoExternalModuleDeclarations,
    /// 禁止使用 no triple-slash directives
    NoNoTripleSlashDirectives,
    /// 禁止使用 no JSDoc comments
    NoNoJsDocComments,
}