@dereekb/util 13.11.15 → 13.11.16

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.
@@ -5004,7 +5004,7 @@ function reportUtilAllowedCategory(ctx, familyTags, allowedCategories) {
5004
5004
  /**
5005
5005
  * Default companion-tag names recognized in the `@dbxUtil` family. The names exclude the
5006
5006
  * `dbxUtil` prefix (so `@dbxUtilCategory` is represented as `'Category'`).
5007
- */ var DEFAULT_KNOWN_COMPANIONS$a = [
5007
+ */ var DEFAULT_KNOWN_COMPANIONS$9 = [
5008
5008
  'Category',
5009
5009
  'Kind',
5010
5010
  'Tags',
@@ -5091,7 +5091,7 @@ function reportUtilAllowedCategory(ctx, familyTags, allowedCategories) {
5091
5091
  var sourceCode = context.sourceCode;
5092
5092
  var allowedCategories = options.allowedCategories;
5093
5093
  var allowedKinds = (_options_allowedKinds = options.allowedKinds) !== null && _options_allowedKinds !== void 0 ? _options_allowedKinds : DEFAULT_ALLOWED_KINDS$2;
5094
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$a;
5094
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$9;
5095
5095
  var requireBareMarker = options.requireBareMarker !== false;
5096
5096
  var allCompanions = [
5097
5097
  {
@@ -5193,7 +5193,7 @@ var DEFAULT_ALLOWED_CATEGORIES$2 = [
5193
5193
  'async',
5194
5194
  'misc'
5195
5195
  ];
5196
- var DEFAULT_KNOWN_COMPANIONS$9 = [
5196
+ var DEFAULT_KNOWN_COMPANIONS$8 = [
5197
5197
  'Slug',
5198
5198
  'Category',
5199
5199
  'Related',
@@ -5252,7 +5252,7 @@ var DEFAULT_KNOWN_COMPANIONS$9 = [
5252
5252
  var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
5253
5253
  var sourceCode = context.sourceCode;
5254
5254
  var allowedCategories = (_options_allowedCategories = options.allowedCategories) !== null && _options_allowedCategories !== void 0 ? _options_allowedCategories : DEFAULT_ALLOWED_CATEGORIES$2;
5255
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$9;
5255
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$8;
5256
5256
  var requireBareMarker = options.requireBareMarker !== false;
5257
5257
  var allCompanions = [
5258
5258
  {
@@ -5424,7 +5424,7 @@ var DEFAULT_KNOWN_COMPANIONS$9 = [
5424
5424
  }
5425
5425
  };
5426
5426
 
5427
- var DEFAULT_KNOWN_COMPANIONS$8 = [
5427
+ var DEFAULT_KNOWN_COMPANIONS$7 = [
5428
5428
  'Slug',
5429
5429
  'Related',
5430
5430
  'SkillRefs'
@@ -5472,7 +5472,7 @@ var DEFAULT_KNOWN_COMPANIONS$8 = [
5472
5472
  var _context_options_, _options_knownCompanions;
5473
5473
  var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
5474
5474
  var sourceCode = context.sourceCode;
5475
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$8;
5475
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$7;
5476
5476
  var requireBareMarker = options.requireBareMarker !== false;
5477
5477
  var allCompanions = [
5478
5478
  {
@@ -5623,7 +5623,7 @@ var DEFAULT_ALLOWED_KINDS$1 = [
5623
5623
  'pipe',
5624
5624
  'service'
5625
5625
  ];
5626
- var DEFAULT_KNOWN_COMPANIONS$7 = [
5626
+ var DEFAULT_KNOWN_COMPANIONS$6 = [
5627
5627
  'Slug',
5628
5628
  'Category',
5629
5629
  'Kind',
@@ -5693,7 +5693,7 @@ var DEFAULT_KNOWN_COMPANIONS$7 = [
5693
5693
  var sourceCode = context.sourceCode;
5694
5694
  var allowedCategories = (_options_allowedCategories = options.allowedCategories) !== null && _options_allowedCategories !== void 0 ? _options_allowedCategories : DEFAULT_ALLOWED_CATEGORIES$1;
5695
5695
  var allowedKinds = (_options_allowedKinds = options.allowedKinds) !== null && _options_allowedKinds !== void 0 ? _options_allowedKinds : DEFAULT_ALLOWED_KINDS$1;
5696
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$7;
5696
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$6;
5697
5697
  var requireBareMarker = options.requireBareMarker !== false;
5698
5698
  // Class-level companions (Slug, Category, Kind, Related, SkillRefs, ContentProjection, MinimalExample).
5699
5699
  var allClassCompanions = [
@@ -5914,7 +5914,7 @@ var DEFAULT_ALLOWED_CATEGORIES = [
5914
5914
  'router',
5915
5915
  'misc'
5916
5916
  ];
5917
- var DEFAULT_KNOWN_COMPANIONS$6 = [
5917
+ var DEFAULT_KNOWN_COMPANIONS$5 = [
5918
5918
  'Slug',
5919
5919
  'Category',
5920
5920
  'Summary',
@@ -5974,7 +5974,7 @@ var DEFAULT_KNOWN_COMPANIONS$6 = [
5974
5974
  var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
5975
5975
  var sourceCode = context.sourceCode;
5976
5976
  var allowedCategories = (_options_allowedCategories = options.allowedCategories) !== null && _options_allowedCategories !== void 0 ? _options_allowedCategories : DEFAULT_ALLOWED_CATEGORIES;
5977
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$6;
5977
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$5;
5978
5978
  var requireBareMarker = options.requireBareMarker !== false;
5979
5979
  var allCompanions = [
5980
5980
  {
@@ -6166,7 +6166,7 @@ var DEFAULT_ALLOWED_KINDS = [
6166
6166
  'factory',
6167
6167
  'const'
6168
6168
  ];
6169
- var DEFAULT_KNOWN_COMPANIONS$5 = [
6169
+ var DEFAULT_KNOWN_COMPANIONS$4 = [
6170
6170
  'Slug',
6171
6171
  'Category',
6172
6172
  'Kind',
@@ -6225,7 +6225,7 @@ var DEFAULT_KNOWN_COMPANIONS$5 = [
6225
6225
  var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
6226
6226
  var sourceCode = context.sourceCode;
6227
6227
  var allowedKinds = (_options_allowedKinds = options.allowedKinds) !== null && _options_allowedKinds !== void 0 ? _options_allowedKinds : DEFAULT_ALLOWED_KINDS;
6228
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$5;
6228
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$4;
6229
6229
  var requireBareMarker = options.requireBareMarker !== false;
6230
6230
  var allCompanions = [
6231
6231
  {
@@ -6429,352 +6429,6 @@ var DEFAULT_KNOWN_COMPANIONS$5 = [
6429
6429
  }
6430
6430
  };
6431
6431
 
6432
- var DEFAULT_ALLOWED_SCOPES = [
6433
- 'COLLECTION',
6434
- 'COLLECTION_GROUP'
6435
- ];
6436
- var DEFAULT_KNOWN_COMPANIONS$4 = [
6437
- 'Slug',
6438
- 'Model',
6439
- 'Scope',
6440
- 'Dispatcher',
6441
- 'Manual',
6442
- 'Skip',
6443
- 'AllowArrayContainsAny',
6444
- 'Category',
6445
- 'Tags',
6446
- 'Related',
6447
- 'SkillRefs',
6448
- 'Path',
6449
- 'Helper'
6450
- ];
6451
- /**
6452
- * ESLint rule enforcing `@dbxModelFirebaseIndex` companion tags. Mirrors the
6453
- * scanner schema at `packages/dbx-components-mcp/src/scan/model-firebase-index-extract.ts`.
6454
- */ var UTIL_REQUIRE_DBX_MODEL_FIREBASE_INDEX_COMPANION_TAGS_RULE = {
6455
- meta: {
6456
- type: 'suggestion',
6457
- fixable: 'code',
6458
- docs: {
6459
- description: 'Require the canonical `@dbxModelFirebaseIndex*` companion tags on `@dbxModelFirebaseIndex`-tagged factories.',
6460
- recommended: true
6461
- },
6462
- messages: {
6463
- missingModel: '`@dbxModelFirebaseIndex`-tagged factory is missing the required `@dbxModelFirebaseIndexModel <ModelName>` companion tag.',
6464
- invalidModelIdentifier: '`@dbxModelFirebaseIndexModel` value `{{value}}` is not a valid PascalCase identifier.',
6465
- invalidScope: '`@dbxModelFirebaseIndexScope` value `{{value}}` is not allowed. Use one of: {{allowed}}.',
6466
- invalidBooleanValue: '`@dbxModelFirebaseIndex{{name}}` value `{{value}}` is not a recognized boolean.',
6467
- slugNotKebab: '`@dbxModelFirebaseIndexSlug` value `{{value}}` is not a valid kebab-case slug.',
6468
- tagsNotLowercase: '`@dbxModelFirebaseIndexTags` token `{{value}}` contains uppercase characters; tokens should be lowercase.',
6469
- relatedNotKebab: '`@dbxModelFirebaseIndexRelated` item `{{value}}` is not a kebab-case slug.',
6470
- skillRefsNotKebab: '`@dbxModelFirebaseIndexSkillRefs` item `{{value}}` is not a kebab-case slug.',
6471
- unknownDbxModelFirebaseIndexTag: '`@dbxModelFirebaseIndex{{name}}` is not a recognized companion tag. Known companions: {{known}}.',
6472
- duplicateCompanionTag: '`@dbxModelFirebaseIndex{{name}}` is declared more than once.'
6473
- },
6474
- schema: [
6475
- {
6476
- type: 'object',
6477
- additionalProperties: false,
6478
- properties: {
6479
- allowedScopes: {
6480
- type: 'array',
6481
- items: {
6482
- type: 'string'
6483
- }
6484
- },
6485
- knownCompanions: {
6486
- type: 'array',
6487
- items: {
6488
- type: 'string'
6489
- }
6490
- },
6491
- requireBareMarker: {
6492
- type: 'boolean'
6493
- }
6494
- }
6495
- }
6496
- ]
6497
- },
6498
- create: function create(context) {
6499
- var _context_options_, _options_allowedScopes, _options_knownCompanions;
6500
- var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
6501
- var sourceCode = context.sourceCode;
6502
- var allowedScopes = (_options_allowedScopes = options.allowedScopes) !== null && _options_allowedScopes !== void 0 ? _options_allowedScopes : DEFAULT_ALLOWED_SCOPES;
6503
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$4;
6504
- var requireBareMarker = options.requireBareMarker !== false;
6505
- var allCompanions = [
6506
- {
6507
- suffix: 'Slug',
6508
- format: {
6509
- kind: 'kebab-slug'
6510
- }
6511
- },
6512
- {
6513
- suffix: 'Model',
6514
- required: true,
6515
- format: {
6516
- kind: 'pascal-identifier'
6517
- }
6518
- },
6519
- {
6520
- suffix: 'Scope',
6521
- format: {
6522
- kind: 'enum',
6523
- values: allowedScopes
6524
- }
6525
- },
6526
- {
6527
- suffix: 'Dispatcher',
6528
- format: {
6529
- kind: 'boolean'
6530
- }
6531
- },
6532
- {
6533
- suffix: 'Manual',
6534
- format: {
6535
- kind: 'boolean'
6536
- }
6537
- },
6538
- {
6539
- suffix: 'Skip',
6540
- format: {
6541
- kind: 'boolean'
6542
- }
6543
- },
6544
- {
6545
- suffix: 'AllowArrayContainsAny',
6546
- format: {
6547
- kind: 'boolean'
6548
- }
6549
- },
6550
- {
6551
- suffix: 'Category',
6552
- format: {
6553
- kind: 'free-text'
6554
- }
6555
- },
6556
- {
6557
- suffix: 'Tags',
6558
- format: {
6559
- kind: 'comma-list-lowercase'
6560
- }
6561
- },
6562
- {
6563
- suffix: 'Related',
6564
- format: {
6565
- kind: 'comma-list-kebab-slug'
6566
- }
6567
- },
6568
- {
6569
- suffix: 'SkillRefs',
6570
- format: {
6571
- kind: 'comma-list-kebab-slug'
6572
- }
6573
- },
6574
- {
6575
- suffix: 'Path',
6576
- multiple: true,
6577
- format: {
6578
- kind: 'comma-list-free-text'
6579
- }
6580
- },
6581
- {
6582
- suffix: 'Helper',
6583
- format: {
6584
- kind: 'free-text'
6585
- }
6586
- }
6587
- ];
6588
- var spec = {
6589
- marker: 'dbxModelFirebaseIndex',
6590
- companions: allCompanions.filter(function(c) {
6591
- return knownCompanions.includes(c.suffix);
6592
- })
6593
- };
6594
- function handleCommaItem(input) {
6595
- var commentNode = input.commentNode, parsed = input.parsed, suffix = input.suffix, value = input.value, lineIndex = input.lineIndex;
6596
- if (suffix === 'Related') reportOnJsdocLine({
6597
- commentNode: commentNode,
6598
- parsed: parsed,
6599
- sourceCode: sourceCode,
6600
- lineIndex: lineIndex,
6601
- messageId: 'relatedNotKebab',
6602
- data: {
6603
- value: value
6604
- },
6605
- report: context.report
6606
- });
6607
- else if (suffix === 'SkillRefs') reportOnJsdocLine({
6608
- commentNode: commentNode,
6609
- parsed: parsed,
6610
- sourceCode: sourceCode,
6611
- lineIndex: lineIndex,
6612
- messageId: 'skillRefsNotKebab',
6613
- data: {
6614
- value: value
6615
- },
6616
- report: context.report
6617
- });
6618
- }
6619
- function handleTagsNotLowercase(commentNode, parsed, v) {
6620
- if (v.suffix !== 'Tags') return;
6621
- var fix = buildLowercaseTagsFix({
6622
- commentNode: commentNode,
6623
- parsed: parsed,
6624
- sourceCode: sourceCode,
6625
- tag: v.raw
6626
- });
6627
- var fixer = fix ? function(fixer2) {
6628
- return fixer2.replaceTextRange([
6629
- fix.startOffset,
6630
- fix.endOffset
6631
- ], fix.replacement);
6632
- } : undefined;
6633
- reportOnJsdocLine({
6634
- commentNode: commentNode,
6635
- parsed: parsed,
6636
- sourceCode: sourceCode,
6637
- lineIndex: v.lineIndex,
6638
- messageId: 'tagsNotLowercase',
6639
- data: {
6640
- value: v.value
6641
- },
6642
- report: context.report,
6643
- fix: fixer
6644
- });
6645
- }
6646
- function handleViolation(commentNode, parsed, v) {
6647
- switch(v.kind){
6648
- case 'missing':
6649
- case 'empty':
6650
- if (v.suffix === 'Model') reportOnJsdocLine({
6651
- commentNode: commentNode,
6652
- parsed: parsed,
6653
- sourceCode: sourceCode,
6654
- lineIndex: v.lineIndex,
6655
- messageId: 'missingModel',
6656
- report: context.report
6657
- });
6658
- break;
6659
- case 'invalid-kebab':
6660
- if (v.suffix === 'Slug') reportOnJsdocLine({
6661
- commentNode: commentNode,
6662
- parsed: parsed,
6663
- sourceCode: sourceCode,
6664
- lineIndex: v.lineIndex,
6665
- messageId: 'slugNotKebab',
6666
- data: {
6667
- value: v.value
6668
- },
6669
- report: context.report
6670
- });
6671
- break;
6672
- case 'invalid-pascal':
6673
- if (v.suffix === 'Model') reportOnJsdocLine({
6674
- commentNode: commentNode,
6675
- parsed: parsed,
6676
- sourceCode: sourceCode,
6677
- lineIndex: v.lineIndex,
6678
- messageId: 'invalidModelIdentifier',
6679
- data: {
6680
- value: v.value
6681
- },
6682
- report: context.report
6683
- });
6684
- break;
6685
- case 'invalid-enum':
6686
- if (v.suffix === 'Scope') reportOnJsdocLine({
6687
- commentNode: commentNode,
6688
- parsed: parsed,
6689
- sourceCode: sourceCode,
6690
- lineIndex: v.lineIndex,
6691
- messageId: 'invalidScope',
6692
- data: {
6693
- value: v.value,
6694
- allowed: v.allowed.join(', ')
6695
- },
6696
- report: context.report
6697
- });
6698
- break;
6699
- case 'invalid-boolean':
6700
- reportOnJsdocLine({
6701
- commentNode: commentNode,
6702
- parsed: parsed,
6703
- sourceCode: sourceCode,
6704
- lineIndex: v.lineIndex,
6705
- messageId: 'invalidBooleanValue',
6706
- data: {
6707
- name: v.suffix,
6708
- value: v.value
6709
- },
6710
- report: context.report
6711
- });
6712
- break;
6713
- case 'comma-item-not-kebab':
6714
- handleCommaItem({
6715
- commentNode: commentNode,
6716
- parsed: parsed,
6717
- suffix: v.suffix,
6718
- value: v.value,
6719
- lineIndex: v.lineIndex
6720
- });
6721
- break;
6722
- case 'tags-not-lowercase':
6723
- handleTagsNotLowercase(commentNode, parsed, v);
6724
- break;
6725
- case 'unknown':
6726
- reportOnJsdocLine({
6727
- commentNode: commentNode,
6728
- parsed: parsed,
6729
- sourceCode: sourceCode,
6730
- lineIndex: v.lineIndex,
6731
- messageId: 'unknownDbxModelFirebaseIndexTag',
6732
- data: {
6733
- name: v.suffix,
6734
- known: knownCompanions.join(', ')
6735
- },
6736
- report: context.report
6737
- });
6738
- break;
6739
- case 'duplicate':
6740
- reportOnJsdocLine({
6741
- commentNode: commentNode,
6742
- parsed: parsed,
6743
- sourceCode: sourceCode,
6744
- lineIndex: v.lineIndex,
6745
- messageId: 'duplicateCompanionTag',
6746
- data: {
6747
- name: v.suffix
6748
- },
6749
- report: context.report
6750
- });
6751
- break;
6752
- }
6753
- }
6754
- function checkJsdoc(commentNode) {
6755
- var parsed = parseJsdocComment(commentNode.value);
6756
- var _findFamilyTags = findFamilyTags(parsed, spec.marker), markerTag = _findFamilyTags.markerTag, familyTags = _findFamilyTags.familyTags;
6757
- if (familyTags.length === 0 || requireBareMarker && !markerTag) return;
6758
- var triggerTag = markerTag !== null && markerTag !== void 0 ? markerTag : familyTags[0];
6759
- checkDbxTagFamily({
6760
- spec: spec,
6761
- markerTag: triggerTag,
6762
- familyTags: familyTags,
6763
- emit: function emit(v) {
6764
- return handleViolation(commentNode, parsed, v);
6765
- }
6766
- });
6767
- }
6768
- return {
6769
- FunctionDeclaration: function FunctionDeclaration(node) {
6770
- if (!node.body) return;
6771
- var jsdoc = leadingJsdocFor(sourceCode, getStatementAnchor(node));
6772
- if (jsdoc) checkJsdoc(jsdoc);
6773
- }
6774
- };
6775
- }
6776
- };
6777
-
6778
6432
  function _array_like_to_array$5(arr, len) {
6779
6433
  if (len == null || len > arr.length) len = arr.length;
6780
6434
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -10256,7 +9910,6 @@ function _unsupported_iterable_to_array(o, minLen) {
10256
9910
  'require-dbx-web-companion-tags': UTIL_REQUIRE_DBX_WEB_COMPANION_TAGS_RULE,
10257
9911
  'require-dbx-docs-ui-example-companion-tags': UTIL_REQUIRE_DBX_DOCS_UI_EXAMPLE_COMPANION_TAGS_RULE,
10258
9912
  'require-dbx-model-snapshot-field-companion-tags': UTIL_REQUIRE_DBX_MODEL_SNAPSHOT_FIELD_COMPANION_TAGS_RULE,
10259
- 'require-dbx-model-firebase-index-companion-tags': UTIL_REQUIRE_DBX_MODEL_FIREBASE_INDEX_COMPANION_TAGS_RULE,
10260
9913
  'require-dbx-action-companion-tags': UTIL_REQUIRE_DBX_ACTION_COMPANION_TAGS_RULE,
10261
9914
  'require-dbx-form-field-companion-tags': UTIL_REQUIRE_DBX_FORM_FIELD_COMPANION_TAGS_RULE,
10262
9915
  'require-dbx-model-companion-tags': UTIL_REQUIRE_DBX_MODEL_COMPANION_TAGS_RULE,
@@ -10269,6 +9922,11 @@ function _unsupported_iterable_to_array(o, minLen) {
10269
9922
  'prefer-suggested-string': UTIL_PREFER_SUGGESTED_STRING_RULE
10270
9923
  }
10271
9924
  };
9925
+ /**
9926
+ * camelCase alias of {@link UTIL_ESLINT_PLUGIN} matching the conventional ESLint plugin export name.
9927
+ *
9928
+ * @dbxAllowConstantName
9929
+ */ var utilESLintPlugin = UTIL_ESLINT_PLUGIN;
10272
9930
 
10273
9931
  exports.UTIL_ESLINT_PLUGIN = UTIL_ESLINT_PLUGIN;
10274
9932
  exports.UTIL_NO_INLINE_TYPE_IMPORT_RULE = UTIL_NO_INLINE_TYPE_IMPORT_RULE;
@@ -10285,7 +9943,6 @@ exports.UTIL_REQUIRE_DBX_DOCS_UI_EXAMPLE_COMPANION_TAGS_RULE = UTIL_REQUIRE_DBX_
10285
9943
  exports.UTIL_REQUIRE_DBX_FILTER_COMPANION_TAGS_RULE = UTIL_REQUIRE_DBX_FILTER_COMPANION_TAGS_RULE;
10286
9944
  exports.UTIL_REQUIRE_DBX_FORM_FIELD_COMPANION_TAGS_RULE = UTIL_REQUIRE_DBX_FORM_FIELD_COMPANION_TAGS_RULE;
10287
9945
  exports.UTIL_REQUIRE_DBX_MODEL_COMPANION_TAGS_RULE = UTIL_REQUIRE_DBX_MODEL_COMPANION_TAGS_RULE;
10288
- exports.UTIL_REQUIRE_DBX_MODEL_FIREBASE_INDEX_COMPANION_TAGS_RULE = UTIL_REQUIRE_DBX_MODEL_FIREBASE_INDEX_COMPANION_TAGS_RULE;
10289
9946
  exports.UTIL_REQUIRE_DBX_MODEL_SNAPSHOT_FIELD_COMPANION_TAGS_RULE = UTIL_REQUIRE_DBX_MODEL_SNAPSHOT_FIELD_COMPANION_TAGS_RULE;
10290
9947
  exports.UTIL_REQUIRE_DBX_PIPE_COMPANION_TAGS_RULE = UTIL_REQUIRE_DBX_PIPE_COMPANION_TAGS_RULE;
10291
9948
  exports.UTIL_REQUIRE_DBX_RULE_COMPANION_TAGS_RULE = UTIL_REQUIRE_DBX_RULE_COMPANION_TAGS_RULE;
@@ -10297,3 +9954,4 @@ exports.UTIL_REQUIRE_EXPORTED_JSDOC_EXAMPLE_RULE = UTIL_REQUIRE_EXPORTED_JSDOC_E
10297
9954
  exports.UTIL_REQUIRE_NO_SIDE_EFFECTS_RULE = UTIL_REQUIRE_NO_SIDE_EFFECTS_RULE;
10298
9955
  exports.UTIL_REQUIRE_READONLY_CONFIG_PARAMS_RULE = UTIL_REQUIRE_READONLY_CONFIG_PARAMS_RULE;
10299
9956
  exports.UTIL_REQUIRE_SINGLE_RETURN_RULE = UTIL_REQUIRE_SINGLE_RETURN_RULE;
9957
+ exports.utilESLintPlugin = utilESLintPlugin;
@@ -5002,7 +5002,7 @@ function reportUtilAllowedCategory(ctx, familyTags, allowedCategories) {
5002
5002
  /**
5003
5003
  * Default companion-tag names recognized in the `@dbxUtil` family. The names exclude the
5004
5004
  * `dbxUtil` prefix (so `@dbxUtilCategory` is represented as `'Category'`).
5005
- */ var DEFAULT_KNOWN_COMPANIONS$a = [
5005
+ */ var DEFAULT_KNOWN_COMPANIONS$9 = [
5006
5006
  'Category',
5007
5007
  'Kind',
5008
5008
  'Tags',
@@ -5089,7 +5089,7 @@ function reportUtilAllowedCategory(ctx, familyTags, allowedCategories) {
5089
5089
  var sourceCode = context.sourceCode;
5090
5090
  var allowedCategories = options.allowedCategories;
5091
5091
  var allowedKinds = (_options_allowedKinds = options.allowedKinds) !== null && _options_allowedKinds !== void 0 ? _options_allowedKinds : DEFAULT_ALLOWED_KINDS$2;
5092
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$a;
5092
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$9;
5093
5093
  var requireBareMarker = options.requireBareMarker !== false;
5094
5094
  var allCompanions = [
5095
5095
  {
@@ -5191,7 +5191,7 @@ var DEFAULT_ALLOWED_CATEGORIES$2 = [
5191
5191
  'async',
5192
5192
  'misc'
5193
5193
  ];
5194
- var DEFAULT_KNOWN_COMPANIONS$9 = [
5194
+ var DEFAULT_KNOWN_COMPANIONS$8 = [
5195
5195
  'Slug',
5196
5196
  'Category',
5197
5197
  'Related',
@@ -5250,7 +5250,7 @@ var DEFAULT_KNOWN_COMPANIONS$9 = [
5250
5250
  var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
5251
5251
  var sourceCode = context.sourceCode;
5252
5252
  var allowedCategories = (_options_allowedCategories = options.allowedCategories) !== null && _options_allowedCategories !== void 0 ? _options_allowedCategories : DEFAULT_ALLOWED_CATEGORIES$2;
5253
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$9;
5253
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$8;
5254
5254
  var requireBareMarker = options.requireBareMarker !== false;
5255
5255
  var allCompanions = [
5256
5256
  {
@@ -5422,7 +5422,7 @@ var DEFAULT_KNOWN_COMPANIONS$9 = [
5422
5422
  }
5423
5423
  };
5424
5424
 
5425
- var DEFAULT_KNOWN_COMPANIONS$8 = [
5425
+ var DEFAULT_KNOWN_COMPANIONS$7 = [
5426
5426
  'Slug',
5427
5427
  'Related',
5428
5428
  'SkillRefs'
@@ -5470,7 +5470,7 @@ var DEFAULT_KNOWN_COMPANIONS$8 = [
5470
5470
  var _context_options_, _options_knownCompanions;
5471
5471
  var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
5472
5472
  var sourceCode = context.sourceCode;
5473
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$8;
5473
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$7;
5474
5474
  var requireBareMarker = options.requireBareMarker !== false;
5475
5475
  var allCompanions = [
5476
5476
  {
@@ -5621,7 +5621,7 @@ var DEFAULT_ALLOWED_KINDS$1 = [
5621
5621
  'pipe',
5622
5622
  'service'
5623
5623
  ];
5624
- var DEFAULT_KNOWN_COMPANIONS$7 = [
5624
+ var DEFAULT_KNOWN_COMPANIONS$6 = [
5625
5625
  'Slug',
5626
5626
  'Category',
5627
5627
  'Kind',
@@ -5691,7 +5691,7 @@ var DEFAULT_KNOWN_COMPANIONS$7 = [
5691
5691
  var sourceCode = context.sourceCode;
5692
5692
  var allowedCategories = (_options_allowedCategories = options.allowedCategories) !== null && _options_allowedCategories !== void 0 ? _options_allowedCategories : DEFAULT_ALLOWED_CATEGORIES$1;
5693
5693
  var allowedKinds = (_options_allowedKinds = options.allowedKinds) !== null && _options_allowedKinds !== void 0 ? _options_allowedKinds : DEFAULT_ALLOWED_KINDS$1;
5694
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$7;
5694
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$6;
5695
5695
  var requireBareMarker = options.requireBareMarker !== false;
5696
5696
  // Class-level companions (Slug, Category, Kind, Related, SkillRefs, ContentProjection, MinimalExample).
5697
5697
  var allClassCompanions = [
@@ -5912,7 +5912,7 @@ var DEFAULT_ALLOWED_CATEGORIES = [
5912
5912
  'router',
5913
5913
  'misc'
5914
5914
  ];
5915
- var DEFAULT_KNOWN_COMPANIONS$6 = [
5915
+ var DEFAULT_KNOWN_COMPANIONS$5 = [
5916
5916
  'Slug',
5917
5917
  'Category',
5918
5918
  'Summary',
@@ -5972,7 +5972,7 @@ var DEFAULT_KNOWN_COMPANIONS$6 = [
5972
5972
  var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
5973
5973
  var sourceCode = context.sourceCode;
5974
5974
  var allowedCategories = (_options_allowedCategories = options.allowedCategories) !== null && _options_allowedCategories !== void 0 ? _options_allowedCategories : DEFAULT_ALLOWED_CATEGORIES;
5975
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$6;
5975
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$5;
5976
5976
  var requireBareMarker = options.requireBareMarker !== false;
5977
5977
  var allCompanions = [
5978
5978
  {
@@ -6164,7 +6164,7 @@ var DEFAULT_ALLOWED_KINDS = [
6164
6164
  'factory',
6165
6165
  'const'
6166
6166
  ];
6167
- var DEFAULT_KNOWN_COMPANIONS$5 = [
6167
+ var DEFAULT_KNOWN_COMPANIONS$4 = [
6168
6168
  'Slug',
6169
6169
  'Category',
6170
6170
  'Kind',
@@ -6223,7 +6223,7 @@ var DEFAULT_KNOWN_COMPANIONS$5 = [
6223
6223
  var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
6224
6224
  var sourceCode = context.sourceCode;
6225
6225
  var allowedKinds = (_options_allowedKinds = options.allowedKinds) !== null && _options_allowedKinds !== void 0 ? _options_allowedKinds : DEFAULT_ALLOWED_KINDS;
6226
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$5;
6226
+ var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$4;
6227
6227
  var requireBareMarker = options.requireBareMarker !== false;
6228
6228
  var allCompanions = [
6229
6229
  {
@@ -6427,352 +6427,6 @@ var DEFAULT_KNOWN_COMPANIONS$5 = [
6427
6427
  }
6428
6428
  };
6429
6429
 
6430
- var DEFAULT_ALLOWED_SCOPES = [
6431
- 'COLLECTION',
6432
- 'COLLECTION_GROUP'
6433
- ];
6434
- var DEFAULT_KNOWN_COMPANIONS$4 = [
6435
- 'Slug',
6436
- 'Model',
6437
- 'Scope',
6438
- 'Dispatcher',
6439
- 'Manual',
6440
- 'Skip',
6441
- 'AllowArrayContainsAny',
6442
- 'Category',
6443
- 'Tags',
6444
- 'Related',
6445
- 'SkillRefs',
6446
- 'Path',
6447
- 'Helper'
6448
- ];
6449
- /**
6450
- * ESLint rule enforcing `@dbxModelFirebaseIndex` companion tags. Mirrors the
6451
- * scanner schema at `packages/dbx-components-mcp/src/scan/model-firebase-index-extract.ts`.
6452
- */ var UTIL_REQUIRE_DBX_MODEL_FIREBASE_INDEX_COMPANION_TAGS_RULE = {
6453
- meta: {
6454
- type: 'suggestion',
6455
- fixable: 'code',
6456
- docs: {
6457
- description: 'Require the canonical `@dbxModelFirebaseIndex*` companion tags on `@dbxModelFirebaseIndex`-tagged factories.',
6458
- recommended: true
6459
- },
6460
- messages: {
6461
- missingModel: '`@dbxModelFirebaseIndex`-tagged factory is missing the required `@dbxModelFirebaseIndexModel <ModelName>` companion tag.',
6462
- invalidModelIdentifier: '`@dbxModelFirebaseIndexModel` value `{{value}}` is not a valid PascalCase identifier.',
6463
- invalidScope: '`@dbxModelFirebaseIndexScope` value `{{value}}` is not allowed. Use one of: {{allowed}}.',
6464
- invalidBooleanValue: '`@dbxModelFirebaseIndex{{name}}` value `{{value}}` is not a recognized boolean.',
6465
- slugNotKebab: '`@dbxModelFirebaseIndexSlug` value `{{value}}` is not a valid kebab-case slug.',
6466
- tagsNotLowercase: '`@dbxModelFirebaseIndexTags` token `{{value}}` contains uppercase characters; tokens should be lowercase.',
6467
- relatedNotKebab: '`@dbxModelFirebaseIndexRelated` item `{{value}}` is not a kebab-case slug.',
6468
- skillRefsNotKebab: '`@dbxModelFirebaseIndexSkillRefs` item `{{value}}` is not a kebab-case slug.',
6469
- unknownDbxModelFirebaseIndexTag: '`@dbxModelFirebaseIndex{{name}}` is not a recognized companion tag. Known companions: {{known}}.',
6470
- duplicateCompanionTag: '`@dbxModelFirebaseIndex{{name}}` is declared more than once.'
6471
- },
6472
- schema: [
6473
- {
6474
- type: 'object',
6475
- additionalProperties: false,
6476
- properties: {
6477
- allowedScopes: {
6478
- type: 'array',
6479
- items: {
6480
- type: 'string'
6481
- }
6482
- },
6483
- knownCompanions: {
6484
- type: 'array',
6485
- items: {
6486
- type: 'string'
6487
- }
6488
- },
6489
- requireBareMarker: {
6490
- type: 'boolean'
6491
- }
6492
- }
6493
- }
6494
- ]
6495
- },
6496
- create: function create(context) {
6497
- var _context_options_, _options_allowedScopes, _options_knownCompanions;
6498
- var options = (_context_options_ = context.options[0]) !== null && _context_options_ !== void 0 ? _context_options_ : {};
6499
- var sourceCode = context.sourceCode;
6500
- var allowedScopes = (_options_allowedScopes = options.allowedScopes) !== null && _options_allowedScopes !== void 0 ? _options_allowedScopes : DEFAULT_ALLOWED_SCOPES;
6501
- var knownCompanions = (_options_knownCompanions = options.knownCompanions) !== null && _options_knownCompanions !== void 0 ? _options_knownCompanions : DEFAULT_KNOWN_COMPANIONS$4;
6502
- var requireBareMarker = options.requireBareMarker !== false;
6503
- var allCompanions = [
6504
- {
6505
- suffix: 'Slug',
6506
- format: {
6507
- kind: 'kebab-slug'
6508
- }
6509
- },
6510
- {
6511
- suffix: 'Model',
6512
- required: true,
6513
- format: {
6514
- kind: 'pascal-identifier'
6515
- }
6516
- },
6517
- {
6518
- suffix: 'Scope',
6519
- format: {
6520
- kind: 'enum',
6521
- values: allowedScopes
6522
- }
6523
- },
6524
- {
6525
- suffix: 'Dispatcher',
6526
- format: {
6527
- kind: 'boolean'
6528
- }
6529
- },
6530
- {
6531
- suffix: 'Manual',
6532
- format: {
6533
- kind: 'boolean'
6534
- }
6535
- },
6536
- {
6537
- suffix: 'Skip',
6538
- format: {
6539
- kind: 'boolean'
6540
- }
6541
- },
6542
- {
6543
- suffix: 'AllowArrayContainsAny',
6544
- format: {
6545
- kind: 'boolean'
6546
- }
6547
- },
6548
- {
6549
- suffix: 'Category',
6550
- format: {
6551
- kind: 'free-text'
6552
- }
6553
- },
6554
- {
6555
- suffix: 'Tags',
6556
- format: {
6557
- kind: 'comma-list-lowercase'
6558
- }
6559
- },
6560
- {
6561
- suffix: 'Related',
6562
- format: {
6563
- kind: 'comma-list-kebab-slug'
6564
- }
6565
- },
6566
- {
6567
- suffix: 'SkillRefs',
6568
- format: {
6569
- kind: 'comma-list-kebab-slug'
6570
- }
6571
- },
6572
- {
6573
- suffix: 'Path',
6574
- multiple: true,
6575
- format: {
6576
- kind: 'comma-list-free-text'
6577
- }
6578
- },
6579
- {
6580
- suffix: 'Helper',
6581
- format: {
6582
- kind: 'free-text'
6583
- }
6584
- }
6585
- ];
6586
- var spec = {
6587
- marker: 'dbxModelFirebaseIndex',
6588
- companions: allCompanions.filter(function(c) {
6589
- return knownCompanions.includes(c.suffix);
6590
- })
6591
- };
6592
- function handleCommaItem(input) {
6593
- var commentNode = input.commentNode, parsed = input.parsed, suffix = input.suffix, value = input.value, lineIndex = input.lineIndex;
6594
- if (suffix === 'Related') reportOnJsdocLine({
6595
- commentNode: commentNode,
6596
- parsed: parsed,
6597
- sourceCode: sourceCode,
6598
- lineIndex: lineIndex,
6599
- messageId: 'relatedNotKebab',
6600
- data: {
6601
- value: value
6602
- },
6603
- report: context.report
6604
- });
6605
- else if (suffix === 'SkillRefs') reportOnJsdocLine({
6606
- commentNode: commentNode,
6607
- parsed: parsed,
6608
- sourceCode: sourceCode,
6609
- lineIndex: lineIndex,
6610
- messageId: 'skillRefsNotKebab',
6611
- data: {
6612
- value: value
6613
- },
6614
- report: context.report
6615
- });
6616
- }
6617
- function handleTagsNotLowercase(commentNode, parsed, v) {
6618
- if (v.suffix !== 'Tags') return;
6619
- var fix = buildLowercaseTagsFix({
6620
- commentNode: commentNode,
6621
- parsed: parsed,
6622
- sourceCode: sourceCode,
6623
- tag: v.raw
6624
- });
6625
- var fixer = fix ? function(fixer2) {
6626
- return fixer2.replaceTextRange([
6627
- fix.startOffset,
6628
- fix.endOffset
6629
- ], fix.replacement);
6630
- } : undefined;
6631
- reportOnJsdocLine({
6632
- commentNode: commentNode,
6633
- parsed: parsed,
6634
- sourceCode: sourceCode,
6635
- lineIndex: v.lineIndex,
6636
- messageId: 'tagsNotLowercase',
6637
- data: {
6638
- value: v.value
6639
- },
6640
- report: context.report,
6641
- fix: fixer
6642
- });
6643
- }
6644
- function handleViolation(commentNode, parsed, v) {
6645
- switch(v.kind){
6646
- case 'missing':
6647
- case 'empty':
6648
- if (v.suffix === 'Model') reportOnJsdocLine({
6649
- commentNode: commentNode,
6650
- parsed: parsed,
6651
- sourceCode: sourceCode,
6652
- lineIndex: v.lineIndex,
6653
- messageId: 'missingModel',
6654
- report: context.report
6655
- });
6656
- break;
6657
- case 'invalid-kebab':
6658
- if (v.suffix === 'Slug') reportOnJsdocLine({
6659
- commentNode: commentNode,
6660
- parsed: parsed,
6661
- sourceCode: sourceCode,
6662
- lineIndex: v.lineIndex,
6663
- messageId: 'slugNotKebab',
6664
- data: {
6665
- value: v.value
6666
- },
6667
- report: context.report
6668
- });
6669
- break;
6670
- case 'invalid-pascal':
6671
- if (v.suffix === 'Model') reportOnJsdocLine({
6672
- commentNode: commentNode,
6673
- parsed: parsed,
6674
- sourceCode: sourceCode,
6675
- lineIndex: v.lineIndex,
6676
- messageId: 'invalidModelIdentifier',
6677
- data: {
6678
- value: v.value
6679
- },
6680
- report: context.report
6681
- });
6682
- break;
6683
- case 'invalid-enum':
6684
- if (v.suffix === 'Scope') reportOnJsdocLine({
6685
- commentNode: commentNode,
6686
- parsed: parsed,
6687
- sourceCode: sourceCode,
6688
- lineIndex: v.lineIndex,
6689
- messageId: 'invalidScope',
6690
- data: {
6691
- value: v.value,
6692
- allowed: v.allowed.join(', ')
6693
- },
6694
- report: context.report
6695
- });
6696
- break;
6697
- case 'invalid-boolean':
6698
- reportOnJsdocLine({
6699
- commentNode: commentNode,
6700
- parsed: parsed,
6701
- sourceCode: sourceCode,
6702
- lineIndex: v.lineIndex,
6703
- messageId: 'invalidBooleanValue',
6704
- data: {
6705
- name: v.suffix,
6706
- value: v.value
6707
- },
6708
- report: context.report
6709
- });
6710
- break;
6711
- case 'comma-item-not-kebab':
6712
- handleCommaItem({
6713
- commentNode: commentNode,
6714
- parsed: parsed,
6715
- suffix: v.suffix,
6716
- value: v.value,
6717
- lineIndex: v.lineIndex
6718
- });
6719
- break;
6720
- case 'tags-not-lowercase':
6721
- handleTagsNotLowercase(commentNode, parsed, v);
6722
- break;
6723
- case 'unknown':
6724
- reportOnJsdocLine({
6725
- commentNode: commentNode,
6726
- parsed: parsed,
6727
- sourceCode: sourceCode,
6728
- lineIndex: v.lineIndex,
6729
- messageId: 'unknownDbxModelFirebaseIndexTag',
6730
- data: {
6731
- name: v.suffix,
6732
- known: knownCompanions.join(', ')
6733
- },
6734
- report: context.report
6735
- });
6736
- break;
6737
- case 'duplicate':
6738
- reportOnJsdocLine({
6739
- commentNode: commentNode,
6740
- parsed: parsed,
6741
- sourceCode: sourceCode,
6742
- lineIndex: v.lineIndex,
6743
- messageId: 'duplicateCompanionTag',
6744
- data: {
6745
- name: v.suffix
6746
- },
6747
- report: context.report
6748
- });
6749
- break;
6750
- }
6751
- }
6752
- function checkJsdoc(commentNode) {
6753
- var parsed = parseJsdocComment(commentNode.value);
6754
- var _findFamilyTags = findFamilyTags(parsed, spec.marker), markerTag = _findFamilyTags.markerTag, familyTags = _findFamilyTags.familyTags;
6755
- if (familyTags.length === 0 || requireBareMarker && !markerTag) return;
6756
- var triggerTag = markerTag !== null && markerTag !== void 0 ? markerTag : familyTags[0];
6757
- checkDbxTagFamily({
6758
- spec: spec,
6759
- markerTag: triggerTag,
6760
- familyTags: familyTags,
6761
- emit: function emit(v) {
6762
- return handleViolation(commentNode, parsed, v);
6763
- }
6764
- });
6765
- }
6766
- return {
6767
- FunctionDeclaration: function FunctionDeclaration(node) {
6768
- if (!node.body) return;
6769
- var jsdoc = leadingJsdocFor(sourceCode, getStatementAnchor(node));
6770
- if (jsdoc) checkJsdoc(jsdoc);
6771
- }
6772
- };
6773
- }
6774
- };
6775
-
6776
6430
  function _array_like_to_array$5(arr, len) {
6777
6431
  if (len == null || len > arr.length) len = arr.length;
6778
6432
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -10254,7 +9908,6 @@ function _unsupported_iterable_to_array(o, minLen) {
10254
9908
  'require-dbx-web-companion-tags': UTIL_REQUIRE_DBX_WEB_COMPANION_TAGS_RULE,
10255
9909
  'require-dbx-docs-ui-example-companion-tags': UTIL_REQUIRE_DBX_DOCS_UI_EXAMPLE_COMPANION_TAGS_RULE,
10256
9910
  'require-dbx-model-snapshot-field-companion-tags': UTIL_REQUIRE_DBX_MODEL_SNAPSHOT_FIELD_COMPANION_TAGS_RULE,
10257
- 'require-dbx-model-firebase-index-companion-tags': UTIL_REQUIRE_DBX_MODEL_FIREBASE_INDEX_COMPANION_TAGS_RULE,
10258
9911
  'require-dbx-action-companion-tags': UTIL_REQUIRE_DBX_ACTION_COMPANION_TAGS_RULE,
10259
9912
  'require-dbx-form-field-companion-tags': UTIL_REQUIRE_DBX_FORM_FIELD_COMPANION_TAGS_RULE,
10260
9913
  'require-dbx-model-companion-tags': UTIL_REQUIRE_DBX_MODEL_COMPANION_TAGS_RULE,
@@ -10267,5 +9920,10 @@ function _unsupported_iterable_to_array(o, minLen) {
10267
9920
  'prefer-suggested-string': UTIL_PREFER_SUGGESTED_STRING_RULE
10268
9921
  }
10269
9922
  };
9923
+ /**
9924
+ * camelCase alias of {@link UTIL_ESLINT_PLUGIN} matching the conventional ESLint plugin export name.
9925
+ *
9926
+ * @dbxAllowConstantName
9927
+ */ var utilESLintPlugin = UTIL_ESLINT_PLUGIN;
10270
9928
 
10271
- export { UTIL_ESLINT_PLUGIN, UTIL_NO_INLINE_TYPE_IMPORT_RULE, UTIL_NO_SISTER_RE_EXPORT_RULE, UTIL_PREFER_CANONICAL_JSDOC_RULE, UTIL_PREFER_CONFIG_OBJECT_HARD_RULE, UTIL_PREFER_CONFIG_OBJECT_RULE, UTIL_PREFER_MAYBE_TYPE_RULE, UTIL_PREFER_NO_SIDE_EFFECTS_IN_JSDOC_RULE, UTIL_REQUIRE_CONSTANT_NAMING_RULE, UTIL_REQUIRE_DBX_ACTION_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_AUTH_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_DOCS_UI_EXAMPLE_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_FILTER_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_FORM_FIELD_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_MODEL_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_MODEL_FIREBASE_INDEX_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_MODEL_SNAPSHOT_FIELD_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_PIPE_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_RULE_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_UTIL_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_WEB_COMPANION_TAGS_RULE, UTIL_REQUIRE_DEFAULT_PREFIX_NAMING_RULE, UTIL_REQUIRE_DEPRECATED_ALIAS_PLACEMENT_RULE, UTIL_REQUIRE_EXPORTED_JSDOC_EXAMPLE_RULE, UTIL_REQUIRE_NO_SIDE_EFFECTS_RULE, UTIL_REQUIRE_READONLY_CONFIG_PARAMS_RULE, UTIL_REQUIRE_SINGLE_RETURN_RULE };
9929
+ export { UTIL_ESLINT_PLUGIN, UTIL_NO_INLINE_TYPE_IMPORT_RULE, UTIL_NO_SISTER_RE_EXPORT_RULE, UTIL_PREFER_CANONICAL_JSDOC_RULE, UTIL_PREFER_CONFIG_OBJECT_HARD_RULE, UTIL_PREFER_CONFIG_OBJECT_RULE, UTIL_PREFER_MAYBE_TYPE_RULE, UTIL_PREFER_NO_SIDE_EFFECTS_IN_JSDOC_RULE, UTIL_REQUIRE_CONSTANT_NAMING_RULE, UTIL_REQUIRE_DBX_ACTION_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_AUTH_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_DOCS_UI_EXAMPLE_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_FILTER_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_FORM_FIELD_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_MODEL_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_MODEL_SNAPSHOT_FIELD_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_PIPE_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_RULE_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_UTIL_COMPANION_TAGS_RULE, UTIL_REQUIRE_DBX_WEB_COMPANION_TAGS_RULE, UTIL_REQUIRE_DEFAULT_PREFIX_NAMING_RULE, UTIL_REQUIRE_DEPRECATED_ALIAS_PLACEMENT_RULE, UTIL_REQUIRE_EXPORTED_JSDOC_EXAMPLE_RULE, UTIL_REQUIRE_NO_SIDE_EFFECTS_RULE, UTIL_REQUIRE_READONLY_CONFIG_PARAMS_RULE, UTIL_REQUIRE_SINGLE_RETURN_RULE, utilESLintPlugin };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util/eslint",
3
- "version": "13.11.15",
3
+ "version": "13.11.16",
4
4
  "peerDependencies": {
5
5
  "@typescript-eslint/utils": "8.59.3"
6
6
  },
@@ -14,7 +14,6 @@ export { UTIL_REQUIRE_DBX_FILTER_COMPANION_TAGS_RULE, type UtilRequireDbxFilterC
14
14
  export { UTIL_REQUIRE_DBX_WEB_COMPANION_TAGS_RULE, type UtilRequireDbxWebCompanionTagsRuleOptions, type UtilRequireDbxWebCompanionTagsRuleDefinition } from './require-dbx-web-companion-tags.rule';
15
15
  export { UTIL_REQUIRE_DBX_DOCS_UI_EXAMPLE_COMPANION_TAGS_RULE, type UtilRequireDbxDocsUiExampleCompanionTagsRuleOptions, type UtilRequireDbxDocsUiExampleCompanionTagsRuleDefinition } from './require-dbx-docs-ui-example-companion-tags.rule';
16
16
  export { UTIL_REQUIRE_DBX_MODEL_SNAPSHOT_FIELD_COMPANION_TAGS_RULE, type UtilRequireDbxModelSnapshotFieldCompanionTagsRuleOptions, type UtilRequireDbxModelSnapshotFieldCompanionTagsRuleDefinition } from './require-dbx-model-snapshot-field-companion-tags.rule';
17
- export { UTIL_REQUIRE_DBX_MODEL_FIREBASE_INDEX_COMPANION_TAGS_RULE, type UtilRequireDbxModelFirebaseIndexCompanionTagsRuleOptions, type UtilRequireDbxModelFirebaseIndexCompanionTagsRuleDefinition } from './require-dbx-model-firebase-index-companion-tags.rule';
18
17
  export { UTIL_REQUIRE_DBX_ACTION_COMPANION_TAGS_RULE, type UtilRequireDbxActionCompanionTagsRuleOptions, type UtilRequireDbxActionCompanionTagsRuleDefinition } from './require-dbx-action-companion-tags.rule';
19
18
  export { UTIL_REQUIRE_DBX_FORM_FIELD_COMPANION_TAGS_RULE, type UtilRequireDbxFormFieldCompanionTagsRuleOptions, type UtilRequireDbxFormFieldCompanionTagsRuleDefinition } from './require-dbx-form-field-companion-tags.rule';
20
19
  export { UTIL_REQUIRE_DBX_MODEL_COMPANION_TAGS_RULE, type UtilRequireDbxModelCompanionTagsRuleOptions, type UtilRequireDbxModelCompanionTagsRuleDefinition } from './require-dbx-model-companion-tags.rule';
@@ -23,4 +22,4 @@ export { UTIL_REQUIRE_DBX_RULE_COMPANION_TAGS_RULE, type UtilRequireDbxRuleCompa
23
22
  export { UTIL_REQUIRE_CONSTANT_NAMING_RULE, type UtilRequireConstantNamingRuleOptions, type UtilRequireConstantNamingRuleDefinition } from './require-constant-naming.rule';
24
23
  export { UTIL_REQUIRE_DEFAULT_PREFIX_NAMING_RULE, type UtilRequireDefaultPrefixNamingRuleOptions, type UtilRequireDefaultPrefixNamingRuleDefinition } from './require-default-prefix-naming.rule';
25
24
  export { UTIL_REQUIRE_EXPORTED_JSDOC_EXAMPLE_RULE, type UtilRequireExportedJsdocExampleRuleOptions, type UtilRequireExportedJsdocExampleRuleDefinition } from './require-exported-jsdoc-example.rule';
26
- export { UTIL_ESLINT_PLUGIN, type UtilEslintPlugin } from './plugin';
25
+ export { UTIL_ESLINT_PLUGIN, utilESLintPlugin, type UtilEslintPlugin } from './plugin';
@@ -14,7 +14,6 @@ import { type UtilRequireDbxFilterCompanionTagsRuleDefinition } from './require-
14
14
  import { type UtilRequireDbxWebCompanionTagsRuleDefinition } from './require-dbx-web-companion-tags.rule';
15
15
  import { type UtilRequireDbxDocsUiExampleCompanionTagsRuleDefinition } from './require-dbx-docs-ui-example-companion-tags.rule';
16
16
  import { type UtilRequireDbxModelSnapshotFieldCompanionTagsRuleDefinition } from './require-dbx-model-snapshot-field-companion-tags.rule';
17
- import { type UtilRequireDbxModelFirebaseIndexCompanionTagsRuleDefinition } from './require-dbx-model-firebase-index-companion-tags.rule';
18
17
  import { type UtilRequireDbxActionCompanionTagsRuleDefinition } from './require-dbx-action-companion-tags.rule';
19
18
  import { type UtilRequireDbxFormFieldCompanionTagsRuleDefinition } from './require-dbx-form-field-companion-tags.rule';
20
19
  import { type UtilRequireDbxModelCompanionTagsRuleDefinition } from './require-dbx-model-companion-tags.rule';
@@ -47,7 +46,6 @@ export interface UtilEslintPlugin {
47
46
  readonly 'require-dbx-web-companion-tags': UtilRequireDbxWebCompanionTagsRuleDefinition;
48
47
  readonly 'require-dbx-docs-ui-example-companion-tags': UtilRequireDbxDocsUiExampleCompanionTagsRuleDefinition;
49
48
  readonly 'require-dbx-model-snapshot-field-companion-tags': UtilRequireDbxModelSnapshotFieldCompanionTagsRuleDefinition;
50
- readonly 'require-dbx-model-firebase-index-companion-tags': UtilRequireDbxModelFirebaseIndexCompanionTagsRuleDefinition;
51
49
  readonly 'require-dbx-action-companion-tags': UtilRequireDbxActionCompanionTagsRuleDefinition;
52
50
  readonly 'require-dbx-form-field-companion-tags': UtilRequireDbxFormFieldCompanionTagsRuleDefinition;
53
51
  readonly 'require-dbx-model-companion-tags': UtilRequireDbxModelCompanionTagsRuleDefinition;
@@ -67,3 +65,9 @@ export interface UtilEslintPlugin {
67
65
  * under the chosen plugin prefix (e.g. 'dereekb-util/require-no-side-effects').
68
66
  */
69
67
  export declare const UTIL_ESLINT_PLUGIN: UtilEslintPlugin;
68
+ /**
69
+ * camelCase alias of {@link UTIL_ESLINT_PLUGIN} matching the conventional ESLint plugin export name.
70
+ *
71
+ * @dbxAllowConstantName
72
+ */
73
+ export declare const utilESLintPlugin: UtilEslintPlugin;
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/util/fetch",
3
- "version": "13.11.15",
3
+ "version": "13.11.16",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.11.15",
5
+ "@dereekb/util": "13.11.16",
6
6
  "make-error": "^1.3.6",
7
7
  "fast-content-type-parse": "^3.0.0"
8
8
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "13.11.15",
3
+ "version": "13.11.16",
4
4
  "sideEffects": false,
5
5
  "exports": {
6
6
  "./test": {
package/test/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@dereekb/util/test",
3
- "version": "13.11.15",
3
+ "version": "13.11.16",
4
4
  "peerDependencies": {
5
- "@dereekb/util": "13.11.15",
5
+ "@dereekb/util": "13.11.16",
6
6
  "make-error": "^1.3.6"
7
7
  },
8
8
  "exports": {
@@ -1,44 +0,0 @@
1
- import type { Maybe } from '@dereekb/util';
2
- interface AstNode {
3
- readonly type: string;
4
- [key: string]: any;
5
- }
6
- /**
7
- * Options for the require-dbx-model-firebase-index-companion-tags rule.
8
- */
9
- export interface UtilRequireDbxModelFirebaseIndexCompanionTagsRuleOptions {
10
- readonly allowedScopes?: readonly string[];
11
- readonly knownCompanions?: readonly string[];
12
- readonly requireBareMarker?: boolean;
13
- }
14
- /**
15
- * ESLint rule definition for require-dbx-model-firebase-index-companion-tags.
16
- */
17
- export interface UtilRequireDbxModelFirebaseIndexCompanionTagsRuleDefinition {
18
- readonly meta: {
19
- readonly type: 'suggestion';
20
- readonly fixable: 'code';
21
- readonly docs: {
22
- readonly description: string;
23
- readonly recommended: boolean;
24
- };
25
- readonly messages: Readonly<Record<string, string>>;
26
- readonly schema: readonly object[];
27
- };
28
- create(context: {
29
- options: UtilRequireDbxModelFirebaseIndexCompanionTagsRuleOptions[];
30
- report: (descriptor: {
31
- loc?: AstNode;
32
- messageId: string;
33
- data?: Record<string, string>;
34
- fix?: (fixer: AstNode) => Maybe<AstNode | AstNode[]>;
35
- }) => void;
36
- sourceCode: AstNode;
37
- }): Record<string, (node: AstNode) => void>;
38
- }
39
- /**
40
- * ESLint rule enforcing `@dbxModelFirebaseIndex` companion tags. Mirrors the
41
- * scanner schema at `packages/dbx-components-mcp/src/scan/model-firebase-index-extract.ts`.
42
- */
43
- export declare const UTIL_REQUIRE_DBX_MODEL_FIREBASE_INDEX_COMPANION_TAGS_RULE: UtilRequireDbxModelFirebaseIndexCompanionTagsRuleDefinition;
44
- export {};