@alexlit/config-eslint 41.0.2 → 41.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1318 +0,0 @@
1
- const ALLOW_BOOLEAN_PROPERTY_LIST = [
2
- // html attributes
3
- 'allowfullscreen',
4
- 'allowpaymentrequest',
5
- 'async',
6
- 'autofocus',
7
- 'autoplay',
8
- 'checked',
9
- 'controls',
10
- 'default',
11
- 'defer',
12
- 'disabled',
13
- 'formnovalidate',
14
- 'hidden',
15
- 'ismap',
16
- 'itemscope',
17
- 'multiple',
18
- 'muted',
19
- 'nomodule',
20
- 'novalidate',
21
- 'open',
22
- 'playsinline',
23
- 'readonly',
24
- 'required',
25
- 'reversed',
26
- 'selected',
27
- 'truespeed',
28
-
29
- // vuex store module registration
30
- 'namespaced',
31
-
32
- // other
33
- 'enabled',
34
- 'invalid',
35
- 'valid',
36
- 'value',
37
- ];
38
-
39
- const ENGLISH_VERBS = [
40
- 'abash',
41
- 'abate',
42
- 'abide',
43
- 'absorb',
44
- 'accept',
45
- 'accompany',
46
- 'ache',
47
- 'achieve',
48
- 'acquire',
49
- 'act',
50
- 'add',
51
- 'address',
52
- 'adjust',
53
- 'admire',
54
- 'admit',
55
- 'advise',
56
- 'afford',
57
- 'agree',
58
- 'alight',
59
- 'allow',
60
- 'animate',
61
- 'announce',
62
- 'answer',
63
- 'apologize',
64
- 'appear',
65
- 'applaud',
66
- 'apply',
67
- 'approach',
68
- 'approve',
69
- 'argue',
70
- 'arise',
71
- 'arrange',
72
- 'arrest',
73
- 'ask',
74
- 'assert',
75
- 'assort',
76
- 'astonish',
77
- 'attack',
78
- 'attend',
79
- 'attract',
80
- 'audit',
81
- 'avoid',
82
- 'awake',
83
- 'bang',
84
- 'banish',
85
- 'bash',
86
- 'bat',
87
- 'be',
88
- 'bear',
89
- 'bear',
90
- 'beat',
91
- 'beautify',
92
- 'become',
93
- 'befall',
94
- 'beg',
95
- 'begin',
96
- 'behave',
97
- 'behold',
98
- 'believe',
99
- 'belong',
100
- 'bend',
101
- 'bereave',
102
- 'beseech',
103
- 'bet',
104
- 'betray',
105
- 'bid',
106
- 'bid',
107
- 'bind',
108
- 'bite',
109
- 'bleed',
110
- 'bless',
111
- 'block',
112
- 'blossom',
113
- 'blow',
114
- 'blur',
115
- 'blush',
116
- 'board',
117
- 'boast',
118
- 'boil',
119
- 'bow',
120
- 'box',
121
- 'bray',
122
- 'break',
123
- 'breathe',
124
- 'breed',
125
- 'bring',
126
- 'broadcast',
127
- 'brush',
128
- 'build',
129
- 'burn',
130
- 'burst',
131
- 'bury',
132
- 'bust',
133
- 'buy',
134
- 'buzz',
135
- 'calculate',
136
- 'call',
137
- 'canvass',
138
- 'capture',
139
- 'caress',
140
- 'carry',
141
- 'carve',
142
- 'cash',
143
- 'cast',
144
- 'catch',
145
- 'cause',
146
- 'cease',
147
- 'celebrate',
148
- 'challenge',
149
- 'change',
150
- 'charge',
151
- 'chase',
152
- 'chat',
153
- 'check',
154
- 'cheer',
155
- 'chew',
156
- 'chide',
157
- 'chip',
158
- 'choke',
159
- 'choose',
160
- 'chain',
161
- 'classify',
162
- 'clean',
163
- 'clear',
164
- 'cleave',
165
- 'click',
166
- 'climb',
167
- 'cling',
168
- 'close',
169
- 'clothe',
170
- 'clutch',
171
- 'collapse',
172
- 'collect',
173
- 'colour',
174
- 'come',
175
- 'comment',
176
- 'compare',
177
- 'compel',
178
- 'compete',
179
- 'complain',
180
- 'complete',
181
- 'compose',
182
- 'conclude',
183
- 'conduct',
184
- 'confess',
185
- 'configure',
186
- 'confine',
187
- 'confiscate',
188
- 'confuse',
189
- 'congratulate',
190
- 'connect',
191
- 'connote',
192
- 'conquer',
193
- 'consecrate',
194
- 'consent',
195
- 'conserve',
196
- 'consider',
197
- 'consign',
198
- 'consist',
199
- 'console',
200
- 'consort',
201
- 'conspire',
202
- 'constitute',
203
- 'constrain',
204
- 'construct',
205
- 'construe',
206
- 'consult',
207
- 'contain',
208
- 'contemn',
209
- 'contend',
210
- 'contest',
211
- 'continue',
212
- 'contract',
213
- 'contradict',
214
- 'contrast',
215
- 'contribute',
216
- 'contrive',
217
- 'control',
218
- 'convene',
219
- 'converge',
220
- 'converse',
221
- 'convert',
222
- 'convey',
223
- 'convict',
224
- 'convince',
225
- 'coo',
226
- 'cook',
227
- 'cool',
228
- 'cooperate',
229
- 'cope',
230
- 'copy',
231
- 'correct',
232
- 'correspond',
233
- 'corrode',
234
- 'corrupt',
235
- 'cost',
236
- 'cough',
237
- 'counsel',
238
- 'count',
239
- 'course',
240
- 'cover',
241
- 'cower',
242
- 'crack',
243
- 'crackle',
244
- 'crash',
245
- 'crave',
246
- 'create',
247
- 'creep',
248
- 'crib',
249
- 'cross',
250
- 'crowd',
251
- 'crush',
252
- 'cry',
253
- 'curb',
254
- 'cure',
255
- 'curve',
256
- 'cut',
257
- 'cycle',
258
- 'damage',
259
- 'damp',
260
- 'dance',
261
- 'dare',
262
- 'dash',
263
- 'dazzle',
264
- 'deal',
265
- 'decay',
266
- 'decide',
267
- 'declare',
268
- 'decorate',
269
- 'decrease',
270
- 'dedicate',
271
- 'delay',
272
- 'delete',
273
- 'deny',
274
- 'depend',
275
- 'deprive',
276
- 'derive',
277
- 'describe',
278
- 'desire',
279
- 'destroy',
280
- 'detach',
281
- 'detect',
282
- 'determine',
283
- 'develop',
284
- 'die',
285
- 'differ',
286
- 'dig',
287
- 'digest',
288
- 'dim',
289
- 'diminish',
290
- 'dine',
291
- 'dip',
292
- 'direct',
293
- 'disappear',
294
- 'discover',
295
- 'discuss',
296
- 'disobey',
297
- 'display',
298
- 'dispose',
299
- 'distribute',
300
- 'disturb',
301
- 'disuse',
302
- 'dive',
303
- 'divide',
304
- 'do',
305
- 'donate',
306
- 'download',
307
- 'drag',
308
- 'draw',
309
- 'dream',
310
- 'dress',
311
- 'drill',
312
- 'drink',
313
- 'drive',
314
- 'drop',
315
- 'dry',
316
- 'dump',
317
- 'dwell',
318
- 'dye',
319
- 'earn',
320
- 'eat',
321
- 'educate',
322
- 'empower',
323
- 'empty',
324
- 'encircle',
325
- 'encourage',
326
- 'encroach',
327
- 'endanger',
328
- 'endorse',
329
- 'endure',
330
- 'engrave',
331
- 'enjoy',
332
- 'enlarge',
333
- 'enlighten',
334
- 'enter',
335
- 'envy',
336
- 'erase',
337
- 'escape',
338
- 'evaporate',
339
- 'exchange',
340
- 'exclaim',
341
- 'exclude',
342
- 'execute',
343
- 'exist',
344
- 'expand',
345
- 'expect',
346
- 'explain',
347
- 'explicit',
348
- 'explore',
349
- 'express',
350
- 'extend',
351
- 'eye',
352
- 'face',
353
- 'fail',
354
- 'faint',
355
- 'fall',
356
- 'fan',
357
- 'fancy',
358
- 'favour',
359
- 'fax',
360
- 'feed',
361
- 'feel',
362
- 'ferry',
363
- 'fetch',
364
- 'fight',
365
- 'fill',
366
- 'find',
367
- 'finish',
368
- 'fish',
369
- 'fit',
370
- 'fix',
371
- 'fizz',
372
- 'flap',
373
- 'flash',
374
- 'flee',
375
- 'fling',
376
- 'float',
377
- 'flop',
378
- 'fly',
379
- 'focus',
380
- 'fold',
381
- 'follow',
382
- 'forbid',
383
- 'force',
384
- 'forecast',
385
- 'foretell',
386
- 'forget',
387
- 'forgive',
388
- 'forlese',
389
- 'form',
390
- 'forsake',
391
- 'found',
392
- 'frame',
393
- 'free',
394
- 'freeze',
395
- 'frighten',
396
- 'fry',
397
- 'fulfil',
398
- 'gag',
399
- 'gain',
400
- 'gainsay',
401
- 'gash',
402
- 'gaze',
403
- 'get',
404
- 'give',
405
- 'glance',
406
- 'glitter',
407
- 'glow',
408
- 'go',
409
- 'google',
410
- 'govern',
411
- 'grab',
412
- 'grade',
413
- 'grant',
414
- 'greet',
415
- 'grind',
416
- 'grip',
417
- 'grow',
418
- 'guard',
419
- 'guess',
420
- 'guide',
421
- 'handle',
422
- 'hang',
423
- 'happen',
424
- 'harm',
425
- 'hatch',
426
- 'hate',
427
- 'have',
428
- 'heal',
429
- 'hear',
430
- 'heave',
431
- 'help',
432
- 'hew',
433
- 'hide',
434
- 'hinder',
435
- 'hiss',
436
- 'hit',
437
- 'hoax',
438
- 'hold',
439
- 'hop',
440
- 'hope',
441
- 'horrify',
442
- 'hug',
443
- 'hum',
444
- 'humiliate',
445
- 'hunt',
446
- 'hurl',
447
- 'hurry',
448
- 'hurt',
449
- 'hush',
450
- 'hustle',
451
- 'hypnotize',
452
- 'idealize',
453
- 'identify',
454
- 'idolize',
455
- 'ignite',
456
- 'ignore',
457
- 'illtreat',
458
- 'illuminate',
459
- 'illumine',
460
- 'illustrate',
461
- 'imagine',
462
- 'imbibe',
463
- 'imitate',
464
- 'immerse',
465
- 'immolate',
466
- 'immure',
467
- 'impair',
468
- 'impart',
469
- 'impeach',
470
- 'impede',
471
- 'impel',
472
- 'impend',
473
- 'imperil',
474
- 'impinge',
475
- 'implant',
476
- 'implicate',
477
- 'implode',
478
- 'implore',
479
- 'imply',
480
- 'import',
481
- 'impose',
482
- 'impress',
483
- 'imprint',
484
- 'imprison',
485
- 'improve',
486
- 'inaugurate',
487
- 'incise',
488
- 'include',
489
- 'increase',
490
- 'inculcate',
491
- 'indent',
492
- 'indicate',
493
- 'induce',
494
- 'indulge',
495
- 'infect',
496
- 'infest',
497
- 'inflame',
498
- 'inflate',
499
- 'inflect',
500
- 'inform',
501
- 'infringe',
502
- 'infuse',
503
- 'ingest',
504
- 'inhabit',
505
- 'inhale',
506
- 'inherit',
507
- 'initiate',
508
- 'inject',
509
- 'injure',
510
- 'inlay',
511
- 'innovate',
512
- 'input',
513
- 'inquire',
514
- 'inscribe',
515
- 'insert',
516
- 'inspect',
517
- 'inspire',
518
- 'install',
519
- 'insult',
520
- 'insure',
521
- 'integrate',
522
- 'introduce',
523
- 'invent',
524
- 'invite',
525
- 'join',
526
- 'jump',
527
- 'justify',
528
- 'keep',
529
- 'kick',
530
- 'kid',
531
- 'kill',
532
- 'kiss',
533
- 'kneel',
534
- 'knit',
535
- 'knock',
536
- 'know',
537
- 'lade',
538
- 'land',
539
- 'last',
540
- 'latch',
541
- 'laugh',
542
- 'lay',
543
- 'lead',
544
- 'leak',
545
- 'lean',
546
- 'leap',
547
- 'learn',
548
- 'leave',
549
- 'leer',
550
- 'lend',
551
- 'let',
552
- 'lick',
553
- 'lie',
554
- 'lie',
555
- 'lift',
556
- 'light',
557
- 'like',
558
- 'limp',
559
- 'listen',
560
- 'live',
561
- 'look',
562
- 'lose',
563
- 'love',
564
- 'magnify',
565
- 'maintain',
566
- 'make',
567
- 'manage',
568
- 'march',
569
- 'mark',
570
- 'marry',
571
- 'mash',
572
- 'match',
573
- 'matter',
574
- 'mean',
575
- 'measure',
576
- 'meet',
577
- 'melt',
578
- 'merge',
579
- 'mew',
580
- 'migrate',
581
- 'milk',
582
- 'mind',
583
- 'mislead',
584
- 'miss',
585
- 'mistake',
586
- 'misuse',
587
- 'mix',
588
- 'moan',
589
- 'modify',
590
- 'moo',
591
- 'motivate',
592
- 'mould',
593
- 'mount',
594
- 'move',
595
- 'mow',
596
- 'multiply',
597
- 'murmur',
598
- 'mutate',
599
- 'nail',
600
- 'nap',
601
- 'need',
602
- 'neglect',
603
- 'nip',
604
- 'nod',
605
- 'note',
606
- 'notice',
607
- 'notify',
608
- 'nourish',
609
- 'nurse',
610
- 'obey',
611
- 'oblige',
612
- 'observe',
613
- 'obstruct',
614
- 'obtain',
615
- 'occupy',
616
- 'occur',
617
- 'offer',
618
- 'offset',
619
- 'omit',
620
- 'ooze',
621
- 'open',
622
- 'operate',
623
- 'opine',
624
- 'oppress',
625
- 'opt',
626
- 'optimize',
627
- 'order',
628
- 'organize',
629
- 'originate',
630
- 'output',
631
- 'overflow',
632
- 'overtake',
633
- 'owe',
634
- 'own',
635
- 'pacify',
636
- 'paint',
637
- 'pardon',
638
- 'parse',
639
- 'part',
640
- 'partake',
641
- 'participate',
642
- 'pass',
643
- 'paste',
644
- 'pat',
645
- 'patch',
646
- 'pause',
647
- 'pay',
648
- 'peep',
649
- 'perish',
650
- 'permit',
651
- 'persuade',
652
- 'phone',
653
- 'place',
654
- 'plan',
655
- 'play',
656
- 'plead',
657
- 'please',
658
- 'plod',
659
- 'plot',
660
- 'pluck',
661
- 'ply',
662
- 'point',
663
- 'polish',
664
- 'pollute',
665
- 'ponder',
666
- 'pour',
667
- 'pout',
668
- 'practise',
669
- 'praise',
670
- 'pray',
671
- 'preach',
672
- 'prefer',
673
- 'prepare',
674
- 'prescribe',
675
- 'present',
676
- 'preserve',
677
- 'preset',
678
- 'preside',
679
- 'press',
680
- 'pretend',
681
- 'prevent',
682
- 'print',
683
- 'proceed',
684
- 'produce',
685
- 'progress',
686
- 'prohibit',
687
- 'promise',
688
- 'propose',
689
- 'prosecute',
690
- 'protect',
691
- 'prove',
692
- 'provide',
693
- 'pull',
694
- 'punish',
695
- 'purify',
696
- 'push',
697
- 'put',
698
- 'qualify',
699
- 'quarrel',
700
- 'query',
701
- 'question',
702
- 'quit',
703
- 'race',
704
- 'rain',
705
- 'rattle',
706
- 'reach',
707
- 'read',
708
- 'realize',
709
- 'rebuild',
710
- 'recall',
711
- 'recast',
712
- 'receive',
713
- 'recite',
714
- 'recognize',
715
- 'recollect',
716
- 'recur',
717
- 'redo',
718
- 'reduce',
719
- 'refer',
720
- 'reflect',
721
- 'refuse',
722
- 'regard',
723
- 'regret',
724
- 'relate',
725
- 'relax',
726
- 'rely',
727
- 'remain',
728
- 'remake',
729
- 'remove',
730
- 'rend',
731
- 'renew',
732
- 'renounce',
733
- 'repair',
734
- 'repeat',
735
- 'replace',
736
- 'reply',
737
- 'report',
738
- 'request',
739
- 'resell',
740
- 'resemble',
741
- 'reset',
742
- 'resist',
743
- 'resolve',
744
- 'respect',
745
- 'rest',
746
- 'restrain',
747
- 'retain',
748
- 'retch',
749
- 'retire',
750
- 'return',
751
- 'reuse',
752
- 'review',
753
- 'rewind',
754
- 'rid',
755
- 'ride',
756
- 'ring',
757
- 'rise',
758
- 'roar',
759
- 'rob',
760
- 'roll',
761
- 'rot',
762
- 'rub',
763
- 'rule',
764
- 'run',
765
- 'rush',
766
- 'sabotage',
767
- 'sack',
768
- 'sacrifice',
769
- 'sadden',
770
- 'saddle',
771
- 'sag',
772
- 'sail',
773
- 'sally',
774
- 'salute',
775
- 'salvage',
776
- 'salve',
777
- 'sample',
778
- 'sanctify',
779
- 'sanction',
780
- 'sap',
781
- 'saponify',
782
- 'sash',
783
- 'sashay',
784
- 'sass',
785
- 'sate',
786
- 'satiate',
787
- 'satirise',
788
- 'satisfy',
789
- 'saturate',
790
- 'saunter',
791
- 'save',
792
- 'savor',
793
- 'savvy',
794
- 'saw',
795
- 'say',
796
- 'scab',
797
- 'scabble',
798
- 'scald',
799
- 'scale',
800
- 'scam',
801
- 'scan',
802
- 'scant',
803
- 'scar',
804
- 'scare',
805
- 'scarify',
806
- 'scarp',
807
- 'scat',
808
- 'scatter',
809
- 'scold',
810
- 'scorch',
811
- 'scowl',
812
- 'scrawl',
813
- 'scream',
814
- 'screw',
815
- 'scrub',
816
- 'search',
817
- 'seat',
818
- 'secure',
819
- 'see',
820
- 'seek',
821
- 'seem',
822
- 'seize',
823
- 'select',
824
- 'sell',
825
- 'send',
826
- 'sentence',
827
- 'separate',
828
- 'set',
829
- 'setup',
830
- 'sever',
831
- 'sew',
832
- 'shake',
833
- 'shape',
834
- 'share',
835
- 'shatter',
836
- 'shave',
837
- 'shear',
838
- 'shed',
839
- 'shine',
840
- 'shirk',
841
- 'shit',
842
- 'shiver',
843
- 'shock',
844
- 'shoe',
845
- 'shoot',
846
- 'shorten',
847
- 'shout',
848
- 'show',
849
- 'shrink',
850
- 'shun',
851
- 'shut',
852
- 'sight',
853
- 'signal',
854
- 'signify',
855
- 'sing',
856
- 'sink',
857
- 'sip',
858
- 'sit',
859
- 'ski',
860
- 'skid',
861
- 'slam',
862
- 'slay',
863
- 'sleep',
864
- 'slide',
865
- 'slim',
866
- 'sling',
867
- 'slink',
868
- 'slip',
869
- 'slit',
870
- 'smash',
871
- 'smell',
872
- 'smile',
873
- 'smite',
874
- 'smooth',
875
- 'smother',
876
- 'snap',
877
- 'snatch',
878
- 'sneak',
879
- 'sneeze',
880
- 'sniff',
881
- 'soar',
882
- 'sob',
883
- 'solicit',
884
- 'solve',
885
- 'soothe',
886
- 'sort',
887
- 'sow',
888
- 'sparkle',
889
- 'speak',
890
- 'speed',
891
- 'spell',
892
- 'spend',
893
- 'spill',
894
- 'spin',
895
- 'spit',
896
- 'split',
897
- 'spoil',
898
- 'spray',
899
- 'spread',
900
- 'spring',
901
- 'sprout',
902
- 'squeeze',
903
- 'stand',
904
- 'stare',
905
- 'start',
906
- 'state',
907
- 'stay',
908
- 'steal',
909
- 'steep',
910
- 'stem',
911
- 'step',
912
- 'sterilize',
913
- 'stick',
914
- 'stimulate',
915
- 'sting',
916
- 'stink',
917
- 'stir',
918
- 'stitch',
919
- 'stoop',
920
- 'stop',
921
- 'store',
922
- 'strain',
923
- 'stray',
924
- 'stress',
925
- 'stretch',
926
- 'strew',
927
- 'stride',
928
- 'strike',
929
- 'string',
930
- 'strive',
931
- 'study',
932
- 'submit',
933
- 'subscribe',
934
- 'subtract',
935
- 'succeed',
936
- 'suck',
937
- 'suffer',
938
- 'suggest',
939
- 'summon',
940
- 'supply',
941
- 'support',
942
- 'suppose',
943
- 'surge',
944
- 'surmise',
945
- 'surpass',
946
- 'surround',
947
- 'survey',
948
- 'survive',
949
- 'swallow',
950
- 'sway',
951
- 'swear',
952
- 'sweat',
953
- 'sweep',
954
- 'swell',
955
- 'swim',
956
- 'swing',
957
- 'swot',
958
- 'take',
959
- 'talk',
960
- 'tap',
961
- 'taste',
962
- 'tax',
963
- 'teach',
964
- 'tear',
965
- 'tee',
966
- 'tell',
967
- 'tempt',
968
- 'tend',
969
- 'terminate',
970
- 'terrify',
971
- 'test',
972
- 'thank',
973
- 'think',
974
- 'thrive',
975
- 'throw',
976
- 'thrust',
977
- 'thump',
978
- 'tie',
979
- 'tire',
980
- 'toss',
981
- 'touch',
982
- 'train',
983
- 'trample',
984
- 'transfer',
985
- 'transform',
986
- 'translate',
987
- 'trap',
988
- 'travel',
989
- 'tread',
990
- 'treasure',
991
- 'treat',
992
- 'tree',
993
- 'tremble',
994
- 'triumph',
995
- 'trust',
996
- 'try',
997
- 'turn',
998
- 'type',
999
- 'typeset',
1000
- 'understand',
1001
- 'undo',
1002
- 'update',
1003
- 'uproot',
1004
- 'upset',
1005
- 'urge',
1006
- 'use',
1007
- 'utter',
1008
- 'validate',
1009
- 'value',
1010
- 'vanish',
1011
- 'vary',
1012
- 'verify',
1013
- 'vex',
1014
- 'vie',
1015
- 'view',
1016
- 'violate',
1017
- 'vomit',
1018
- 'wake',
1019
- 'walk',
1020
- 'wander',
1021
- 'want',
1022
- 'warn',
1023
- 'waste',
1024
- 'watch',
1025
- 'water',
1026
- 'wave',
1027
- 'wax',
1028
- 'waylay',
1029
- 'wear',
1030
- 'weave',
1031
- 'wed',
1032
- 'weep',
1033
- 'weigh',
1034
- 'welcome',
1035
- 'wend',
1036
- 'wet',
1037
- 'whip',
1038
- 'whisper',
1039
- 'win',
1040
- 'wind',
1041
- 'wish',
1042
- 'withdraw',
1043
- 'work',
1044
- 'worry',
1045
- 'worship',
1046
- 'wring',
1047
- 'write',
1048
- 'yawn',
1049
- 'yell',
1050
- 'yield',
1051
- 'zinc',
1052
- 'zoom',
1053
- ];
1054
-
1055
- /**
1056
- * @see [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint)
1057
- */
1058
- module.exports = {
1059
- extends: ['plugin:@typescript-eslint/recommended'],
1060
-
1061
- overrides: [
1062
- {
1063
- files: ['*.d.ts'],
1064
-
1065
- rules: {
1066
- '@typescript-eslint/naming-convention': 'off',
1067
- },
1068
- },
1069
- ],
1070
-
1071
- plugins: ['@typescript-eslint'],
1072
-
1073
- rules: {
1074
- '@typescript-eslint/array-type': ['error', { default: 'array' }],
1075
-
1076
- '@typescript-eslint/consistent-type-assertions': [
1077
- 'error',
1078
- {
1079
- assertionStyle: 'as',
1080
- objectLiteralTypeAssertions: 'allow-as-parameter',
1081
- },
1082
- ],
1083
-
1084
- '@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
1085
-
1086
- '@typescript-eslint/consistent-type-imports': [
1087
- 'error',
1088
- { prefer: 'type-imports' },
1089
- ],
1090
-
1091
- '@typescript-eslint/explicit-module-boundary-types': 'off',
1092
-
1093
- // delegate to sort-class-members plugin
1094
- '@typescript-eslint/member-ordering': [
1095
- 'off',
1096
- {
1097
- default: {
1098
- memberTypes: [
1099
- // Index signature
1100
- 'signature',
1101
-
1102
- // Fields
1103
- 'public-static-field',
1104
- 'protected-static-field',
1105
- 'private-static-field',
1106
-
1107
- 'public-decorated-field',
1108
- 'protected-decorated-field',
1109
- 'private-decorated-field',
1110
-
1111
- 'public-instance-field',
1112
- 'protected-instance-field',
1113
- 'private-instance-field',
1114
-
1115
- 'public-abstract-field',
1116
- 'protected-abstract-field',
1117
- 'private-abstract-field',
1118
-
1119
- 'public-field',
1120
- 'protected-field',
1121
- 'private-field',
1122
-
1123
- 'static-field',
1124
- 'instance-field',
1125
- 'abstract-field',
1126
-
1127
- 'decorated-field',
1128
-
1129
- 'field',
1130
-
1131
- // Constructors
1132
- 'public-constructor',
1133
- 'protected-constructor',
1134
- 'private-constructor',
1135
-
1136
- 'constructor',
1137
-
1138
- // Methods
1139
- 'public-static-method',
1140
- 'protected-static-method',
1141
- 'private-static-method',
1142
-
1143
- 'public-decorated-method',
1144
- 'protected-decorated-method',
1145
- 'private-decorated-method',
1146
-
1147
- 'public-instance-method',
1148
- 'protected-instance-method',
1149
- 'private-instance-method',
1150
-
1151
- 'public-abstract-method',
1152
- 'protected-abstract-method',
1153
- 'private-abstract-method',
1154
-
1155
- 'public-method',
1156
- 'protected-method',
1157
- 'private-method',
1158
-
1159
- 'static-method',
1160
- 'instance-method',
1161
- 'abstract-method',
1162
-
1163
- 'decorated-method',
1164
-
1165
- 'method',
1166
- ],
1167
-
1168
- order: 'alphabetically',
1169
- },
1170
- },
1171
- ],
1172
-
1173
- '@typescript-eslint/method-signature-style': ['error', 'method'],
1174
-
1175
- '@typescript-eslint/naming-convention': [
1176
- 'error',
1177
-
1178
- // ESLint's camelCase conventions
1179
- {
1180
- format: ['camelCase'],
1181
- selector: 'default',
1182
- },
1183
- {
1184
- format: ['camelCase' /* 'UPPER_CASE' */],
1185
- selector: 'variable',
1186
- },
1187
- {
1188
- format: ['camelCase'],
1189
- leadingUnderscore: 'allow',
1190
- selector: 'parameter',
1191
- },
1192
- {
1193
- format: ['camelCase'],
1194
- leadingUnderscore: 'require',
1195
- modifiers: ['private'],
1196
- selector: 'memberLike',
1197
- },
1198
- {
1199
- format: ['PascalCase'],
1200
- selector: 'typeLike',
1201
- },
1202
-
1203
- // interface
1204
- {
1205
- custom: {
1206
- match: false,
1207
- regex: '^I[A-Z]',
1208
- },
1209
-
1210
- format: ['PascalCase'],
1211
- selector: 'interface',
1212
- },
1213
-
1214
- // objectLiteralProperty
1215
- {
1216
- format: ['camelCase', 'UPPER_CASE', 'PascalCase', 'snake_case'],
1217
- leadingUnderscore: 'allow',
1218
- selector: 'objectLiteralProperty',
1219
- },
1220
-
1221
- // objectLiteralMethod
1222
- {
1223
- format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
1224
- selector: 'objectLiteralMethod',
1225
- },
1226
-
1227
- // parameter
1228
- {
1229
- format: ['camelCase', 'PascalCase', 'UPPER_CASE'],
1230
- modifiers: ['destructured'],
1231
- selector: 'parameter',
1232
- },
1233
-
1234
- // variable
1235
- {
1236
- format: ['camelCase', 'UPPER_CASE', 'PascalCase'],
1237
- modifiers: ['const'],
1238
- selector: 'variable',
1239
- },
1240
- {
1241
- format: ['camelCase'],
1242
- leadingUnderscore: 'allow',
1243
- modifiers: ['destructured'],
1244
- selector: 'variable',
1245
- },
1246
-
1247
- {
1248
- filter: {
1249
- match: false,
1250
- regex: `(${ALLOW_BOOLEAN_PROPERTY_LIST.join('|')})`,
1251
- },
1252
-
1253
- format: ['PascalCase'],
1254
-
1255
- leadingUnderscore: 'allow',
1256
-
1257
- prefix: [
1258
- 'are',
1259
- 'can',
1260
- 'did',
1261
- 'does',
1262
- 'has',
1263
- 'is',
1264
- 'may',
1265
- 'must',
1266
- 'need',
1267
- 'should',
1268
- 'will',
1269
- ],
1270
-
1271
- selector: ['variable', 'parameter', 'property', 'accessor'],
1272
-
1273
- types: ['boolean'],
1274
- },
1275
-
1276
- {
1277
- filter: {
1278
- match: false,
1279
- regex: '^(re)',
1280
- },
1281
-
1282
- format: ['PascalCase'],
1283
-
1284
- leadingUnderscore: 'allow',
1285
-
1286
- prefix: [
1287
- ...ENGLISH_VERBS,
1288
- ...ENGLISH_VERBS.map((verb) => `re${verb}`),
1289
-
1290
- 'on',
1291
- ],
1292
-
1293
- selector: [
1294
- 'function',
1295
- 'classMethod',
1296
- // 'objectLiteralMethod',
1297
- // 'typeMethod',
1298
- ],
1299
- },
1300
- ],
1301
-
1302
- '@typescript-eslint/no-explicit-any': 'off',
1303
-
1304
- '@typescript-eslint/no-inferrable-types': [
1305
- 'error',
1306
- {
1307
- ignoreParameters: true,
1308
- },
1309
- ],
1310
-
1311
- '@typescript-eslint/no-shadow': ['error'],
1312
- '@typescript-eslint/no-unused-vars': 'off', // delegate to eslint-plugin-unused-imports
1313
- '@typescript-eslint/no-use-before-define': ['warn'],
1314
- '@typescript-eslint/no-var-requires': 'off',
1315
- '@typescript-eslint/sort-type-union-intersection-members': ['error'],
1316
- '@typescript-eslint/unified-signatures': ['error'],
1317
- },
1318
- };