lint-suite 1.6.0 → 1.6.2

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 (148) hide show
  1. package/README.md +161 -16
  2. package/eslint.cjs +3085 -998
  3. package/eslint.cjs.map +4 -4
  4. package/eslint.d.ts +13 -13
  5. package/eslint.d.ts.map +1 -1
  6. package/eslint.js +3173 -990
  7. package/eslint.js.map +4 -4
  8. package/lib/angular-template.d.ts.map +1 -1
  9. package/lib/angular.d.ts +1 -0
  10. package/lib/angular.d.ts.map +1 -1
  11. package/lib/base-limits.d.ts +2 -0
  12. package/lib/base-limits.d.ts.map +1 -0
  13. package/lib/base-practices.d.ts +2 -0
  14. package/lib/base-practices.d.ts.map +1 -0
  15. package/lib/base-recommended.d.ts +2 -0
  16. package/lib/base-recommended.d.ts.map +1 -0
  17. package/lib/base.d.ts.map +1 -1
  18. package/lib/javascript.d.ts.map +1 -1
  19. package/lib/rules/define-plugin.util.d.ts +6 -0
  20. package/lib/rules/define-plugin.util.d.ts.map +1 -0
  21. package/lib/rules/explicit-accessibility/common/explicit-accessibility.const.d.ts +6 -0
  22. package/lib/rules/explicit-accessibility/common/explicit-accessibility.const.d.ts.map +1 -0
  23. package/lib/rules/explicit-accessibility/common/explicit-accessibility.type.d.ts +14 -0
  24. package/lib/rules/explicit-accessibility/common/explicit-accessibility.type.d.ts.map +1 -0
  25. package/lib/rules/explicit-accessibility/explicit-accessibility.d.ts +7 -0
  26. package/lib/rules/explicit-accessibility/explicit-accessibility.d.ts.map +1 -0
  27. package/lib/rules/no-inline-object-types/no-inline-object-types.d.ts +6 -0
  28. package/lib/rules/no-inline-object-types/no-inline-object-types.d.ts.map +1 -0
  29. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-component-discovery.d.ts +5 -0
  30. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-component-discovery.d.ts.map +1 -0
  31. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-component-scope.d.ts +9 -0
  32. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-component-scope.d.ts.map +1 -0
  33. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-decorator-kind.d.ts +10 -0
  34. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-decorator-kind.d.ts.map +1 -0
  35. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-directive-index.d.ts +4 -0
  36. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-directive-index.d.ts.map +1 -0
  37. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-metadata-values.d.ts +12 -0
  38. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-metadata-values.d.ts.map +1 -0
  39. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-resolved-path.d.ts +3 -0
  40. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-resolved-path.d.ts.map +1 -0
  41. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-chains.d.ts +17 -0
  42. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-chains.d.ts.map +1 -0
  43. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-resolution.d.ts +8 -0
  44. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-resolution.d.ts.map +1 -0
  45. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-reads.d.ts +6 -0
  46. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-reads.d.ts.map +1 -0
  47. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-references.d.ts +5 -0
  48. package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-references.d.ts.map +1 -0
  49. package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-index.type.d.ts +54 -0
  50. package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-index.type.d.ts.map +1 -0
  51. package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-usage.type.d.ts +116 -0
  52. package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-usage.type.d.ts.map +1 -0
  53. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-file-entry.d.ts +4 -0
  54. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-file-entry.d.ts.map +1 -0
  55. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-classes.d.ts +4 -0
  56. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-classes.d.ts.map +1 -0
  57. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-reconciliation.d.ts +4 -0
  58. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-reconciliation.d.ts.map +1 -0
  59. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-staleness.d.ts +10 -0
  60. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-staleness.d.ts.map +1 -0
  61. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-usage.d.ts +17 -0
  62. package/lib/rules/no-unused-angular-instance-fields/project-usage/project-usage.d.ts.map +1 -0
  63. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-angular-interface-methods.d.ts +8 -0
  64. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-angular-interface-methods.d.ts.map +1 -0
  65. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-assignment-pattern-elements.d.ts +5 -0
  66. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-assignment-pattern-elements.d.ts.map +1 -0
  67. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-binding-pattern-elements.d.ts +6 -0
  68. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-binding-pattern-elements.d.ts.map +1 -0
  69. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-candidate-names.d.ts +4 -0
  70. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-candidate-names.d.ts.map +1 -0
  71. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-destructuring-reads.d.ts +4 -0
  72. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-destructuring-reads.d.ts.map +1 -0
  73. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-reads.d.ts +4 -0
  74. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-reads.d.ts.map +1 -0
  75. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-symbol-reads.d.ts +8 -0
  76. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-symbol-reads.d.ts.map +1 -0
  77. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-type-dependencies.d.ts +3 -0
  78. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-type-dependencies.d.ts.map +1 -0
  79. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-write-targets.d.ts +7 -0
  80. package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-write-targets.d.ts.map +1 -0
  81. package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/read-chain-text.util.d.ts +4 -0
  82. package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/read-chain-text.util.d.ts.map +1 -0
  83. package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/spec-file.util.d.ts +2 -0
  84. package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/spec-file.util.d.ts.map +1 -0
  85. package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/type-property-symbols.util.d.ts +4 -0
  86. package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/type-property-symbols.util.d.ts.map +1 -0
  87. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-class-fields.d.ts +3 -0
  88. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-class-fields.d.ts.map +1 -0
  89. package/lib/rules/no-unused-angular-instance-fields/{utils/angular-expression-reads.util.d.ts → rule/angular/angular-expression-reads.d.ts} +1 -1
  90. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-expression-reads.d.ts.map +1 -0
  91. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-imports.d.ts +9 -0
  92. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-imports.d.ts.map +1 -0
  93. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-managed-fields.d.ts +5 -0
  94. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-managed-fields.d.ts.map +1 -0
  95. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-member-candidates.d.ts +6 -0
  96. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-member-candidates.d.ts.map +1 -0
  97. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-metadata-literals.d.ts +5 -0
  98. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-metadata-literals.d.ts.map +1 -0
  99. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-metadata-reads.d.ts +9 -0
  100. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-metadata-reads.d.ts.map +1 -0
  101. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-template-parsing.d.ts +4 -0
  102. package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-template-parsing.d.ts.map +1 -0
  103. package/lib/rules/no-unused-angular-instance-fields/rule/common/no-unused-angular-instance-fields.type.d.ts +54 -0
  104. package/lib/rules/no-unused-angular-instance-fields/rule/common/no-unused-angular-instance-fields.type.d.ts.map +1 -0
  105. package/lib/rules/no-unused-angular-instance-fields/rule/no-unused-angular-instance-fields.d.ts +8 -0
  106. package/lib/rules/no-unused-angular-instance-fields/rule/no-unused-angular-instance-fields.d.ts.map +1 -0
  107. package/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-class-read-visitor.d.ts +4 -0
  108. package/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-class-read-visitor.d.ts.map +1 -0
  109. package/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-field-reads.d.ts +8 -0
  110. package/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-field-reads.d.ts.map +1 -0
  111. package/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-lexical-this.d.ts +3 -0
  112. package/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-lexical-this.d.ts.map +1 -0
  113. package/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-write-targets.d.ts +3 -0
  114. package/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-write-targets.d.ts.map +1 -0
  115. package/lib/rules/no-unused-angular-instance-fields/utils/angular-read-target.util.d.ts +4 -0
  116. package/lib/rules/no-unused-angular-instance-fields/utils/angular-read-target.util.d.ts.map +1 -0
  117. package/lib/rules/readonly-type-properties/readonly-type-properties.d.ts +6 -0
  118. package/lib/rules/readonly-type-properties/readonly-type-properties.d.ts.map +1 -0
  119. package/lib/typescript-consistency.d.ts +2 -0
  120. package/lib/typescript-consistency.d.ts.map +1 -0
  121. package/lib/typescript-imports.d.ts +2 -0
  122. package/lib/typescript-imports.d.ts.map +1 -0
  123. package/lib/typescript-local-plugin.d.ts +2 -0
  124. package/lib/typescript-local-plugin.d.ts.map +1 -0
  125. package/lib/typescript-overrides.d.ts +2 -0
  126. package/lib/typescript-overrides.d.ts.map +1 -0
  127. package/lib/typescript-recommended.d.ts +2 -0
  128. package/lib/typescript-recommended.d.ts.map +1 -0
  129. package/lib/typescript-safety.d.ts +2 -0
  130. package/lib/typescript-safety.d.ts.map +1 -0
  131. package/lib/typescript.d.ts +1 -0
  132. package/lib/typescript.d.ts.map +1 -1
  133. package/package.json +18 -14
  134. package/lib/rules/explicit-accessibility.d.ts +0 -12
  135. package/lib/rules/explicit-accessibility.d.ts.map +0 -1
  136. package/lib/rules/no-unused-angular-instance-fields/angular-class-fields.d.ts +0 -8
  137. package/lib/rules/no-unused-angular-instance-fields/angular-class-fields.d.ts.map +0 -1
  138. package/lib/rules/no-unused-angular-instance-fields/angular-metadata-reads.d.ts +0 -3
  139. package/lib/rules/no-unused-angular-instance-fields/angular-metadata-reads.d.ts.map +0 -1
  140. package/lib/rules/no-unused-angular-instance-fields/common/no-unused-angular-instance-fields.type.d.ts +0 -10
  141. package/lib/rules/no-unused-angular-instance-fields/common/no-unused-angular-instance-fields.type.d.ts.map +0 -1
  142. package/lib/rules/no-unused-angular-instance-fields/no-unused-angular-instance-fields.d.ts +0 -7
  143. package/lib/rules/no-unused-angular-instance-fields/no-unused-angular-instance-fields.d.ts.map +0 -1
  144. package/lib/rules/no-unused-angular-instance-fields/no-unused-instance-fields.spec.d.ts +0 -2
  145. package/lib/rules/no-unused-angular-instance-fields/no-unused-instance-fields.spec.d.ts.map +0 -1
  146. package/lib/rules/no-unused-angular-instance-fields/utils/angular-expression-reads.util.d.ts.map +0 -1
  147. package/lib/rules/no-unused-angular-instance-fields/utils/typescript-field-reads.util.d.ts +0 -7
  148. package/lib/rules/no-unused-angular-instance-fields/utils/typescript-field-reads.util.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"angular-template.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/angular-template.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,eAAe,wCAyD1B,CAAC"}
