lint-suite 1.6.3 → 2.0.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.
Files changed (183) hide show
  1. package/README.md +117 -20
  2. package/eslint.cjs +3312 -492
  3. package/eslint.cjs.map +4 -4
  4. package/eslint.js +3304 -445
  5. package/eslint.js.map +4 -4
  6. package/lib/angular-template.d.ts +0 -1
  7. package/lib/angular-template.d.ts.map +1 -1
  8. package/lib/angular.d.ts +0 -1
  9. package/lib/angular.d.ts.map +1 -1
  10. package/lib/base-limits.d.ts.map +1 -1
  11. package/lib/rules/arrow-body-fits-line/arrow-body-fits-line.d.ts +6 -0
  12. package/lib/rules/arrow-body-fits-line/arrow-body-fits-line.d.ts.map +1 -0
  13. package/lib/rules/chain-fits-line/chain-fits-line.d.ts +6 -0
  14. package/lib/rules/chain-fits-line/chain-fits-line.d.ts.map +1 -0
  15. package/lib/rules/chain-receiver-is-name/chain-receiver-is-name.d.ts +7 -0
  16. package/lib/rules/chain-receiver-is-name/chain-receiver-is-name.d.ts.map +1 -0
  17. package/lib/rules/common/class-usage.type.d.ts +1 -0
  18. package/lib/rules/common/class-usage.type.d.ts.map +1 -1
  19. package/lib/rules/common/file-cache.type.d.ts +11 -0
  20. package/lib/rules/common/file-cache.type.d.ts.map +1 -0
  21. package/lib/rules/common/glob-matcher.type.d.ts +2 -0
  22. package/lib/rules/common/glob-matcher.type.d.ts.map +1 -0
  23. package/lib/rules/component-metadata.d.ts +2 -4
  24. package/lib/rules/component-metadata.d.ts.map +1 -1
  25. package/lib/rules/explicit-accessibility/common/explicit-accessibility.const.d.ts +1 -1
  26. package/lib/rules/explicit-accessibility/common/explicit-accessibility.const.d.ts.map +1 -1
  27. package/lib/rules/explicit-accessibility/common/explicit-accessibility.type.d.ts +4 -1
  28. package/lib/rules/explicit-accessibility/common/explicit-accessibility.type.d.ts.map +1 -1
  29. package/lib/rules/file-cache.d.ts +14 -0
  30. package/lib/rules/file-cache.d.ts.map +1 -0
  31. package/lib/rules/max-condition-operands/max-condition-operands.d.ts +10 -0
  32. package/lib/rules/max-condition-operands/max-condition-operands.d.ts.map +1 -0
  33. package/lib/rules/no-call-in-condition/common/no-call-in-condition.const.d.ts +6 -0
  34. package/lib/rules/no-call-in-condition/common/no-call-in-condition.const.d.ts.map +1 -0
  35. package/lib/rules/no-call-in-condition/common/no-call-in-condition.type.d.ts +21 -0
  36. package/lib/rules/no-call-in-condition/common/no-call-in-condition.type.d.ts.map +1 -0
  37. package/lib/rules/no-call-in-condition/no-call-in-condition.d.ts +7 -0
  38. package/lib/rules/no-call-in-condition/no-call-in-condition.d.ts.map +1 -0
  39. package/lib/rules/no-call-in-condition/utils/call-exemptions.util.d.ts +4 -0
  40. package/lib/rules/no-call-in-condition/utils/call-exemptions.util.d.ts.map +1 -0
  41. package/lib/rules/no-call-in-condition/utils/condition-calls.util.d.ts +7 -0
  42. package/lib/rules/no-call-in-condition/utils/condition-calls.util.d.ts.map +1 -0
  43. package/lib/rules/no-grouped-condition/no-grouped-condition.d.ts +7 -0
  44. package/lib/rules/no-grouped-condition/no-grouped-condition.d.ts.map +1 -0
  45. package/lib/rules/no-inline-object-types/no-inline-object-types.d.ts.map +1 -1
  46. package/lib/rules/no-inline-return-object/no-inline-return-object.d.ts +6 -0
  47. package/lib/rules/no-inline-return-object/no-inline-return-object.d.ts.map +1 -0
  48. package/lib/rules/no-nested-object-value/common/no-nested-object-value.const.d.ts +5 -0
  49. package/lib/rules/no-nested-object-value/common/no-nested-object-value.const.d.ts.map +1 -0
  50. package/lib/rules/no-nested-object-value/common/no-nested-object-value.type.d.ts +7 -0
  51. package/lib/rules/no-nested-object-value/common/no-nested-object-value.type.d.ts.map +1 -0
  52. package/lib/rules/no-nested-object-value/no-nested-object-value.d.ts +7 -0
  53. package/lib/rules/no-nested-object-value/no-nested-object-value.d.ts.map +1 -0
  54. package/lib/rules/no-nested-object-value/utils/decorator-config.util.d.ts +3 -0
  55. package/lib/rules/no-nested-object-value/utils/decorator-config.util.d.ts.map +1 -0
  56. package/lib/rules/no-spread-expression/no-spread-expression.d.ts +6 -0
  57. package/lib/rules/no-spread-expression/no-spread-expression.d.ts.map +1 -0
  58. package/lib/rules/no-unstyled-classes/no-unstyled-classes.d.ts.map +1 -1
  59. package/lib/rules/no-unstyled-classes/styles/component-stylesheets.d.ts.map +1 -1
  60. package/lib/rules/no-unstyled-classes/styles/linked-stylesheets.d.ts +3 -0
  61. package/lib/rules/no-unstyled-classes/styles/linked-stylesheets.d.ts.map +1 -0
  62. package/lib/rules/no-unstyled-classes/styles/stylesheet-classes.d.ts.map +1 -1
  63. package/lib/rules/no-unstyled-classes/styles/template-stylesheets.d.ts +1 -1
  64. package/lib/rules/no-unstyled-classes/styles/template-stylesheets.d.ts.map +1 -1
  65. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-directive-index.d.ts +5 -0
  66. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-directive-index.d.ts.map +1 -1
  67. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-resolved-path.d.ts.map +1 -1
  68. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-resolution.d.ts +0 -1
  69. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-resolution.d.ts.map +1 -1
  70. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-reads.d.ts.map +1 -1
  71. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-references.d.ts.map +1 -1
  72. package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-index.type.d.ts +6 -8
  73. package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-index.type.d.ts.map +1 -1
  74. package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-usage.type.d.ts +3 -14
  75. package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-usage.type.d.ts.map +1 -1
  76. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-file-entry.d.ts.map +1 -1
  77. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-classes.d.ts +3 -2
  78. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-classes.d.ts.map +1 -1
  79. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-reconciliation.d.ts +1 -1
  80. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-reconciliation.d.ts.map +1 -1
  81. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-staleness.d.ts +8 -4
  82. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-staleness.d.ts.map +1 -1
  83. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-usage.d.ts +3 -2
  84. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-usage.d.ts.map +1 -1
  85. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-destructuring-reads.d.ts.map +1 -1
  86. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-reads.d.ts.map +1 -1
  87. package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/class-members.util.d.ts +10 -0
  88. package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/class-members.util.d.ts.map +1 -0
  89. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-class-fields.d.ts.map +1 -1
  90. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-imports.d.ts.map +1 -1
  91. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-managed-fields.d.ts.map +1 -1
  92. package/lib/rules/no-unused-angular-instance-fields/rule/common/no-unused-angular-instance-fields.type.d.ts +2 -1
  93. package/lib/rules/no-unused-angular-instance-fields/rule/common/no-unused-angular-instance-fields.type.d.ts.map +1 -1
  94. package/lib/rules/no-unused-angular-instance-fields/rule/no-unused-angular-instance-fields.d.ts.map +1 -1
  95. package/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-class-read-visitor.d.ts.map +1 -1
  96. package/lib/rules/no-unused-classes/no-unused-classes.d.ts.map +1 -1
  97. package/lib/rules/no-unused-classes/styles/linked-templates.d.ts +9 -0
  98. package/lib/rules/no-unused-classes/styles/linked-templates.d.ts.map +1 -0
  99. package/lib/rules/no-unused-classes/styles/stylesheet-components.d.ts.map +1 -1
  100. package/lib/rules/no-unused-classes/template/template-usage.d.ts.map +1 -1
  101. package/lib/rules/no-unused-exports/common/no-unused-exports.const.d.ts +7 -0
  102. package/lib/rules/no-unused-exports/common/no-unused-exports.const.d.ts.map +1 -0
  103. package/lib/rules/no-unused-exports/common/no-unused-exports.type.d.ts +70 -0
  104. package/lib/rules/no-unused-exports/common/no-unused-exports.type.d.ts.map +1 -0
  105. package/lib/rules/no-unused-exports/export-index.d.ts +6 -0
  106. package/lib/rules/no-unused-exports/export-index.d.ts.map +1 -0
  107. package/lib/rules/no-unused-exports/no-unused-exports.d.ts +7 -0
  108. package/lib/rules/no-unused-exports/no-unused-exports.d.ts.map +1 -0
  109. package/lib/rules/no-unused-exports/report-unused-exports.d.ts +12 -0
  110. package/lib/rules/no-unused-exports/report-unused-exports.d.ts.map +1 -0
  111. package/lib/rules/no-unused-exports/utils/aggregate-update.util.d.ts +4 -0
  112. package/lib/rules/no-unused-exports/utils/aggregate-update.util.d.ts.map +1 -0
  113. package/lib/rules/no-unused-exports/utils/export-edges.util.d.ts +5 -0
  114. package/lib/rules/no-unused-exports/utils/export-edges.util.d.ts.map +1 -0
  115. package/lib/rules/no-unused-exports/utils/export-nodes.util.d.ts +5 -0
  116. package/lib/rules/no-unused-exports/utils/export-nodes.util.d.ts.map +1 -0
  117. package/lib/rules/no-unused-exports/utils/export-usage.util.d.ts +4 -0
  118. package/lib/rules/no-unused-exports/utils/export-usage.util.d.ts.map +1 -0
  119. package/lib/rules/no-unused-exports/utils/exported-names.util.d.ts +3 -0
  120. package/lib/rules/no-unused-exports/utils/exported-names.util.d.ts.map +1 -0
  121. package/lib/rules/no-unused-exports/utils/file-changes.util.d.ts +4 -0
  122. package/lib/rules/no-unused-exports/utils/file-changes.util.d.ts.map +1 -0
  123. package/lib/rules/no-unused-exports/utils/module-edges.util.d.ts +4 -0
  124. package/lib/rules/no-unused-exports/utils/module-edges.util.d.ts.map +1 -0
  125. package/lib/rules/no-unused-exports/utils/module-target.util.d.ts +4 -0
  126. package/lib/rules/no-unused-exports/utils/module-target.util.d.ts.map +1 -0
  127. package/lib/rules/no-unused-exports/utils/public-exports.util.d.ts +3 -0
  128. package/lib/rules/no-unused-exports/utils/public-exports.util.d.ts.map +1 -0
  129. package/lib/rules/one-line-guard/one-line-guard.d.ts.map +1 -1
  130. package/lib/rules/readonly-type-properties/readonly-type-properties.d.ts +2 -1
  131. package/lib/rules/readonly-type-properties/readonly-type-properties.d.ts.map +1 -1
  132. package/lib/rules/{utils/selector-classes.util.d.ts → selector-classes.d.ts} +2 -2
  133. package/lib/rules/selector-classes.d.ts.map +1 -0
  134. package/lib/rules/ternary-branch-shape/ternary-branch-shape.d.ts +6 -0
  135. package/lib/rules/ternary-branch-shape/ternary-branch-shape.d.ts.map +1 -0
  136. package/lib/rules/test-file-shape/common/test-file-shape.const.d.ts +14 -0
  137. package/lib/rules/test-file-shape/common/test-file-shape.const.d.ts.map +1 -0
  138. package/lib/rules/test-file-shape/common/test-file-shape.type.d.ts +7 -0
  139. package/lib/rules/test-file-shape/common/test-file-shape.type.d.ts.map +1 -0
  140. package/lib/rules/test-file-shape/mock-exports.d.ts +7 -0
  141. package/lib/rules/test-file-shape/mock-exports.d.ts.map +1 -0
  142. package/lib/rules/test-file-shape/stub-exports.d.ts +7 -0
  143. package/lib/rules/test-file-shape/stub-exports.d.ts.map +1 -0
  144. package/lib/rules/test-file-shape/test-file-shape.d.ts +7 -0
  145. package/lib/rules/test-file-shape/test-file-shape.d.ts.map +1 -0
  146. package/lib/rules/type-placement/common/type-placement.const.d.ts +5 -0
  147. package/lib/rules/type-placement/common/type-placement.const.d.ts.map +1 -0
  148. package/lib/rules/type-placement/common/type-placement.type.d.ts +7 -0
  149. package/lib/rules/type-placement/common/type-placement.type.d.ts.map +1 -0
  150. package/lib/rules/type-placement/type-placement.d.ts +7 -0
  151. package/lib/rules/type-placement/type-placement.d.ts.map +1 -0
  152. package/lib/rules/util-purity/common/util-purity.const.d.ts +10 -0
  153. package/lib/rules/util-purity/common/util-purity.const.d.ts.map +1 -0
  154. package/lib/rules/util-purity/common/util-purity.type.d.ts +7 -0
  155. package/lib/rules/util-purity/common/util-purity.type.d.ts.map +1 -0
  156. package/lib/rules/util-purity/util-purity.d.ts +7 -0
  157. package/lib/rules/util-purity/util-purity.d.ts.map +1 -0
  158. package/lib/rules/utils/class-expression-literals.util.d.ts.map +1 -1
  159. package/lib/rules/utils/enclosing-statement.util.d.ts +3 -0
  160. package/lib/rules/utils/enclosing-statement.util.d.ts.map +1 -0
  161. package/lib/rules/utils/glob-matcher.util.d.ts +3 -0
  162. package/lib/rules/utils/glob-matcher.util.d.ts.map +1 -0
  163. package/lib/rules/utils/indent-of.util.d.ts +3 -0
  164. package/lib/rules/utils/indent-of.util.d.ts.map +1 -0
  165. package/lib/rules/utils/template-classes.util.d.ts.map +1 -1
  166. package/lib/rules/utils/template-links.util.d.ts +2 -0
  167. package/lib/rules/utils/template-links.util.d.ts.map +1 -0
  168. package/lib/rules/utils/to-regexp.util.d.ts +2 -0
  169. package/lib/rules/utils/to-regexp.util.d.ts.map +1 -0
  170. package/lib/typescript-local-plugin.d.ts.map +1 -1
  171. package/lib/typescript-safety.d.ts.map +1 -1
  172. package/lib/typescript.d.ts +0 -1
  173. package/lib/typescript.d.ts.map +1 -1
  174. package/lib/vitest.d.ts.map +1 -1
  175. package/package.json +1 -1
  176. package/stylelint.cjs +303 -99
  177. package/stylelint.cjs.map +4 -4
  178. package/stylelint.d.ts.map +1 -1
  179. package/stylelint.js +321 -111
  180. package/stylelint.js.map +4 -4
  181. package/lib/rules/no-unused-classes/styles/component-descriptors.d.ts +0 -3
  182. package/lib/rules/no-unused-classes/styles/component-descriptors.d.ts.map +0 -1
  183. package/lib/rules/utils/selector-classes.util.d.ts.map +0 -1
