@nekoyasuii/config 0.1.2 → 0.1.4

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.
@@ -0,0 +1,658 @@
1
+ declare var defaultJargonWords: string[];
2
+ declare var meta: {
3
+ name: string;
4
+ version: string;
5
+ namespace: string;
6
+ }, rules: {
7
+ "max-comment-lines": {
8
+ meta: {
9
+ type: string;
10
+ docs: {
11
+ description: string;
12
+ recommended: boolean;
13
+ url: string;
14
+ };
15
+ schema: {
16
+ type: string;
17
+ properties: {
18
+ max: {
19
+ type: string;
20
+ minimum: number;
21
+ };
22
+ headerMax: {
23
+ type: string;
24
+ minimum: number;
25
+ };
26
+ jsdocSectionMax: {
27
+ type: string;
28
+ minimum: number;
29
+ };
30
+ exportDescriptionMax: {
31
+ type: string;
32
+ minimum: number;
33
+ };
34
+ exportTagMax: {
35
+ type: string;
36
+ minimum: number;
37
+ };
38
+ };
39
+ additionalProperties: boolean;
40
+ }[];
41
+ messages: {
42
+ tooLong: string;
43
+ sectionTooLong: string;
44
+ };
45
+ };
46
+ create(context: any): {
47
+ ExportNamedDeclaration: (node: any) => void;
48
+ ExportDefaultDeclaration: (node: any) => void;
49
+ "Program:exit"(): void;
50
+ };
51
+ };
52
+ "no-banner-comment": {
53
+ meta: {
54
+ type: string;
55
+ fixable: string;
56
+ docs: {
57
+ description: string;
58
+ recommended: boolean;
59
+ url: string;
60
+ };
61
+ schema: {
62
+ type: string;
63
+ properties: {
64
+ flagTitled: {
65
+ type: string;
66
+ };
67
+ minLength: {
68
+ type: string;
69
+ minimum: number;
70
+ };
71
+ };
72
+ additionalProperties: boolean;
73
+ }[];
74
+ messages: {
75
+ ruler: string;
76
+ titled: string;
77
+ };
78
+ };
79
+ create(context: any): {
80
+ Program(): void;
81
+ };
82
+ };
83
+ "no-trailing-comment": {
84
+ meta: {
85
+ type: string;
86
+ docs: {
87
+ description: string;
88
+ recommended: boolean;
89
+ url: string;
90
+ };
91
+ schema: {
92
+ type: string;
93
+ properties: {
94
+ allowShort: {
95
+ type: string;
96
+ minimum: number;
97
+ };
98
+ };
99
+ additionalProperties: boolean;
100
+ }[];
101
+ messages: {
102
+ trailing: string;
103
+ };
104
+ };
105
+ create(context: any): {
106
+ Program(): void;
107
+ };
108
+ };
109
+ "prefer-jsdoc-for-exports": {
110
+ meta: {
111
+ type: string;
112
+ fixable: string;
113
+ docs: {
114
+ description: string;
115
+ recommended: boolean;
116
+ url: string;
117
+ };
118
+ schema: never[];
119
+ messages: {
120
+ useJsdoc: string;
121
+ };
122
+ };
123
+ create(context: any): {
124
+ ExportNamedDeclaration: (node: any) => void;
125
+ ExportDefaultDeclaration: (node: any) => void;
126
+ "Program:exit"(): void;
127
+ };
128
+ };
129
+ "prefer-jsdoc-for-members": {
130
+ meta: {
131
+ type: string;
132
+ fixable: string;
133
+ docs: {
134
+ description: string;
135
+ recommended: boolean;
136
+ url: string;
137
+ };
138
+ schema: never[];
139
+ messages: {
140
+ useJsdoc: string;
141
+ };
142
+ };
143
+ create(context: any): {
144
+ TSInterfaceBody: (node: any) => void;
145
+ TSTypeLiteral: (node: any) => void;
146
+ ClassBody: (node: any) => void;
147
+ TSEnumDeclaration: (node: any) => void;
148
+ ObjectExpression: (node: any) => void;
149
+ "Program:exit"(): void;
150
+ };
151
+ };
152
+ "require-member-docs": {
153
+ meta: {
154
+ type: string;
155
+ docs: {
156
+ description: string;
157
+ recommended: boolean;
158
+ url: string;
159
+ };
160
+ schema: {
161
+ type: string;
162
+ properties: {
163
+ minDocumented: {
164
+ type: string;
165
+ minimum: number;
166
+ };
167
+ minRatio: {
168
+ type: string;
169
+ minimum: number;
170
+ maximum: number;
171
+ };
172
+ };
173
+ additionalProperties: boolean;
174
+ }[];
175
+ messages: {
176
+ missing: string;
177
+ };
178
+ };
179
+ create(context: any): {
180
+ TSInterfaceBody: (node: any) => void;
181
+ TSTypeLiteral: (node: any) => void;
182
+ ClassBody: (node: any) => void;
183
+ TSEnumDeclaration: (node: any) => void;
184
+ "Program:exit"(): void;
185
+ };
186
+ };
187
+ "multiline-jsdoc-format": {
188
+ meta: {
189
+ type: string;
190
+ fixable: string;
191
+ docs: {
192
+ description: string;
193
+ recommended: boolean;
194
+ url: string;
195
+ };
196
+ schema: never[];
197
+ messages: {
198
+ openText: string;
199
+ closeText: string;
200
+ };
201
+ };
202
+ create(context: any): {
203
+ Program(): void;
204
+ };
205
+ };
206
+ "no-trailing-period": {
207
+ meta: {
208
+ type: string;
209
+ fixable: string;
210
+ docs: {
211
+ description: string;
212
+ recommended: boolean;
213
+ url: string;
214
+ };
215
+ schema: {
216
+ type: string;
217
+ properties: {
218
+ includeJsdoc: {
219
+ type: string;
220
+ };
221
+ ignoreMultiSentence: {
222
+ type: string;
223
+ };
224
+ };
225
+ additionalProperties: boolean;
226
+ }[];
227
+ messages: {
228
+ period: string;
229
+ };
230
+ };
231
+ create(context: any): {
232
+ Program(): void;
233
+ };
234
+ };
235
+ "no-em-dash": {
236
+ meta: {
237
+ type: string;
238
+ docs: {
239
+ description: string;
240
+ recommended: boolean;
241
+ url: string;
242
+ };
243
+ schema: {
244
+ type: string;
245
+ properties: {
246
+ includeEnDash: {
247
+ type: string;
248
+ };
249
+ };
250
+ additionalProperties: boolean;
251
+ }[];
252
+ messages: {
253
+ dash: string;
254
+ };
255
+ };
256
+ create(context: any): {
257
+ Program(): void;
258
+ };
259
+ };
260
+ "no-jargon": {
261
+ meta: {
262
+ type: string;
263
+ hasSuggestions: boolean;
264
+ docs: {
265
+ description: string;
266
+ recommended: boolean;
267
+ url: string;
268
+ };
269
+ schema: {
270
+ type: string;
271
+ properties: {
272
+ words: {
273
+ type: string;
274
+ items: {
275
+ type: string;
276
+ };
277
+ };
278
+ extraWords: {
279
+ type: string;
280
+ items: {
281
+ type: string;
282
+ };
283
+ };
284
+ allow: {
285
+ type: string;
286
+ items: {
287
+ type: string;
288
+ };
289
+ };
290
+ includeJsdoc: {
291
+ type: string;
292
+ };
293
+ };
294
+ additionalProperties: boolean;
295
+ }[];
296
+ messages: {
297
+ jargon: string;
298
+ jargonSuggest: string;
299
+ replaceWith: string;
300
+ };
301
+ };
302
+ create(context: any): {
303
+ Program?: undefined;
304
+ } | {
305
+ Program(): void;
306
+ };
307
+ };
308
+ "no-foreign-syntax": {
309
+ meta: {
310
+ type: string;
311
+ docs: {
312
+ description: string;
313
+ recommended: boolean;
314
+ url: string;
315
+ };
316
+ schema: never[];
317
+ messages: {
318
+ tripleSlash: string;
319
+ xmlDoc: string;
320
+ region: string;
321
+ };
322
+ };
323
+ create(context: any): {
324
+ Program(): void;
325
+ };
326
+ };
327
+ }, configs: {};
328
+ declare var src_default: {
329
+ meta: {
330
+ name: string;
331
+ version: string;
332
+ namespace: string;
333
+ };
334
+ rules: {
335
+ "max-comment-lines": {
336
+ meta: {
337
+ type: string;
338
+ docs: {
339
+ description: string;
340
+ recommended: boolean;
341
+ url: string;
342
+ };
343
+ schema: {
344
+ type: string;
345
+ properties: {
346
+ max: {
347
+ type: string;
348
+ minimum: number;
349
+ };
350
+ headerMax: {
351
+ type: string;
352
+ minimum: number;
353
+ };
354
+ jsdocSectionMax: {
355
+ type: string;
356
+ minimum: number;
357
+ };
358
+ exportDescriptionMax: {
359
+ type: string;
360
+ minimum: number;
361
+ };
362
+ exportTagMax: {
363
+ type: string;
364
+ minimum: number;
365
+ };
366
+ };
367
+ additionalProperties: boolean;
368
+ }[];
369
+ messages: {
370
+ tooLong: string;
371
+ sectionTooLong: string;
372
+ };
373
+ };
374
+ create(context: any): {
375
+ ExportNamedDeclaration: (node: any) => void;
376
+ ExportDefaultDeclaration: (node: any) => void;
377
+ "Program:exit"(): void;
378
+ };
379
+ };
380
+ "no-banner-comment": {
381
+ meta: {
382
+ type: string;
383
+ fixable: string;
384
+ docs: {
385
+ description: string;
386
+ recommended: boolean;
387
+ url: string;
388
+ };
389
+ schema: {
390
+ type: string;
391
+ properties: {
392
+ flagTitled: {
393
+ type: string;
394
+ };
395
+ minLength: {
396
+ type: string;
397
+ minimum: number;
398
+ };
399
+ };
400
+ additionalProperties: boolean;
401
+ }[];
402
+ messages: {
403
+ ruler: string;
404
+ titled: string;
405
+ };
406
+ };
407
+ create(context: any): {
408
+ Program(): void;
409
+ };
410
+ };
411
+ "no-trailing-comment": {
412
+ meta: {
413
+ type: string;
414
+ docs: {
415
+ description: string;
416
+ recommended: boolean;
417
+ url: string;
418
+ };
419
+ schema: {
420
+ type: string;
421
+ properties: {
422
+ allowShort: {
423
+ type: string;
424
+ minimum: number;
425
+ };
426
+ };
427
+ additionalProperties: boolean;
428
+ }[];
429
+ messages: {
430
+ trailing: string;
431
+ };
432
+ };
433
+ create(context: any): {
434
+ Program(): void;
435
+ };
436
+ };
437
+ "prefer-jsdoc-for-exports": {
438
+ meta: {
439
+ type: string;
440
+ fixable: string;
441
+ docs: {
442
+ description: string;
443
+ recommended: boolean;
444
+ url: string;
445
+ };
446
+ schema: never[];
447
+ messages: {
448
+ useJsdoc: string;
449
+ };
450
+ };
451
+ create(context: any): {
452
+ ExportNamedDeclaration: (node: any) => void;
453
+ ExportDefaultDeclaration: (node: any) => void;
454
+ "Program:exit"(): void;
455
+ };
456
+ };
457
+ "prefer-jsdoc-for-members": {
458
+ meta: {
459
+ type: string;
460
+ fixable: string;
461
+ docs: {
462
+ description: string;
463
+ recommended: boolean;
464
+ url: string;
465
+ };
466
+ schema: never[];
467
+ messages: {
468
+ useJsdoc: string;
469
+ };
470
+ };
471
+ create(context: any): {
472
+ TSInterfaceBody: (node: any) => void;
473
+ TSTypeLiteral: (node: any) => void;
474
+ ClassBody: (node: any) => void;
475
+ TSEnumDeclaration: (node: any) => void;
476
+ ObjectExpression: (node: any) => void;
477
+ "Program:exit"(): void;
478
+ };
479
+ };
480
+ "require-member-docs": {
481
+ meta: {
482
+ type: string;
483
+ docs: {
484
+ description: string;
485
+ recommended: boolean;
486
+ url: string;
487
+ };
488
+ schema: {
489
+ type: string;
490
+ properties: {
491
+ minDocumented: {
492
+ type: string;
493
+ minimum: number;
494
+ };
495
+ minRatio: {
496
+ type: string;
497
+ minimum: number;
498
+ maximum: number;
499
+ };
500
+ };
501
+ additionalProperties: boolean;
502
+ }[];
503
+ messages: {
504
+ missing: string;
505
+ };
506
+ };
507
+ create(context: any): {
508
+ TSInterfaceBody: (node: any) => void;
509
+ TSTypeLiteral: (node: any) => void;
510
+ ClassBody: (node: any) => void;
511
+ TSEnumDeclaration: (node: any) => void;
512
+ "Program:exit"(): void;
513
+ };
514
+ };
515
+ "multiline-jsdoc-format": {
516
+ meta: {
517
+ type: string;
518
+ fixable: string;
519
+ docs: {
520
+ description: string;
521
+ recommended: boolean;
522
+ url: string;
523
+ };
524
+ schema: never[];
525
+ messages: {
526
+ openText: string;
527
+ closeText: string;
528
+ };
529
+ };
530
+ create(context: any): {
531
+ Program(): void;
532
+ };
533
+ };
534
+ "no-trailing-period": {
535
+ meta: {
536
+ type: string;
537
+ fixable: string;
538
+ docs: {
539
+ description: string;
540
+ recommended: boolean;
541
+ url: string;
542
+ };
543
+ schema: {
544
+ type: string;
545
+ properties: {
546
+ includeJsdoc: {
547
+ type: string;
548
+ };
549
+ ignoreMultiSentence: {
550
+ type: string;
551
+ };
552
+ };
553
+ additionalProperties: boolean;
554
+ }[];
555
+ messages: {
556
+ period: string;
557
+ };
558
+ };
559
+ create(context: any): {
560
+ Program(): void;
561
+ };
562
+ };
563
+ "no-em-dash": {
564
+ meta: {
565
+ type: string;
566
+ docs: {
567
+ description: string;
568
+ recommended: boolean;
569
+ url: string;
570
+ };
571
+ schema: {
572
+ type: string;
573
+ properties: {
574
+ includeEnDash: {
575
+ type: string;
576
+ };
577
+ };
578
+ additionalProperties: boolean;
579
+ }[];
580
+ messages: {
581
+ dash: string;
582
+ };
583
+ };
584
+ create(context: any): {
585
+ Program(): void;
586
+ };
587
+ };
588
+ "no-jargon": {
589
+ meta: {
590
+ type: string;
591
+ hasSuggestions: boolean;
592
+ docs: {
593
+ description: string;
594
+ recommended: boolean;
595
+ url: string;
596
+ };
597
+ schema: {
598
+ type: string;
599
+ properties: {
600
+ words: {
601
+ type: string;
602
+ items: {
603
+ type: string;
604
+ };
605
+ };
606
+ extraWords: {
607
+ type: string;
608
+ items: {
609
+ type: string;
610
+ };
611
+ };
612
+ allow: {
613
+ type: string;
614
+ items: {
615
+ type: string;
616
+ };
617
+ };
618
+ includeJsdoc: {
619
+ type: string;
620
+ };
621
+ };
622
+ additionalProperties: boolean;
623
+ }[];
624
+ messages: {
625
+ jargon: string;
626
+ jargonSuggest: string;
627
+ replaceWith: string;
628
+ };
629
+ };
630
+ create(context: any): {
631
+ Program?: undefined;
632
+ } | {
633
+ Program(): void;
634
+ };
635
+ };
636
+ "no-foreign-syntax": {
637
+ meta: {
638
+ type: string;
639
+ docs: {
640
+ description: string;
641
+ recommended: boolean;
642
+ url: string;
643
+ };
644
+ schema: never[];
645
+ messages: {
646
+ tripleSlash: string;
647
+ xmlDoc: string;
648
+ region: string;
649
+ };
650
+ };
651
+ create(context: any): {
652
+ Program(): void;
653
+ };
654
+ };
655
+ };
656
+ configs: {};
657
+ };
658
+ export { configs, src_default as default, defaultJargonWords, meta, rules };