1
+ {"version":3,"file":"angular-template.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/angular-template.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,wCAsD1B,CAAC"}
package/lib/angular.d.ts CHANGED
@@ -1,2 +1,3 @@
1
+ export declare const lintSuiteAngularPlugin: import("typescript-eslint").CompatiblePlugin;
1
2
  export declare const angular: import("eslint/config").ConfigObject[];
2
3
  //# 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":"AAaA,eAAO,MAAM,OAAO,wCAsClB,CAAC"}
1
+ {"version":3,"file":"angular.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/angular.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,sBAAsB,8CAEjC,CAAC;AAEH,eAAO,MAAM,OAAO,wCA4ClB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const baseLimits: import("eslint/config").ConfigObject[];
2
+ //# sourceMappingURL=base-limits.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,2 @@
1
+ export declare const basePractices: import("eslint/config").ConfigObject[];
2
+ //# sourceMappingURL=base-practices.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-practices.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/base-practices.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,wCAoHxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const baseRecommended: import("eslint/config").ConfigObject[];
2
+ //# sourceMappingURL=base-recommended.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base-recommended.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/base-recommended.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,eAAe,wCA4B1B,CAAC"}
package/lib/base.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/base.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,IAAI,wCAwMf,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/base.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,IAAI,wCAIf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/javascript.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU,wCAGrB,CAAC"}
1
+ {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../../../packages/lint-suite/src/lib/javascript.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,UAAU,wCAGrB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { TSESLint } from '@typescript-eslint/utils';
2
+ import type { CompatiblePlugin } from 'typescript-eslint';
3
+ type Rules = NonNullable<TSESLint.FlatConfig.Plugin['rules']>;
4
+ export declare const definePlugin: (name: string, rules: Rules) => CompatiblePlugin;
5
+ export {};
6
+ //# sourceMappingURL=define-plugin.util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define-plugin.util.d.ts","sourceRoot":"","sources":["../../../../../../packages/lint-suite/src/lib/rules/define-plugin.util.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE1D,KAAK,KAAK,GAAG,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AAE9D,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,EAAE,OAAO,KAAK,KAAG,gBAKzD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { ESLintUtils } from '@typescript-eslint/utils';
2
+ import type { Accessibility, MessageIds, Options } from './explicit-accessibility.type.ts';
3
+ export declare const accessibilities: readonly Accessibility[];
4
+ export declare const meta: ESLintUtils.NamedCreateRuleMeta<MessageIds, unknown, Options>;
5
+ export declare const defaultOptions: Options;
6
+ //# sourceMappingURL=explicit-accessibility.const.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,14 @@
1
+ import type { TSESLint, TSESTree } from '@typescript-eslint/utils';
2
+ export type Accessibility = 'private' | 'protected' | 'public';
3
+ export type FixAccessibility = Accessibility | 'none';
4
+ export type AccessibilityOptions = {
5
+ readonly defaultAccessibility?: FixAccessibility;
6
+ };
7
+ export type Options = [AccessibilityOptions];
8
+ export type MessageIds = 'missingAccessibility' | 'setAccessibility';
9
+ export type Member = TSESTree.AccessorProperty | TSESTree.MethodDefinition | TSESTree.PropertyDefinition | TSESTree.TSAbstractAccessorProperty | TSESTree.TSAbstractMethodDefinition | TSESTree.TSAbstractPropertyDefinition | TSESTree.TSParameterProperty;
10
+ export type Fix = (fixer: TSESLint.RuleFixer) => TSESLint.RuleFix | null;
11
+ export type AutoFix = {
12
+ readonly fix?: Fix;
13
+ };
14
+ //# sourceMappingURL=explicit-accessibility.type.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,7 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ import type { MessageIds, Options } from './common/explicit-accessibility.type.ts';
3
+ declare const _default: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
4
+ name: string;
5
+ };
6
+ export default _default;
7
+ //# sourceMappingURL=explicit-accessibility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"explicit-accessibility.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/explicit-accessibility/explicit-accessibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAY,MAAM,0BAA0B,CAAC;AAQjE,OAAO,KAAK,EAMV,UAAU,EACV,OAAO,EACR,MAAM,yCAAyC,CAAC;;;;AAuHjD,wBA6CG"}
@@ -0,0 +1,6 @@
1
+ import { ESLintUtils } from '@typescript-eslint/utils';
2
+ declare const _default: ESLintUtils.RuleModule<"inlineObjectType", [], unknown, ESLintUtils.RuleListener> & {
3
+ name: string;
4
+ };
5
+ export default _default;
6
+ //# sourceMappingURL=no-inline-object-types.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,5 @@
1
+ import type { SourceFile, TypeChecker } from 'typescript';
2
+ import type { DiscoveredClasses } from '../common/project-usage.type.ts';
3
+ /** Angular components and directives declared in one source file. */
4
+ export declare const angularClasses: (sourceFile: SourceFile, checker: TypeChecker) => DiscoveredClasses;
5
+ //# sourceMappingURL=angular-component-discovery.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-component-discovery.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-component-discovery.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAKV,UAAU,EACV,WAAW,EACZ,MAAM,YAAY,CAAC;AAUpB,OAAO,KAAK,EAEV,iBAAiB,EAElB,MAAM,iCAAiC,CAAC;AA+FzC,qEAAqE;AACrE,eAAO,MAAM,cAAc,GACzB,YAAY,UAAU,EACtB,SAAS,WAAW,KACnB,iBA2BF,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { ClassLikeDeclaration, ObjectLiteralExpression } from 'typescript';
2
+ import type { Discovery } from '../common/project-usage.type.ts';
3
+ /**
4
+ * Resolves a standalone component's `imports` to program classes. Library
5
+ * classes and pipes are skipped; anything that cannot be classified (an
6
+ * NgModule, a spread, a `forwardRef`) makes the scope unknown.
7
+ */
8
+ export declare const scopeOf: (metadata: ObjectLiteralExpression, discovery: Discovery) => ClassLikeDeclaration[] | null;
9
+ //# sourceMappingURL=angular-component-scope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-component-scope.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-component-scope.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,oBAAoB,EAEpB,uBAAuB,EAExB,MAAM,YAAY,CAAC;AAIpB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAgEjE;;;;GAIG;AACH,eAAO,MAAM,OAAO,GAClB,UAAU,uBAAuB,EACjC,WAAW,SAAS,KACnB,oBAAoB,EAAE,GAAG,IAwB3B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { ClassLikeDeclaration, Expression, Symbol } from 'typescript';
2
+ import type { DecoratorKind, Discovery } from '../common/project-usage.type.ts';
3
+ /**
4
+ * Follows an alias one hop at a time so every re-exporting file on the way
5
+ * to the target becomes a dependency of the discovery result.
6
+ */
7
+ export declare const resolveAlias: (symbol: Symbol, discovery: Discovery) => Symbol;
8
+ export declare const angularDecoratorKind: (expression: Expression, discovery: Discovery) => DecoratorKind | null;
9
+ export declare const classDecoratorKind: (declaration: ClassLikeDeclaration, discovery: Discovery) => DecoratorKind | null;
10
+ //# sourceMappingURL=angular-decorator-kind.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-decorator-kind.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-decorator-kind.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACV,oBAAoB,EAEpB,UAAU,EAEV,MAAM,EACP,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAwChF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,EAAE,WAAW,SAAS,KAAG,MAkBnE,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,YAAY,UAAU,EACtB,WAAW,SAAS,KACnB,aAAa,GAAG,IAoBlB,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,aAAa,oBAAoB,EACjC,WAAW,SAAS,KACnB,aAAa,GAAG,IAmBlB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { AngularClass, DirectiveIndex } from '../common/project-usage.type.ts';
2
+ export declare const directiveShape: (classes: Iterable<AngularClass>) => string;
3
+ export declare const buildDirectiveIndex: (classes: Iterable<AngularClass>) => DirectiveIndex;
4
+ //# sourceMappingURL=angular-directive-index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,12 @@
1
+ import type { Expression, ObjectLiteralExpression } from 'typescript';
2
+ import type { AngularTemplate, Discovery } from '../common/project-usage.type.ts';
3
+ /**
4
+ * The string an expression evaluates to: a literal, or a constant whose
5
+ * type is a single string literal (`const URL = './x.html'`, imported or
6
+ * not). The constant's declaration file becomes a dependency.
7
+ */
8
+ export declare const stringValue: (node: Expression | undefined, discovery: Discovery) => string | null;
9
+ export declare const metadataProperty: (metadata: ObjectLiteralExpression, name: string) => Expression | undefined;
10
+ export declare const templateOf: (metadata: ObjectLiteralExpression, fileName: string, discovery: Discovery) => AngularTemplate | null | undefined;
11
+ export declare const exportAsOf: (metadata: ObjectLiteralExpression, discovery: Discovery) => string[];
12
+ //# sourceMappingURL=angular-metadata-values.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-metadata-values.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-metadata-values.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAGtE,OAAO,KAAK,EACV,eAAe,EACf,SAAS,EACV,MAAM,iCAAiC,CAAC;AAEzC;;;;GAIG;AACH,eAAO,MAAM,WAAW,GACtB,MAAM,UAAU,GAAG,SAAS,EAC5B,WAAW,SAAS,KACnB,MAAM,GAAG,IAuBX,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,UAAU,uBAAuB,EACjC,MAAM,MAAM,KACX,UAAU,GAAG,SAgBf,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,UAAU,uBAAuB,EACjC,UAAU,MAAM,EAChB,WAAW,SAAS,KACnB,eAAe,GAAG,IAAI,GAAG,SA8B3B,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,UAAU,uBAAuB,EACjC,WAAW,SAAS,KACnB,MAAM,EAMR,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { ResolvedPathOptions } from '../common/project-usage.type.ts';
2
+ export declare const addResolvedPath: ({ allowMissingRoot, checker, declaration, names, sink }: ResolvedPathOptions) => boolean;
3
+ //# sourceMappingURL=angular-resolved-path.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,17 @@
1
+ import type { Binary, TmplAstComponent, TmplAstDirective, TmplAstElement, TmplAstReference, TmplAstTemplate } from '@angular/compiler';
2
+ import { CombinedRecursiveAstVisitor, PropertyRead, SafePropertyRead } from '@angular/compiler';
3
+ import type { ReadChain, ReferenceOwner } from '../common/project-usage.type.ts';
4
+ export declare class ReadCollector extends CombinedRecursiveAstVisitor {
5
+ readonly reads: ReadChain[];
6
+ readonly referenceOwners: Map<TmplAstReference, ReferenceOwner>;
7
+ private record;
8
+ private recordReferences;
9
+ visitElement(element: TmplAstElement): void;
10
+ visitTemplate(template: TmplAstTemplate): void;
11
+ visitComponent(component: TmplAstComponent): void;
12
+ visitDirective(directive: TmplAstDirective): void;
13
+ visitBinary(node: Binary, context: unknown): unknown;
14
+ visitPropertyRead(node: PropertyRead, context: unknown): unknown;
15
+ visitSafePropertyRead(node: SafePropertyRead, context: unknown): unknown;
16
+ }
17
+ //# sourceMappingURL=angular-template-read-chains.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"angular-template-read-chains.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-chains.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,2BAA2B,EAG3B,YAAY,EAEZ,gBAAgB,EAEjB,MAAM,mBAAmB,CAAC;AAG3B,OAAO,KAAK,EACV,SAAS,EAET,cAAc,EACf,MAAM,iCAAiC,CAAC;AAoEzC,qBAAa,aAAc,SAAQ,2BAA2B;IAC5D,SAAgB,KAAK,EAAE,SAAS,EAAE,CAAM;IACxC,SAAgB,eAAe,wCAA+C;IAE9E,OAAO,CAAC,MAAM;IAQd,OAAO,CAAC,gBAAgB;IAMR,YAAY,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAK3C,aAAa,CAAC,QAAQ,EAAE,eAAe,GAAG,IAAI;IAK9C,cAAc,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI;IAKjD,cAAc,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI;IAKjD,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,OAAO;IAgBpD,iBAAiB,CAC/B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,OAAO,GACf,OAAO;IAMM,qBAAqB,CACnC,IAAI,EAAE,gBAAgB,EACtB,OAAO,EAAE,OAAO,GACf,OAAO;CAKX"}
@@ -0,0 +1,8 @@
1
+ import type { TemplateReadsOptions } from '../common/project-usage.type.ts';
2
+ type TemplateReadResult = {
3
+ /** True when a `#reference` was resolved through the directive index. */
4
+ readonly usedDirectiveIndex: boolean;
5
+ };
6
+ export declare const addTemplateReads: ({ angularClass, checker, directives, fileName, sink, source }: TemplateReadsOptions) => TemplateReadResult;
7
+ export {};
8
+ //# sourceMappingURL=angular-template-read-resolution.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,6 @@
1
+ import type { TemplateFileVersion, TemplateReads } from '../common/project-index.type.ts';
2
+ import type { CollectTemplateReadsOptions } from '../common/project-usage.type.ts';
3
+ export declare const templateFileIsCurrent: (version: TemplateFileVersion) => boolean;
4
+ /** Reads made by the templates of the components declared in one file. */
5
+ export declare const collectAngularTemplateReads: ({ allNames, checker, classes, directives, sink }: CollectTemplateReadsOptions) => TemplateReads;
6
+ //# sourceMappingURL=angular-template-reads.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,5 @@
1
+ import type { TmplAstReference } from '@angular/compiler';
2
+ import type { ReadSegment, ReferenceOwner, TemplateReadContext } from '../common/project-usage.type.ts';
3
+ /** Reads made on the classes a template `#reference` resolves to. */
4
+ export declare const addReferenceRead: (context: TemplateReadContext, reference: TmplAstReference, owner: ReferenceOwner | undefined, names: ReadSegment[]) => void;
5
+ //# sourceMappingURL=angular-template-references.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,54 @@
1
+ import type { Node, Program, SourceFile, TypeChecker } from 'typescript';
2
+ import type { AngularClass, DirectiveIndex } from './project-usage.type.ts';
3
+ export type ProjectUsageIndex = {
4
+ readonly has: (node: Node) => boolean;
5
+ };
6
+ export type TemplateFileVersion = {
7
+ readonly fileName: string;
8
+ readonly mtimeNs: bigint;
9
+ readonly size: bigint;
10
+ };
11
+ export type TemplateReads = {
12
+ readonly templateVersions: TemplateFileVersion[];
13
+ readonly usedDirectiveIndex: boolean;
14
+ };
15
+ /**
16
+ * Everything one source file contributes to the index: the member
17
+ * declarations it reads, and the files whose contents those resolutions
18
+ * depended on. The entry stays valid while every one of those `SourceFile`
19
+ * objects is still the one the current Program holds.
20
+ */
21
+ export type FileEntry = {
22
+ readonly declarations: ReadonlySet<Node>;
23
+ readonly dependencies: ReadonlySet<SourceFile>;
24
+ /** Names treated as read because this file could not be indexed exactly. */
25
+ readonly fallbackNames: ReadonlySet<string>;
26
+ readonly sourceFile: SourceFile;
27
+ readonly templateVersions: TemplateFileVersion[];
28
+ readonly usedDirectiveIndex: boolean;
29
+ };
30
+ export type FileClasses = {
31
+ readonly candidateNames: ReadonlySet<string>;
32
+ readonly classes: AngularClass[];
33
+ /** Files the discovered metadata resolved through (aliases, constants). */
34
+ readonly dependencies: ReadonlySet<SourceFile>;
35
+ readonly sourceFile: SourceFile;
36
+ };
37
+ export type ProjectIndex = {
38
+ /** Member names of decorated classes; only ever grows within a session. */
39
+ readonly candidateNames: Set<string>;
40
+ readonly classes: Map<string, FileClasses>;
41
+ directives: DirectiveIndex;
42
+ directiveShape: string;
43
+ readonly entries: Map<string, FileEntry>;
44
+ program: Program | null;
45
+ templateCheckDuration: number;
46
+ templateCheckedAt: number;
47
+ usage: ProjectUsageIndex | undefined;
48
+ };
49
+ export type LazyChecker = () => TypeChecker;
50
+ export type SourceFileMaps = {
51
+ readonly all: ReadonlyMap<string, SourceFile>;
52
+ readonly current: ReadonlyMap<string, SourceFile>;
53
+ };
54
+ //# sourceMappingURL=project-index.type.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,116 @@
1
+ import type { PropertyRead, SelectorMatcher, TmplAstComponent, TmplAstDirective, TmplAstElement, TmplAstTemplate } from '@angular/compiler';
2
+ import type { ArrayLiteralExpression, BindingPattern, ClassLikeDeclaration, Declaration, Node, ObjectLiteralExpression, SourceFile, Type, TypeChecker } from 'typescript';
3
+ export type AddDeclaration = (declaration: Declaration) => void;
4
+ /**
5
+ * Receives every read resolved while indexing one source file. Types are
6
+ * reported wherever a member is looked up on them, so the index can tell
7
+ * which files may change the outcome of that lookup later.
8
+ */
9
+ export type ReadSink = {
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
+ readonly addFallbackNames: (names: Iterable<string>, reason: string) => void;
17
+ readonly addType: (type: Type) => void;
18
+ };
19
+ export type CandidateNames = ReadonlySet<string>;
20
+ export type AssignmentPattern = ArrayLiteralExpression | ObjectLiteralExpression;
21
+ export type DestructuringPattern = AssignmentPattern | BindingPattern;
22
+ /**
23
+ * One element of a destructuring pattern, reduced to what read collection
24
+ * needs: the property names it reads (null reads every property), the
25
+ * pattern nested inside it, and the node its type is resolved at.
26
+ */
27
+ export type PatternElementRead = {
28
+ readonly location: Node;
29
+ readonly names: string[] | null;
30
+ readonly nested: DestructuringPattern | null;
31
+ readonly rest: boolean;
32
+ };
33
+ type ExternalAngularTemplate = {
34
+ readonly fileName: string;
35
+ readonly kind: 'external';
36
+ };
37
+ type InlineAngularTemplate = {
38
+ readonly kind: 'inline';
39
+ readonly source: string;
40
+ };
41
+ export type AngularTemplate = ExternalAngularTemplate | InlineAngularTemplate;
42
+ export type AngularClass = {
43
+ readonly component: boolean;
44
+ readonly declaration: ClassLikeDeclaration;
45
+ readonly exportAs: string[];
46
+ /** True when `hostDirectives` is set; their exportAs is not modelled. */
47
+ readonly hostDirectives: boolean;
48
+ 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
+ readonly scope: ClassLikeDeclaration[] | null;
54
+ readonly selector: string | null;
55
+ readonly template: AngularTemplate | null;
56
+ /** False when the metadata cannot be read statically (fail closed). */
57
+ readonly valid: boolean;
58
+ };
59
+ export type DecoratorKind = 'Component' | 'Directive' | 'NgModule' | 'Pipe';
60
+ export type Discovery = {
61
+ readonly checker: TypeChecker;
62
+ /** Files whose contents the discovered metadata depends on. */
63
+ readonly dependencies: Set<SourceFile>;
64
+ };
65
+ export type DiscoveredClasses = {
66
+ readonly classes: AngularClass[];
67
+ readonly dependencies: ReadonlySet<SourceFile>;
68
+ };
69
+ /** Program-wide lookup of the classes a template reference can point at. */
70
+ export type DirectiveIndex = {
71
+ readonly byDeclaration: ReadonlyMap<ClassLikeDeclaration, AngularClass>;
72
+ readonly byExportAs: ReadonlyMap<string, ClassLikeDeclaration[]>;
73
+ readonly componentMatcher: SelectorMatcher<ClassLikeDeclaration[]>;
74
+ };
75
+ export type ReferenceOwner = TmplAstComponent | TmplAstDirective | TmplAstElement | TmplAstTemplate;
76
+ export type ReadSegment = {
77
+ readonly called: boolean;
78
+ readonly name: string;
79
+ };
80
+ export type ReadChain = {
81
+ readonly names: ReadSegment[];
82
+ readonly root: PropertyRead;
83
+ };
84
+ export type ResolvedPathOptions = {
85
+ readonly allowMissingRoot: boolean;
86
+ readonly checker: TypeChecker;
87
+ readonly declaration: ClassLikeDeclaration;
88
+ readonly names: ReadSegment[];
89
+ readonly sink: ReadSink;
90
+ };
91
+ export type TemplateReadContext = {
92
+ readonly checker: TypeChecker;
93
+ readonly className: string;
94
+ readonly declaration: ClassLikeDeclaration;
95
+ readonly directives: DirectiveIndex;
96
+ readonly fileName: string;
97
+ readonly scope: ClassLikeDeclaration[] | null;
98
+ readonly sink: ReadSink;
99
+ };
100
+ export type TemplateReadsOptions = {
101
+ readonly angularClass: AngularClass;
102
+ readonly checker: TypeChecker;
103
+ readonly directives: DirectiveIndex;
104
+ readonly fileName: string;
105
+ readonly sink: ReadSink;
106
+ readonly source: string;
107
+ };
108
+ export type CollectTemplateReadsOptions = {
109
+ readonly allNames: CandidateNames;
110
+ readonly checker: TypeChecker;
111
+ readonly classes: AngularClass[];
112
+ readonly directives: DirectiveIndex;
113
+ readonly sink: ReadSink;
114
+ };
115
+ export {};
116
+ //# sourceMappingURL=project-usage.type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-usage.type.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-usage.type.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,4 @@
1
+ import type { SourceFile, TypeChecker } from 'typescript';
2
+ import type { FileEntry, ProjectIndex } from './common/project-index.type.ts';
3
+ export declare const computeEntry: (index: ProjectIndex, sourceFile: SourceFile, checker: TypeChecker) => FileEntry;
4
+ //# sourceMappingURL=project-file-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-file-entry.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/project-file-entry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,UAAU,EAAQ,WAAW,EAAE,MAAM,YAAY,CAAC;AAGtE,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EAEb,MAAM,gCAAgC,CAAC;AA8CxC,eAAO,MAAM,YAAY,GACvB,OAAO,YAAY,EACnB,YAAY,UAAU,EACtB,SAAS,WAAW,KACnB,SAgCF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { LazyChecker, ProjectIndex, SourceFileMaps } from './common/project-index.type.ts';
2
+ /** Re-index changed files' classes; returns member names never seen before. */
3
+ export declare const reconcileClasses: (index: ProjectIndex, maps: SourceFileMaps, checker: LazyChecker) => Set<string>;
4
+ //# sourceMappingURL=project-index-classes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-index-classes.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-classes.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAEV,WAAW,EACX,YAAY,EACZ,cAAc,EACf,MAAM,gCAAgC,CAAC;AAgGxC,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,GAC3B,OAAO,YAAY,EACnB,MAAM,cAAc,EACpB,SAAS,WAAW,KACnB,GAAG,CAAC,MAAM,CAWZ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Program } from 'typescript';
2
+ import type { ProjectIndex } from './common/project-index.type.ts';
3
+ export declare const reconcile: (index: ProjectIndex, program: Program) => void;
4
+ //# sourceMappingURL=project-index-reconciliation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-index-reconciliation.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-reconciliation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAA2B,MAAM,YAAY,CAAC;AAEnE,OAAO,KAAK,EAAe,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAqEhF,eAAO,MAAM,SAAS,GAAI,OAAO,YAAY,EAAE,SAAS,OAAO,KAAG,IAWjE,CAAC"}
@@ -0,0 +1,10 @@
1
+ import type { Program, SourceFile } from 'typescript';
2
+ import type { FileEntry, ProjectIndex, SourceFileMaps } from './common/project-index.type.ts';
3
+ export declare const indexableSourceFiles: (program: Program) => SourceFile[];
4
+ export declare const sourceFileMaps: (program: Program) => SourceFileMaps;
5
+ export declare const dropEntries: (index: ProjectIndex, stale: (entry: FileEntry) => boolean) => void;
6
+ export declare const isReplaced: (sourceFile: SourceFile, dependencies: ReadonlySet<SourceFile>, maps: SourceFileMaps) => boolean;
7
+ export declare const dropReplacedEntries: (index: ProjectIndex, maps: SourceFileMaps) => void;
8
+ export declare const dropEntriesMentioning: (index: ProjectIndex, names: ReadonlySet<string>) => void;
9
+ export declare const dropStaleTemplateEntries: (index: ProjectIndex, force: boolean) => void;
10
+ //# sourceMappingURL=project-index-staleness.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-index-staleness.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-staleness.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGtD,OAAO,KAAK,EACV,SAAS,EACT,YAAY,EACZ,cAAc,EAEf,MAAM,gCAAgC,CAAC;AAmBxC,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,KAAG,UAAU,EAIjE,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,SAAS,OAAO,KAAG,cAejD,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,OAAO,YAAY,EACnB,OAAO,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,KACnC,IAQF,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,YAAY,UAAU,EACtB,cAAc,WAAW,CAAC,UAAU,CAAC,EACrC,MAAM,cAAc,KACnB,OAYF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,OAAO,YAAY,EACnB,MAAM,cAAc,KACnB,IAMF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,OAAO,YAAY,EACnB,OAAO,WAAW,CAAC,MAAM,CAAC,KACzB,IAWF,CAAC;AAqBF,eAAO,MAAM,wBAAwB,GACnC,OAAO,YAAY,EACnB,OAAO,OAAO,KACb,IAiBF,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { Program } from 'typescript';
2
+ import type { ProjectUsageIndex } from './common/project-index.type.ts';
3
+ /**
4
+ * True when the index already reflects this exact Program, so callers can
5
+ * skip local work the index duplicates (such as parsing a component's own
6
+ * template) without ever triggering a build.
7
+ */
8
+ export declare const projectUsageIsCurrent: (program: Program) => boolean;
9
+ /**
10
+ * Member declarations read anywhere in the Program's non-spec TypeScript
11
+ * and Angular templates, or null when the project cannot be indexed
12
+ * reliably. Indexes are kept per tsconfig and updated incrementally: a new
13
+ * Program (an edit in the editor) only re-indexes the files that changed
14
+ * and the files whose resolutions depended on them.
15
+ */
16
+ export declare const projectUsage: (program: Program) => ProjectUsageIndex | null;
17
+ //# sourceMappingURL=project-usage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project-usage.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/project-usage.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAQ,OAAO,EAAE,MAAM,YAAY,CAAC;AAGhD,OAAO,KAAK,EAEV,iBAAiB,EAClB,MAAM,gCAAgC,CAAC;AAsExC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,SAAS,OAAO,KAAG,OAOxD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,OAAO,KAAG,iBAAiB,GAAG,IAqBnE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ClassLikeDeclaration, TypeChecker } from 'typescript';
2
+ import type { ReadSink } from '../common/project-usage.type.ts';
3
+ /**
4
+ * Angular calls lifecycle and forms methods through the interfaces a class
5
+ * implements, so an implementation of one counts as read.
6
+ */
7
+ export declare const collectAngularInterfaceMethods: (node: ClassLikeDeclaration, checker: TypeChecker, sink: ReadSink) => void;
8
+ //# sourceMappingURL=typescript-angular-interface-methods.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-angular-interface-methods.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-angular-interface-methods.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EAIpB,WAAW,EACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAqChE;;;GAGG;AACH,eAAO,MAAM,8BAA8B,GACzC,MAAM,oBAAoB,EAC1B,SAAS,WAAW,EACpB,MAAM,QAAQ,KACb,IAkBF,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { TypeChecker } from 'typescript';
2
+ import type { AssignmentPattern, PatternElementRead } from '../common/project-usage.type.ts';
3
+ /** Reads made by every element of one destructuring assignment target. */
4
+ export declare const assignmentPatternElements: (pattern: AssignmentPattern, checker: TypeChecker) => PatternElementRead[];
5
+ //# sourceMappingURL=typescript-assignment-pattern-elements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-assignment-pattern-elements.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-assignment-pattern-elements.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAGV,WAAW,EACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EACV,iBAAiB,EAEjB,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AAuEzC,0EAA0E;AAC1E,eAAO,MAAM,yBAAyB,GACpC,SAAS,iBAAiB,EAC1B,SAAS,WAAW,KACnB,kBAAkB,EAkBpB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { BindingPattern, Node, TypeChecker } from 'typescript';
2
+ import type { PatternElementRead } from '../common/project-usage.type.ts';
3
+ export declare const isBindingPattern: (node: Node) => node is BindingPattern;
4
+ /** Reads made by every element of one array or object binding pattern. */
5
+ export declare const bindingPatternElements: (pattern: BindingPattern, checker: TypeChecker) => PatternElementRead[];
6
+ //# sourceMappingURL=typescript-binding-pattern-elements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-binding-pattern-elements.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-binding-pattern-elements.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAGV,cAAc,EACd,IAAI,EACJ,WAAW,EACZ,MAAM,YAAY,CAAC;AAGpB,OAAO,KAAK,EAEV,kBAAkB,EACnB,MAAM,iCAAiC,CAAC;AAEzC,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,KAAG,IAAI,IAAI,cAKrD,CAAC;AA0EF,0EAA0E;AAC1E,eAAO,MAAM,sBAAsB,GACjC,SAAS,cAAc,EACvB,SAAS,WAAW,KACnB,kBAAkB,EAkBpB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SourceFile } from 'typescript';
2
+ /** Names of members declared by decorated classes in one source file. */
3
+ export declare const collectCandidateNames: (sourceFile: SourceFile) => Set<string>;
4
+ //# sourceMappingURL=typescript-candidate-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-candidate-names.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-candidate-names.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAA8B,UAAU,EAAE,MAAM,YAAY,CAAC;AAmCzE,yEAAyE;AACzE,eAAO,MAAM,qBAAqB,GAAI,YAAY,UAAU,KAAG,GAAG,CAAC,MAAM,CAWxE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Node, TypeChecker } from 'typescript';
2
+ import type { CandidateNames, ReadSink } from '../common/project-usage.type.ts';
3
+ export declare const collectDestructuringReads: (node: Node, checker: TypeChecker, sink: ReadSink, candidateNames: CandidateNames) => void;
4
+ //# sourceMappingURL=typescript-destructuring-reads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typescript-destructuring-reads.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-destructuring-reads.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,IAAI,EAAQ,WAAW,EAAE,MAAM,YAAY,CAAC;AAY1D,OAAO,KAAK,EACV,cAAc,EAGd,QAAQ,EACT,MAAM,iCAAiC,CAAC;AA8IzC,eAAO,MAAM,yBAAyB,GACpC,MAAM,IAAI,EACV,SAAS,WAAW,EACpB,MAAM,QAAQ,EACd,gBAAgB,cAAc,KAC7B,IAKF,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SourceFile, TypeChecker } from 'typescript';
2
+ import type { CandidateNames, ReadSink } from '../common/project-usage.type.ts';
3
+ export declare const collectTypeScriptReads: (sourceFile: SourceFile, checker: TypeChecker, sink: ReadSink, candidateNames: CandidateNames) => void;
4
+ //# sourceMappingURL=typescript-reads.d.ts.map