@@ -1,3 +1,2 @@
1
- export declare const lintSuiteAngularTemplatePlugin: import("typescript-eslint").CompatiblePlugin;
2
1
  export declare const angularTemplate: import("eslint/config").ConfigObject[];
3
2
  //# sourceMappingURL=angular-template.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"angular-template.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/angular-template.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,8BAA8B,8CAG1C,CAAC;AAEF,eAAO,MAAM,eAAe,wCA0D1B,CAAC"}
1
+ {"version":3,"file":"angular-template.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/angular-template.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,eAAe,wCAkE1B,CAAC"}
package/lib/angular.d.ts CHANGED
@@ -1,3 +1,2 @@
1
- export declare const lintSuiteAngularPlugin: import("typescript-eslint").CompatiblePlugin;
2
1
  export declare const angular: import("eslint/config").ConfigObject[];
3
2
  //# sourceMappingURL=angular.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/angular.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,sBAAsB,8CAEjC,CAAC;AAMH,eAAO,MAAM,OAAO,wCA4ClB,CAAC"}
1
+ {"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/angular.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,OAAO,wCAgDlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"base-limits.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/base-limits.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,wCA0DrB,CAAC"}
1
+ {"version":3,"file":"base-limits.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/base-limits.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,wCAyDrB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ declare const _default: ESLintUtils.RuleModule<"arrowBodyWrapped", [], unknown, ESLintUtils.RuleListener> & {
3
+ name: string;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=arrow-body-fits-line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrow-body-fits-line.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/arrow-body-fits-line/arrow-body-fits-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,WAAW,EAAY,MAAM,0BAA0B,CAAC;;;;AAiE3E,wBAqCG"}
@@ -0,0 +1,6 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ declare const _default: ESLintUtils.RuleModule<"chainWrapped", [], unknown, ESLintUtils.RuleListener> & {
3
+ name: string;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=chain-fits-line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain-fits-line.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/chain-fits-line/chain-fits-line.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;;;;AAyDjE,wBAiCG"}
@@ -0,0 +1,7 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ type MessageIds = 'chainReceiver' | 'extractReceiver';
3
+ declare const _default: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener> & {
4
+ name: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=chain-receiver-is-name.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chain-receiver-is-name.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/chain-receiver-is-name/chain-receiver-is-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;AAMjE,KAAK,UAAU,GAAG,eAAe,GAAG,iBAAiB,CAAC;;;;AAyEtD,wBA0BG"}
@@ -21,5 +21,6 @@ export type ComponentDescriptor = {
21
21
  readonly templateUrl: string | null;
22
22
  readonly template: string | null;
23
23
  readonly styleUrls: string[];
24
+ readonly styles: string[];
24
25
  };
25
26
  //# sourceMappingURL=class-usage.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"class-usage.type.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/common/class-usage.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,UAAU,EAAE,oBAAoB,EAAE,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,qBAAqB,EAAE,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;CAC9B,CAAC"}
1
+ {"version":3,"file":"class-usage.type.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/common/class-usage.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACrB,oBAAoB,EACrB,MAAM,mBAAmB,CAAC;AAE3B,MAAM,MAAM,kBAAkB,GAAG;IAC/B,QAAQ,CAAC,UAAU,EAAE,oBAAoB,EAAE,CAAC;IAC5C,QAAQ,CAAC,MAAM,EAAE,qBAAqB,EAAE,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,eAAe,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC5B,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,CAAC;IAC5B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;AAErD,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;CAC3B,CAAC"}
@@ -0,0 +1,11 @@
1
+ export type CachedFile<T> = {
2
+ readonly value: T;
3
+ readonly version: string;
4
+ };
5
+ export type FileCache<T> = {
6
+ readonly name: string;
7
+ readonly entries: Map<string, CachedFile<T>>;
8
+ loaded: boolean;
9
+ dirty: boolean;
10
+ };
11
+ //# sourceMappingURL=file-cache.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-cache.type.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/common/file-cache.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC1B,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IAE7C,MAAM,EAAE,OAAO,CAAC;IAEhB,KAAK,EAAE,OAAO,CAAC;CAChB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export type GlobMatcher = (path: string) => boolean;
2
+ //# sourceMappingURL=glob-matcher.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"glob-matcher.type.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/common/glob-matcher.type.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC"}
@@ -1,5 +1,3 @@
1
- import type { ObjectLiteralExpression } from 'typescript';
2
- export declare const parseComponentMetadata: (text: string, path: string) => ObjectLiteralExpression[];
3
- export declare const componentMetadata: (path: string) => ObjectLiteralExpression[];
4
- export declare const metadataTexts: (metadata: ObjectLiteralExpression, name: string) => string[];
1
+ import type { ComponentDescriptor } from './common/class-usage.type.ts';
2
+ export declare const componentMetadata: (path: string) => ComponentDescriptor[];
5
3
  //# sourceMappingURL=component-metadata.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"component-metadata.d.ts","sourceRoot":"","sources":["../../../../../../packages/lint-suite/src/lib/rules/component-metadata.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAIV,uBAAuB,EACxB,MAAM,YAAY,CAAC;AAsCpB,eAAO,MAAM,sBAAsB,GACjC,MAAM,MAAM,EACZ,MAAM,MAAM,KACX,uBAAuB,EAgBzB,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,uBAAuB,EAQvE,CAAC;AA2CF,eAAO,MAAM,aAAa,GACxB,UAAU,uBAAuB,EACjC,MAAM,MAAM,KACX,MAAM,EAMR,CAAC"}
1
+ {"version":3,"file":"component-metadata.d.ts","sourceRoot":"","sources":["../../../../../../packages/lint-suite/src/lib/rules/component-metadata.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AA0IxE,eAAO,MAAM,iBAAiB,GAAI,MAAM,MAAM,KAAG,mBAAmB,EAEnE,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { ESLintUtils } from '@typescript-eslint/utils';
2
2
  import type { Accessibility, MessageIds, Options } from './explicit-accessibility.type.ts';
3
- export declare const accessibilities: readonly Accessibility[];
3
+ export declare const accessibilities: Accessibility[];
4
4
  export declare const meta: ESLintUtils.NamedCreateRuleMeta<MessageIds, unknown, Options>;
5
5
  export declare const defaultOptions: Options;
6
6
  //# sourceMappingURL=explicit-accessibility.const.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"explicit-accessibility.const.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/explicit-accessibility/common/explicit-accessibility.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EAGZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,OAAO,EACR,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,eAAe,EAAE,SAAS,aAAa,EAInD,CAAC;AA+BF,eAAO,MAAM,IAAI,EAAE,WAAW,CAAC,mBAAmB,CAChD,UAAU,EACV,OAAO,EACP,OAAO,CAQR,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,OAA8C,CAAC"}
1
+ {"version":3,"file":"explicit-accessibility.const.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/explicit-accessibility/common/explicit-accessibility.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EAGZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,OAAO,EACR,MAAM,kCAAkC,CAAC;AAE1C,eAAO,MAAM,eAAe,EAAE,aAAa,EAI1C,CAAC;AA+BF,eAAO,MAAM,IAAI,EAAE,WAAW,CAAC,mBAAmB,CAChD,UAAU,EACV,OAAO,EACP,OAAO,CAQR,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,OAA8C,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import type { TSESLint, TSESTree } from '@typescript-eslint/utils';
2
+ import type { RuleTester } from 'eslint';
2
3
  export type Accessibility = 'private' | 'protected' | 'public';
3
4
  export type FixAccessibility = Accessibility | 'none';
4
- export type AccessibilityOptions = {
5
+ type AccessibilityOptions = {
5
6
  readonly defaultAccessibility?: FixAccessibility;
6
7
  };
7
8
  export type Options = [AccessibilityOptions];
@@ -11,4 +12,6 @@ export type Fix = (fixer: TSESLint.RuleFixer) => TSESLint.RuleFix | null;
11
12
  export type AutoFix = {
12
13
  readonly fix?: Fix;
13
14
  };
15
+ export type MemberCase = Omit<RuleTester.InvalidTestCase, 'name'>;
16
+ export {};
14
17
  //# sourceMappingURL=explicit-accessibility.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"explicit-accessibility.type.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/explicit-accessibility/common/explicit-accessibility.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEnE,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,MAAM,CAAC;AAEtD,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,oBAAoB,CAAC,EAAE,gBAAgB,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAE7C,MAAM,MAAM,UAAU,GAAG,sBAAsB,GAAG,kBAAkB,CAAC;AAErE,MAAM,MAAM,MAAM,GACd,QAAQ,CAAC,gBAAgB,GACzB,QAAQ,CAAC,gBAAgB,GACzB,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,4BAA4B,GACrC,QAAQ,CAAC,mBAAmB,CAAC;AAEjC,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC;AAEzE,MAAM,MAAM,OAAO,GAAG;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC"}
1
+ {"version":3,"file":"explicit-accessibility.type.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/explicit-accessibility/common/explicit-accessibility.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,CAAC;AAE/D,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,MAAM,CAAC;AAEtD,KAAK,oBAAoB,GAAG;IAC1B,QAAQ,CAAC,oBAAoB,CAAC,EAAE,gBAAgB,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,oBAAoB,CAAC,CAAC;AAE7C,MAAM,MAAM,UAAU,GAAG,sBAAsB,GAAG,kBAAkB,CAAC;AAErE,MAAM,MAAM,MAAM,GACd,QAAQ,CAAC,gBAAgB,GACzB,QAAQ,CAAC,gBAAgB,GACzB,QAAQ,CAAC,kBAAkB,GAC3B,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,0BAA0B,GACnC,QAAQ,CAAC,4BAA4B,GACrC,QAAQ,CAAC,mBAAmB,CAAC;AAEjC,MAAM,MAAM,GAAG,GAAG,CAAC,KAAK,EAAE,QAAQ,CAAC,SAAS,KAAK,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAC;AAEzE,MAAM,MAAM,OAAO,GAAG;IAAE,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG,CAAA;CAAE,CAAC;AAG7C,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { FileCache } from './common/file-cache.type.ts';
2
+ type FileParser<T> = (text: string, path: string) => T;
3
+ /** Writes every cache that parsed something this run; runs at process exit. */
4
+ export declare const flushFileCaches: () => void;
5
+ /**
6
+ * A cache of parsed files keyed by path and mtime, mirrored to
7
+ * `node_modules/.cache/lint-suite/<name>.v<format>.json` (or
8
+ * `LINT_SUITE_CACHE_DIR`; `LINT_SUITE_CACHE=0` disables the disk copy).
9
+ * Values must survive JSON.
10
+ */
11
+ export declare const createFileCache: <T>(name: string) => FileCache<T>;
12
+ export declare const readCached: <T>(cache: FileCache<T>, path: string, parse: FileParser<T>) => T | null;
13
+ export {};
14
+ //# sourceMappingURL=file-cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-cache.d.ts","sourceRoot":"","sources":["../../../../../../packages/lint-suite/src/lib/rules/file-cache.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAc,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEzE,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC,CAAC;AAqFvD,+EAA+E;AAE/E,eAAO,MAAM,eAAe,QAAO,IAOlC,CAAC;AASF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,MAAM,MAAM,KAAG,SAAS,CAAC,CAAC,CAY5D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,EAC1B,OAAO,SAAS,CAAC,CAAC,CAAC,EACnB,MAAM,MAAM,EACZ,OAAO,UAAU,CAAC,CAAC,CAAC,KACnB,CAAC,GAAG,IAoBN,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ type MaxConditionOperandsOptions = {
3
+ readonly max: number;
4
+ };
5
+ type Options = [MaxConditionOperandsOptions];
6
+ declare const _default: ESLintUtils.RuleModule<"tooManyOperands", Options, unknown, ESLintUtils.RuleListener> & {
7
+ name: string;
8
+ };
9
+ export default _default;
10
+ //# sourceMappingURL=max-condition-operands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"max-condition-operands.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/max-condition-operands/max-condition-operands.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;AAGjE,KAAK,2BAA2B,GAAG;IAAE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAC5D,KAAK,OAAO,GAAG,CAAC,2BAA2B,CAAC,CAAC;;;;AA8C7C,wBAwBG"}
@@ -0,0 +1,6 @@
1
+ import type { ESLintUtils } from '@typescript-eslint/utils';
2
+ import type { MessageIds, Options } from './no-call-in-condition.type.ts';
3
+ export declare const PREDICATE_PATTERNS: string[];
4
+ export declare const meta: ESLintUtils.NamedCreateRuleMeta<MessageIds, unknown, Options>;
5
+ export declare const defaultOptions: Options;
6
+ //# sourceMappingURL=no-call-in-condition.const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-call-in-condition.const.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-call-in-condition/common/no-call-in-condition.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EAGZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EAER,MAAM,gCAAgC,CAAC;AAExC,eAAO,MAAM,kBAAkB,EAAE,MAAM,EAAuB,CAAC;AAkC/D,eAAO,MAAM,IAAI,EAAE,WAAW,CAAC,mBAAmB,CAChD,UAAU,EACV,OAAO,EACP,OAAO,CAOR,CAAC;AAMF,eAAO,MAAM,cAAc,EAAE,OAAwB,CAAC"}
@@ -0,0 +1,21 @@
1
+ import type { ParserServicesWithTypeInformation, TSESLint, TSESTree } from '@typescript-eslint/utils';
2
+ export type CallExemptions = {
3
+ readonly allowed: RegExp[];
4
+ readonly scope: TSESLint.Scope.Scope;
5
+ readonly services: ParserServicesWithTypeInformation | undefined;
6
+ };
7
+ export type ConditionParts = {
8
+ readonly calls: TSESTree.CallExpression[];
9
+ readonly identifiers: TSESTree.Identifier[];
10
+ };
11
+ export type ConstFeed = {
12
+ readonly init: TSESTree.Expression;
13
+ readonly statement: TSESTree.VariableDeclaration;
14
+ };
15
+ export type MessageIds = 'callInCondition' | 'hoistCall';
16
+ export type RuleOptions = {
17
+ readonly allowPredicates?: string[];
18
+ };
19
+ export type Options = [RuleOptions];
20
+ export type RuleContext = TSESLint.RuleContext<MessageIds, Options>;
21
+ //# sourceMappingURL=no-call-in-condition.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-call-in-condition.type.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-call-in-condition/common/no-call-in-condition.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EACjC,QAAQ,EACR,QAAQ,EACT,MAAM,0BAA0B,CAAC;AAElC,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;IACrC,QAAQ,CAAC,QAAQ,EAAE,iCAAiC,GAAG,SAAS,CAAC;CAClE,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,cAAc,EAAE,CAAC;IAC1C,QAAQ,CAAC,WAAW,EAAE,QAAQ,CAAC,UAAU,EAAE,CAAC;CAC7C,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,UAAU,CAAC;IACnC,QAAQ,CAAC,SAAS,EAAE,QAAQ,CAAC,mBAAmB,CAAC;CAClD,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,iBAAiB,GAAG,WAAW,CAAC;AAEzD,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;AAEpC,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ import type { MessageIds, Options } from './common/no-call-in-condition.type.ts';
3
+ declare const _default: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
4
+ name: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=no-call-in-condition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-call-in-condition.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-call-in-condition/no-call-in-condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;AAWjE,OAAO,KAAK,EAEV,UAAU,EACV,OAAO,EAER,MAAM,uCAAuC,CAAC;;;;AAoG/C,wBA0DG"}
@@ -0,0 +1,4 @@
1
+ import { TSESTree } from '@typescript-eslint/utils';
2
+ import type { CallExemptions } from '../common/no-call-in-condition.type.ts';
3
+ export declare const isExemptCall: (call: TSESTree.CallExpression, exemptions: CallExemptions) => boolean;
4
+ //# sourceMappingURL=call-exemptions.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"call-exemptions.util.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-call-in-condition/utils/call-exemptions.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQ9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAsF7E,eAAO,MAAM,YAAY,GACvB,MAAM,QAAQ,CAAC,cAAc,EAC7B,YAAY,cAAc,KACzB,OAcF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { TSESTree } from '@typescript-eslint/utils';
2
+ import type { TSESLint } from '@typescript-eslint/utils';
3
+ import type { ConditionParts, ConstFeed } from '../common/no-call-in-condition.type.ts';
4
+ export declare const conditionParts: (node: TSESTree.Node) => ConditionParts;
5
+ export declare const calleeName: (callee: TSESTree.Node) => string | undefined;
6
+ export declare const constFeed: (identifier: TSESTree.Identifier, scope: TSESLint.Scope.Scope) => ConstFeed | undefined;
7
+ //# sourceMappingURL=condition-calls.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"condition-calls.util.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-call-in-condition/utils/condition-calls.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EACV,cAAc,EACd,SAAS,EACV,MAAM,wCAAwC,CAAC;AA8BhD,eAAO,MAAM,cAAc,GAAI,MAAM,QAAQ,CAAC,IAAI,KAAG,cAMpD,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,QAAQ,QAAQ,CAAC,IAAI,KAAG,MAAM,GAAG,SAY3D,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,YAAY,QAAQ,CAAC,UAAU,EAC/B,OAAO,QAAQ,CAAC,KAAK,CAAC,KAAK,KAC1B,SAAS,GAAG,SAgCd,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ type MessageIds = 'groupedCondition' | 'hoistGroup';
3
+ declare const _default: ESLintUtils.RuleModule<MessageIds, [], unknown, ESLintUtils.RuleListener> & {
4
+ name: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=no-grouped-condition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-grouped-condition.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-grouped-condition/no-grouped-condition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;AAIjE,KAAK,UAAU,GAAG,kBAAkB,GAAG,YAAY,CAAC;;;;AA4FpD,wBAwCG"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-inline-object-types.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-inline-object-types/no-inline-object-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;;;;AA2CjE,wBA2BG"}
1
+ {"version":3,"file":"no-inline-object-types.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-inline-object-types/no-inline-object-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;;;;AA2BjE,wBAuBG"}
@@ -0,0 +1,6 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ declare const _default: ESLintUtils.RuleModule<"inlineReturnObject", [], unknown, ESLintUtils.RuleListener> & {
3
+ name: string;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=no-inline-return-object.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-inline-return-object.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-inline-return-object/no-inline-return-object.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;;;;AAwFjE,wBA0CG"}
@@ -0,0 +1,5 @@
1
+ import type { ESLintUtils } from '@typescript-eslint/utils';
2
+ import type { MessageIds, Options } from './no-nested-object-value.type.ts';
3
+ export declare const meta: ESLintUtils.NamedCreateRuleMeta<MessageIds, unknown, Options>;
4
+ export declare const defaultOptions: Options;
5
+ //# sourceMappingURL=no-nested-object-value.const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-nested-object-value.const.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-nested-object-value/common/no-nested-object-value.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EAGZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAqC5E,eAAO,MAAM,IAAI,EAAE,WAAW,CAAC,mBAAmB,CAChD,UAAU,EACV,OAAO,EACP,OAAO,CAOR,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,OAAiD,CAAC"}
@@ -0,0 +1,7 @@
1
+ type NestedObjectValueOptions = {
2
+ readonly configFiles: string[];
3
+ };
4
+ export type Options = [NestedObjectValueOptions];
5
+ export type MessageIds = 'nestedValue';
6
+ export {};
7
+ //# sourceMappingURL=no-nested-object-value.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-nested-object-value.type.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-nested-object-value/common/no-nested-object-value.type.ts"],"names":[],"mappings":"AAAA,KAAK,wBAAwB,GAAG;IAAE,QAAQ,CAAC,WAAW,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC;AAEnE,MAAM,MAAM,OAAO,GAAG,CAAC,wBAAwB,CAAC,CAAC;AAEjD,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ import type { Options } from './common/no-nested-object-value.type.ts';
3
+ declare const _default: ESLintUtils.RuleModule<"nestedValue", Options, unknown, ESLintUtils.RuleListener> & {
4
+ name: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=no-nested-object-value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-nested-object-value.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-nested-object-value/no-nested-object-value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;AAMjE,OAAO,KAAK,EAEV,OAAO,EACR,MAAM,yCAAyC,CAAC;;;;AAwGjD,wBAgDG"}
@@ -0,0 +1,3 @@
1
+ import { TSESTree } from '@typescript-eslint/utils';
2
+ export declare const isInsideDecoratorConfig: (objectExpression: TSESTree.ObjectExpression, ancestors: TSESTree.Node[]) => boolean;
3
+ //# sourceMappingURL=decorator-config.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decorator-config.util.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-nested-object-value/utils/decorator-config.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAcpD,eAAO,MAAM,uBAAuB,GAClC,kBAAkB,QAAQ,CAAC,gBAAgB,EAC3C,WAAW,QAAQ,CAAC,IAAI,EAAE,KACzB,OAqBF,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ declare const _default: ESLintUtils.RuleModule<"spreadExpression", [], unknown, ESLintUtils.RuleListener> & {
3
+ name: string;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=no-spread-expression.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-spread-expression.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-spread-expression/no-spread-expression.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;;;;AAoCjE,wBA0CG"}
@@ -1 +1 @@
1
- {"version":3,"file":"no-unstyled-classes.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-unstyled-classes/no-unstyled-classes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,KAAK,EAEV,WAAW,EAEZ,MAAM,sCAAsC,CAAC;AAI9C,KAAK,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;;;;AAsE7B,wBAuDG"}
1
+ {"version":3,"file":"no-unstyled-classes.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-unstyled-classes/no-unstyled-classes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAGvD,OAAO,KAAK,EAEV,WAAW,EAEZ,MAAM,sCAAsC,CAAC;AAK9C,KAAK,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;;;;AAoE7B,wBAwDG"}
@@ -1 +1 @@
1
- {"version":3,"file":"component-stylesheets.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unstyled-classes/styles/component-stylesheets.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AA2C9E,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EAAE,EACf,WAAW,MAAM,KAChB,gBAAgB,EAelB,CAAC;AA8CF,eAAO,MAAM,oBAAoB,GAC/B,kBAAkB,MAAM,KACvB,gBAAgB,EAOlB,CAAC"}
1
+ {"version":3,"file":"component-stylesheets.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unstyled-classes/styles/component-stylesheets.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AA0C9E,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EAAE,EACf,WAAW,MAAM,KAChB,gBAAgB,EAelB,CAAC;AA0CF,eAAO,MAAM,oBAAoB,GAC/B,kBAAkB,MAAM,KACvB,gBAAgB,EAOlB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { StylesheetSource } from '../common/no-unstyled-classes.type.ts';
2
+ export declare const linkedStylesheets: (template: string, templateFilename: string) => StylesheetSource[];
3
+ //# sourceMappingURL=linked-stylesheets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"linked-stylesheets.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unstyled-classes/styles/linked-stylesheets.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,eAAO,MAAM,iBAAiB,GAC5B,UAAU,MAAM,EAChB,kBAAkB,MAAM,KACvB,gBAAgB,EAIlB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"stylesheet-classes.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unstyled-classes/styles/stylesheet-classes.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,iBAAiB,EAEjB,gBAAgB,EACjB,MAAM,uCAAuC,CAAC;AA2F/C,eAAO,MAAM,iBAAiB,GAC5B,SAAS,gBAAgB,EAAE,KAC1B,iBAcF,CAAC"}
1
+ {"version":3,"file":"stylesheet-classes.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unstyled-classes/styles/stylesheet-classes.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,iBAAiB,EAEjB,gBAAgB,EACjB,MAAM,uCAAuC,CAAC;AA2H/C,eAAO,MAAM,iBAAiB,GAC5B,SAAS,gBAAgB,EAAE,KAC1B,iBAiBF,CAAC"}
@@ -1,3 +1,3 @@
1
1
  import type { StylesheetLookup } from '../common/no-unstyled-classes.type.ts';
2
- export declare const templateStylesheets: (templateFilename: string, cwd: string, globalStyles: string[]) => StylesheetLookup;
2
+ export declare const templateStylesheets: (templateFilename: string, template: string, cwd: string, globalStyles: string[]) => StylesheetLookup;
3
3
  //# sourceMappingURL=template-stylesheets.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-stylesheets.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unstyled-classes/styles/template-stylesheets.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAEV,gBAAgB,EAEjB,MAAM,uCAAuC,CAAC;AAE/C,eAAO,MAAM,mBAAmB,GAC9B,kBAAkB,MAAM,EACxB,KAAK,MAAM,EACX,cAAc,MAAM,EAAE,KACrB,gBAgBF,CAAC"}
1
+ {"version":3,"file":"template-stylesheets.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unstyled-classes/styles/template-stylesheets.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,gBAAgB,EAEjB,MAAM,uCAAuC,CAAC;AAE/C,eAAO,MAAM,mBAAmB,GAC9B,kBAAkB,MAAM,EACxB,UAAU,MAAM,EAChB,KAAK,MAAM,EACX,cAAc,MAAM,EAAE,KACrB,gBAiBF,CAAC"}
@@ -1,4 +1,9 @@
1
1
  import type { AngularClass, DirectiveIndex } from '../common/project-usage.type.ts';
2
2
  export declare const directiveShape: (classes: Iterable<AngularClass>) => string;
3
3
  export declare const buildDirectiveIndex: (classes: Iterable<AngularClass>) => DirectiveIndex;
4
+ /**
5
+ * Points the index at a re-parsed file's class declarations without
6
+ * rebuilding it; only valid when the file's directive shape is unchanged.
7
+ */
8
+ export declare const replaceDeclarations: (index: DirectiveIndex, previous: Iterable<AngularClass>, next: Iterable<AngularClass>) => void;
4
9
  //# sourceMappingURL=angular-directive-index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"angular-directive-index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-directive-index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACf,MAAM,iCAAiC,CAAC;AA0BzC,eAAO,MAAM,cAAc,GAAI,SAAS,QAAQ,CAAC,YAAY,CAAC,KAAG,MAIhE,CAAC;AAUF,eAAO,MAAM,mBAAmB,GAC9B,SAAS,QAAQ,CAAC,YAAY,CAAC,KAC9B,cAiCF,CAAC"}
1
+ {"version":3,"file":"angular-directive-index.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-directive-index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACf,MAAM,iCAAiC,CAAC;AAsBzC,eAAO,MAAM,cAAc,GAAI,SAAS,QAAQ,CAAC,YAAY,CAAC,KAAG,MAKhE,CAAC;AA8BF,eAAO,MAAM,mBAAmB,GAC9B,SAAS,QAAQ,CAAC,YAAY,CAAC,KAC9B,cAwCF,CAAC;AAcF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,GAC9B,OAAO,cAAc,EACrB,UAAU,QAAQ,CAAC,YAAY,CAAC,EAChC,MAAM,QAAQ,CAAC,YAAY,CAAC,KAC3B,IAoBF,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"angular-resolved-path.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-resolved-path.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAEV,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AA+CzC,eAAO,MAAM,eAAe,GAAI,yDAM7B,mBAAmB,KAAG,OAwCxB,CAAC"}
1
+ {"version":3,"file":"angular-resolved-path.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-resolved-path.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGV,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAqEzC,eAAO,MAAM,eAAe,GAAI,yDAM7B,mBAAmB,KAAG,OA4CxB,CAAC"}
@@ -1,6 +1,5 @@
1
1
  import type { TemplateReadsOptions } from '../common/project-usage.type.ts';
2
2
  type TemplateReadResult = {
3
- /** True when a `#reference` was resolved through the directive index. */
4
3
  readonly usedDirectiveIndex: boolean;
5
4
  };
6
5
  export declare const addTemplateReads: ({ angularClass, checker, directives, fileName, sink, source }: TemplateReadsOptions) => TemplateReadResult;
@@ -1 +1 @@
1
- {"version":3,"file":"angular-template-read-resolution.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-resolution.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAKV,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAGzC,KAAK,kBAAkB,GAAG;IACxB,yEAAyE;IACzE,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;CACtC,CAAC;AAoFF,eAAO,MAAM,gBAAgB,GAAI,+DAO9B,oBAAoB,KAAG,kBAsCzB,CAAC"}
1
+ {"version":3,"file":"angular-template-read-resolution.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-resolution.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAKV,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAGzC,KAAK,kBAAkB,GAAG;IACxB,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;CACtC,CAAC;AA6GF,eAAO,MAAM,gBAAgB,GAAI,+DAO9B,oBAAoB,KAAG,kBAsCzB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"angular-template-reads.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-reads.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACd,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAGV,2BAA2B,EAE5B,MAAM,iCAAiC,CAAC;AAoDzC,eAAO,MAAM,qBAAqB,GAChC,SAAS,mBAAmB,KAC3B,OAQF,CAAC;AAmDF,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B,GAAI,kDAMzC,2BAA2B,KAAG,aAgChC,CAAC"}
1
+ {"version":3,"file":"angular-template-reads.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-reads.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,EACnB,aAAa,EACd,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAGV,2BAA2B,EAE5B,MAAM,iCAAiC,CAAC;AAsDzC,eAAO,MAAM,qBAAqB,GAChC,SAAS,mBAAmB,KAC3B,OAQF,CAAC;AAmDF,0EAA0E;AAC1E,eAAO,MAAM,2BAA2B,GAAI,kDAMzC,2BAA2B,KAAG,aAkChC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"angular-template-references.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-references.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAK1D,OAAO,KAAK,EAEV,WAAW,EACX,cAAc,EAEd,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AA6CzC,qEAAqE;AACrE,eAAO,MAAM,gBAAgB,GAC3B,SAAS,mBAAmB,EAC5B,WAAW,gBAAgB,EAC3B,OAAO,cAAc,GAAG,SAAS,EACjC,OAAO,WAAW,EAAE,KACnB,IAyBF,CAAC"}
1
+ {"version":3,"file":"angular-template-references.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-references.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAK1D,OAAO,KAAK,EAEV,WAAW,EACX,cAAc,EAEd,mBAAmB,EACpB,MAAM,iCAAiC,CAAC;AAoCzC,qEAAqE;AACrE,eAAO,MAAM,gBAAgB,GAC3B,SAAS,mBAAmB,EAC5B,WAAW,gBAAgB,EAC3B,OAAO,cAAc,GAAG,SAAS,EACjC,OAAO,WAAW,EAAE,KACnB,IAyBF,CAAC"}
@@ -4,6 +4,7 @@ export type ProjectUsageIndex = {
4
4
  readonly has: (node: Node) => boolean;
5
5
  };
6
6
  export type TemplateFileVersion = {
7
+ readonly directory: string;
7
8
  readonly fileName: string;
8
9
  readonly mtimeNs: bigint;
9
10
  readonly size: bigint;
@@ -21,8 +22,8 @@ export type TemplateReads = {
21
22
  export type FileEntry = {
22
23
  readonly declarations: ReadonlySet<Node>;
23
24
  readonly dependencies: ReadonlySet<SourceFile>;
24
- /** Names treated as read because this file could not be indexed exactly. */
25
25
  readonly fallbackNames: ReadonlySet<string>;
26
+ readonly mentionedNames: ReadonlySet<string>;
26
27
  readonly sourceFile: SourceFile;
27
28
  readonly templateVersions: TemplateFileVersion[];
28
29
  readonly usedDirectiveIndex: boolean;
@@ -30,25 +31,22 @@ export type FileEntry = {
30
31
  export type FileClasses = {
31
32
  readonly candidateNames: ReadonlySet<string>;
32
33
  readonly classes: AngularClass[];
33
- /** Files the discovered metadata resolved through (aliases, constants). */
34
34
  readonly dependencies: ReadonlySet<SourceFile>;
35
+ readonly shape: string;
35
36
  readonly sourceFile: SourceFile;
36
37
  };
38
+ export type CurrentSourceFiles = ReadonlySet<SourceFile>;
37
39
  export type ProjectIndex = {
38
- /** Member names of decorated classes; only ever grows within a session. */
39
40
  readonly candidateNames: Set<string>;
40
41
  readonly classes: Map<string, FileClasses>;
42
+ readonly declarationCounts: Map<Node, number>;
41
43
  directives: DirectiveIndex;
42
44
  directiveShape: string;
43
45
  readonly entries: Map<string, FileEntry>;
46
+ readonly fallbackNameCounts: Map<string, number>;
44
47
  program: Program | null;
45
48
  templateCheckDuration: number;
46
49
  templateCheckedAt: number;
47
- usage: ProjectUsageIndex | undefined;
48
50
  };
49
51
  export type LazyChecker = () => TypeChecker;
50
- export type SourceFileMaps = {
51
- readonly all: ReadonlyMap<string, SourceFile>;
52
- readonly current: ReadonlyMap<string, SourceFile>;
53
- };
54
52
  //# sourceMappingURL=project-index.type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"project-index.type.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-index.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE5E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;IACjD,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;CACtC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IACzC,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAC/C,4EAA4E;IAC5E,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;IACjD,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,CAAC;IACjC,2EAA2E;IAC3E,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAC/C,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,2EAA2E;IAC3E,QAAQ,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC3C,UAAU,EAAE,cAAc,CAAC;IAE3B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzC,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAExB,qBAAqB,EAAE,MAAM,CAAC;IAE9B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,iBAAiB,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC;AAE5C,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;IAC9C,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;CACnD,CAAC"}
1
+ {"version":3,"file":"project-index.type.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-index.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzE,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAE5E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;IACjD,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;CACtC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IACzC,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAC/C,QAAQ,CAAC,aAAa,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5C,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAChC,QAAQ,CAAC,gBAAgB,EAAE,mBAAmB,EAAE,CAAC;IACjD,QAAQ,CAAC,kBAAkB,EAAE,OAAO,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC7C,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,CAAC;IACjC,QAAQ,CAAC,YAAY,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,WAAW,CAAC,UAAU,CAAC,CAAC;AAEzD,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IAC3C,QAAQ,CAAC,iBAAiB,EAAE,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;IAC9C,UAAU,EAAE,cAAc,CAAC;IAE3B,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACzC,QAAQ,CAAC,kBAAkB,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjD,OAAO,EAAE,OAAO,GAAG,IAAI,CAAC;IAExB,qBAAqB,EAAE,MAAM,CAAC;IAE9B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,MAAM,WAAW,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { PropertyRead, SelectorMatcher, TmplAstComponent, TmplAstDirective, TmplAstElement, TmplAstTemplate } from '@angular/compiler';
2
2
  import type { ArrayLiteralExpression, BindingPattern, ClassLikeDeclaration, Declaration, Node, ObjectLiteralExpression, SourceFile, Type, TypeChecker } from 'typescript';
3
- export type AddDeclaration = (declaration: Declaration) => void;
3
+ type AddDeclaration = (declaration: Declaration) => void;
4
4
  /**
5
5
  * Receives every read resolved while indexing one source file. Types are
6
6
  * reported wherever a member is looked up on them, so the index can tell
@@ -8,12 +8,8 @@ export type AddDeclaration = (declaration: Declaration) => void;
8
8
  */
9
9
  export type ReadSink = {
10
10
  readonly addDeclaration: AddDeclaration;
11
- /**
12
- * Reports that reads could not be resolved exactly; every candidate
13
- * member with one of these names is then treated as read. `reason` is
14
- * surfaced when LINT_SUITE_DEBUG is set.
15
- */
16
11
  readonly addFallbackNames: (names: Iterable<string>, reason: string) => void;
12
+ readonly addMention: (name: string) => void;
17
13
  readonly addType: (type: Type) => void;
18
14
  };
19
15
  export type CandidateNames = ReadonlySet<string>;
@@ -43,23 +39,16 @@ export type AngularClass = {
43
39
  readonly component: boolean;
44
40
  readonly declaration: ClassLikeDeclaration;
45
41
  readonly exportAs: string[];
46
- /** True when `hostDirectives` is set; their exportAs is not modelled. */
47
42
  readonly hostDirectives: boolean;
48
43
  readonly name: string;
49
- /**
50
- * Program classes a standalone component's `imports` resolve to, or null
51
- * when the compilation scope cannot be determined statically.
52
- */
53
44
  readonly scope: ClassLikeDeclaration[] | null;
54
45
  readonly selector: string | null;
55
46
  readonly template: AngularTemplate | null;
56
- /** False when the metadata cannot be read statically (fail closed). */
57
47
  readonly valid: boolean;
58
48
  };
59
49
  export type DecoratorKind = 'Component' | 'Directive' | 'NgModule' | 'Pipe';
60
50
  export type Discovery = {
61
51
  readonly checker: TypeChecker;
62
- /** Files whose contents the discovered metadata depends on. */
63
52
  readonly dependencies: Set<SourceFile>;
64
53
  };
65
54
  export type DiscoveredClasses = {
@@ -68,7 +57,7 @@ export type DiscoveredClasses = {
68
57
  };
69
58
  /** Program-wide lookup of the classes a template reference can point at. */
70
59
  export type DirectiveIndex = {
71
- readonly byDeclaration: ReadonlyMap<ClassLikeDeclaration, AngularClass>;
60
+ readonly byDeclaration: Map<ClassLikeDeclaration, AngularClass>;
72
61
  readonly byExportAs: ReadonlyMap<string, ClassLikeDeclaration[]>;
73
62
  readonly componentMatcher: SelectorMatcher<ClassLikeDeclaration[]>;
74
63
  };