lint-suite 1.6.2 → 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.
- package/README.md +262 -18
- package/eslint.cjs +4027 -467
- package/eslint.cjs.map +4 -4
- package/eslint.js +3972 -350
- package/eslint.js.map +4 -4
- package/lib/angular-template.d.ts.map +1 -1
- package/lib/angular.d.ts +0 -1
- package/lib/angular.d.ts.map +1 -1
- package/lib/base-limits.d.ts.map +1 -1
- package/lib/base-practices.d.ts.map +1 -1
- package/lib/line-length.const.d.ts +2 -0
- package/lib/line-length.const.d.ts.map +1 -0
- package/lib/rules/arrow-body-fits-line/arrow-body-fits-line.d.ts +6 -0
- package/lib/rules/arrow-body-fits-line/arrow-body-fits-line.d.ts.map +1 -0
- package/lib/rules/chain-fits-line/chain-fits-line.d.ts +6 -0
- package/lib/rules/chain-fits-line/chain-fits-line.d.ts.map +1 -0
- package/lib/rules/chain-receiver-is-name/chain-receiver-is-name.d.ts +7 -0
- package/lib/rules/chain-receiver-is-name/chain-receiver-is-name.d.ts.map +1 -0
- package/lib/rules/common/class-usage.type.d.ts +26 -0
- package/lib/rules/common/class-usage.type.d.ts.map +1 -0
- package/lib/rules/common/file-cache.type.d.ts +11 -0
- package/lib/rules/common/file-cache.type.d.ts.map +1 -0
- package/lib/rules/common/glob-matcher.type.d.ts +2 -0
- package/lib/rules/common/glob-matcher.type.d.ts.map +1 -0
- package/lib/rules/component-metadata.d.ts +3 -0
- package/lib/rules/component-metadata.d.ts.map +1 -0
- package/lib/rules/explicit-accessibility/common/explicit-accessibility.const.d.ts +1 -1
- package/lib/rules/explicit-accessibility/common/explicit-accessibility.const.d.ts.map +1 -1
- package/lib/rules/explicit-accessibility/common/explicit-accessibility.type.d.ts +4 -1
- package/lib/rules/explicit-accessibility/common/explicit-accessibility.type.d.ts.map +1 -1
- package/lib/rules/file-cache.d.ts +14 -0
- package/lib/rules/file-cache.d.ts.map +1 -0
- package/lib/rules/max-condition-operands/max-condition-operands.d.ts +10 -0
- package/lib/rules/max-condition-operands/max-condition-operands.d.ts.map +1 -0
- package/lib/rules/no-call-in-condition/common/no-call-in-condition.const.d.ts +6 -0
- package/lib/rules/no-call-in-condition/common/no-call-in-condition.const.d.ts.map +1 -0
- package/lib/rules/no-call-in-condition/common/no-call-in-condition.type.d.ts +21 -0
- package/lib/rules/no-call-in-condition/common/no-call-in-condition.type.d.ts.map +1 -0
- package/lib/rules/no-call-in-condition/no-call-in-condition.d.ts +7 -0
- package/lib/rules/no-call-in-condition/no-call-in-condition.d.ts.map +1 -0
- package/lib/rules/no-call-in-condition/utils/call-exemptions.util.d.ts +4 -0
- package/lib/rules/no-call-in-condition/utils/call-exemptions.util.d.ts.map +1 -0
- package/lib/rules/no-call-in-condition/utils/condition-calls.util.d.ts +7 -0
- package/lib/rules/no-call-in-condition/utils/condition-calls.util.d.ts.map +1 -0
- package/lib/rules/no-grouped-condition/no-grouped-condition.d.ts +7 -0
- package/lib/rules/no-grouped-condition/no-grouped-condition.d.ts.map +1 -0
- package/lib/rules/no-inline-object-types/no-inline-object-types.d.ts.map +1 -1
- package/lib/rules/no-inline-return-object/no-inline-return-object.d.ts +6 -0
- package/lib/rules/no-inline-return-object/no-inline-return-object.d.ts.map +1 -0
- package/lib/rules/no-nested-object-value/common/no-nested-object-value.const.d.ts +5 -0
- package/lib/rules/no-nested-object-value/common/no-nested-object-value.const.d.ts.map +1 -0
- package/lib/rules/no-nested-object-value/common/no-nested-object-value.type.d.ts +7 -0
- package/lib/rules/no-nested-object-value/common/no-nested-object-value.type.d.ts.map +1 -0
- package/lib/rules/no-nested-object-value/no-nested-object-value.d.ts +7 -0
- package/lib/rules/no-nested-object-value/no-nested-object-value.d.ts.map +1 -0
- package/lib/rules/no-nested-object-value/utils/decorator-config.util.d.ts +3 -0
- package/lib/rules/no-nested-object-value/utils/decorator-config.util.d.ts.map +1 -0
- package/lib/rules/no-spread-expression/no-spread-expression.d.ts +6 -0
- package/lib/rules/no-spread-expression/no-spread-expression.d.ts.map +1 -0
- package/lib/rules/no-unstyled-classes/common/no-unstyled-classes.type.d.ts +33 -0
- package/lib/rules/no-unstyled-classes/common/no-unstyled-classes.type.d.ts.map +1 -0
- package/lib/rules/no-unstyled-classes/no-unstyled-classes.d.ts +8 -0
- package/lib/rules/no-unstyled-classes/no-unstyled-classes.d.ts.map +1 -0
- package/lib/rules/no-unstyled-classes/styles/component-stylesheets.d.ts +4 -0
- package/lib/rules/no-unstyled-classes/styles/component-stylesheets.d.ts.map +1 -0
- package/lib/rules/no-unstyled-classes/styles/linked-stylesheets.d.ts +3 -0
- package/lib/rules/no-unstyled-classes/styles/linked-stylesheets.d.ts.map +1 -0
- package/lib/rules/no-unstyled-classes/styles/stylesheet-classes.d.ts +3 -0
- package/lib/rules/no-unstyled-classes/styles/stylesheet-classes.d.ts.map +1 -0
- package/lib/rules/no-unstyled-classes/styles/stylesheet-collection.d.ts +4 -0
- package/lib/rules/no-unstyled-classes/styles/stylesheet-collection.d.ts.map +1 -0
- package/lib/rules/no-unstyled-classes/styles/stylesheet-imports.d.ts +2 -0
- package/lib/rules/no-unstyled-classes/styles/stylesheet-imports.d.ts.map +1 -0
- package/lib/rules/no-unstyled-classes/styles/template-stylesheets.d.ts +3 -0
- package/lib/rules/no-unstyled-classes/styles/template-stylesheets.d.ts.map +1 -0
- package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-directive-index.d.ts +5 -0
- package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-directive-index.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-resolved-path.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-resolution.d.ts +0 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-read-resolution.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-reads.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/angular/angular-template-references.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-index.type.d.ts +6 -8
- package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-index.type.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-usage.type.d.ts +3 -14
- package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-usage.type.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/project-file-entry.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-classes.d.ts +3 -2
- package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-classes.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-reconciliation.d.ts +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-reconciliation.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-staleness.d.ts +8 -4
- package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-staleness.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/project-usage.d.ts +3 -2
- package/lib/rules/no-unused-angular-instance-fields/project-usage/project-usage.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-destructuring-reads.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-reads.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/class-members.util.d.ts +10 -0
- package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/class-members.util.d.ts.map +1 -0
- package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-class-fields.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-imports.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-managed-fields.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-metadata-literals.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/rule/common/no-unused-angular-instance-fields.type.d.ts +2 -1
- package/lib/rules/no-unused-angular-instance-fields/rule/common/no-unused-angular-instance-fields.type.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/rule/no-unused-angular-instance-fields.d.ts.map +1 -1
- package/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-class-read-visitor.d.ts.map +1 -1
- package/lib/rules/no-unused-classes/common/no-unused-classes.type.d.ts +24 -0
- package/lib/rules/no-unused-classes/common/no-unused-classes.type.d.ts.map +1 -0
- package/lib/rules/no-unused-classes/no-unused-classes.d.ts +8 -0
- package/lib/rules/no-unused-classes/no-unused-classes.d.ts.map +1 -0
- package/lib/rules/no-unused-classes/styles/linked-templates.d.ts +9 -0
- package/lib/rules/no-unused-classes/styles/linked-templates.d.ts.map +1 -0
- package/lib/rules/no-unused-classes/styles/stylesheet-components.d.ts +3 -0
- package/lib/rules/no-unused-classes/styles/stylesheet-components.d.ts.map +1 -0
- package/lib/rules/no-unused-classes/template/template-usage.d.ts +3 -0
- package/lib/rules/no-unused-classes/template/template-usage.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/common/no-unused-exports.const.d.ts +7 -0
- package/lib/rules/no-unused-exports/common/no-unused-exports.const.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/common/no-unused-exports.type.d.ts +70 -0
- package/lib/rules/no-unused-exports/common/no-unused-exports.type.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/export-index.d.ts +6 -0
- package/lib/rules/no-unused-exports/export-index.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/no-unused-exports.d.ts +7 -0
- package/lib/rules/no-unused-exports/no-unused-exports.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/report-unused-exports.d.ts +12 -0
- package/lib/rules/no-unused-exports/report-unused-exports.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/utils/aggregate-update.util.d.ts +4 -0
- package/lib/rules/no-unused-exports/utils/aggregate-update.util.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/utils/export-edges.util.d.ts +5 -0
- package/lib/rules/no-unused-exports/utils/export-edges.util.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/utils/export-nodes.util.d.ts +5 -0
- package/lib/rules/no-unused-exports/utils/export-nodes.util.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/utils/export-usage.util.d.ts +4 -0
- package/lib/rules/no-unused-exports/utils/export-usage.util.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/utils/exported-names.util.d.ts +3 -0
- package/lib/rules/no-unused-exports/utils/exported-names.util.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/utils/file-changes.util.d.ts +4 -0
- package/lib/rules/no-unused-exports/utils/file-changes.util.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/utils/module-edges.util.d.ts +4 -0
- package/lib/rules/no-unused-exports/utils/module-edges.util.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/utils/module-target.util.d.ts +4 -0
- package/lib/rules/no-unused-exports/utils/module-target.util.d.ts.map +1 -0
- package/lib/rules/no-unused-exports/utils/public-exports.util.d.ts +3 -0
- package/lib/rules/no-unused-exports/utils/public-exports.util.d.ts.map +1 -0
- package/lib/rules/one-line-guard/one-line-guard.d.ts +10 -0
- package/lib/rules/one-line-guard/one-line-guard.d.ts.map +1 -0
- package/lib/rules/readonly-type-properties/readonly-type-properties.d.ts +2 -1
- package/lib/rules/readonly-type-properties/readonly-type-properties.d.ts.map +1 -1
- package/lib/rules/selector-classes.d.ts +7 -0
- package/lib/rules/selector-classes.d.ts.map +1 -0
- package/lib/rules/ternary-branch-shape/ternary-branch-shape.d.ts +6 -0
- package/lib/rules/ternary-branch-shape/ternary-branch-shape.d.ts.map +1 -0
- package/lib/rules/test-file-shape/common/test-file-shape.const.d.ts +14 -0
- package/lib/rules/test-file-shape/common/test-file-shape.const.d.ts.map +1 -0
- package/lib/rules/test-file-shape/common/test-file-shape.type.d.ts +7 -0
- package/lib/rules/test-file-shape/common/test-file-shape.type.d.ts.map +1 -0
- package/lib/rules/test-file-shape/mock-exports.d.ts +7 -0
- package/lib/rules/test-file-shape/mock-exports.d.ts.map +1 -0
- package/lib/rules/test-file-shape/stub-exports.d.ts +7 -0
- package/lib/rules/test-file-shape/stub-exports.d.ts.map +1 -0
- package/lib/rules/test-file-shape/test-file-shape.d.ts +7 -0
- package/lib/rules/test-file-shape/test-file-shape.d.ts.map +1 -0
- package/lib/rules/type-placement/common/type-placement.const.d.ts +5 -0
- package/lib/rules/type-placement/common/type-placement.const.d.ts.map +1 -0
- package/lib/rules/type-placement/common/type-placement.type.d.ts +7 -0
- package/lib/rules/type-placement/common/type-placement.type.d.ts.map +1 -0
- package/lib/rules/type-placement/type-placement.d.ts +7 -0
- package/lib/rules/type-placement/type-placement.d.ts.map +1 -0
- package/lib/rules/util-purity/common/util-purity.const.d.ts +10 -0
- package/lib/rules/util-purity/common/util-purity.const.d.ts.map +1 -0
- package/lib/rules/util-purity/common/util-purity.type.d.ts +7 -0
- package/lib/rules/util-purity/common/util-purity.type.d.ts.map +1 -0
- package/lib/rules/util-purity/util-purity.d.ts +7 -0
- package/lib/rules/util-purity/util-purity.d.ts.map +1 -0
- package/lib/rules/utils/class-expression-literals.util.d.ts +4 -0
- package/lib/rules/utils/class-expression-literals.util.d.ts.map +1 -0
- package/lib/rules/utils/enclosing-statement.util.d.ts +3 -0
- package/lib/rules/utils/enclosing-statement.util.d.ts.map +1 -0
- package/lib/rules/utils/glob-matcher.util.d.ts +3 -0
- package/lib/rules/utils/glob-matcher.util.d.ts.map +1 -0
- package/lib/rules/utils/indent-of.util.d.ts +3 -0
- package/lib/rules/utils/indent-of.util.d.ts.map +1 -0
- package/lib/rules/utils/resolved-rules.util.d.ts +5 -0
- package/lib/rules/utils/resolved-rules.util.d.ts.map +1 -0
- package/lib/rules/utils/template-classes.util.d.ts +3 -0
- package/lib/rules/utils/template-classes.util.d.ts.map +1 -0
- package/lib/rules/utils/template-links.util.d.ts +2 -0
- package/lib/rules/utils/template-links.util.d.ts.map +1 -0
- package/lib/rules/utils/to-regexp.util.d.ts +2 -0
- package/lib/rules/utils/to-regexp.util.d.ts.map +1 -0
- package/lib/typescript-local-plugin.d.ts.map +1 -1
- package/lib/typescript-safety.d.ts.map +1 -1
- package/lib/typescript.d.ts +0 -1
- package/lib/typescript.d.ts.map +1 -1
- package/lib/vitest.d.ts.map +1 -1
- package/package.json +4 -1
- package/prettier.cjs +6 -1
- package/prettier.cjs.map +3 -3
- package/prettier.d.ts.map +1 -1
- package/prettier.js +4 -1
- package/prettier.js.map +3 -3
- package/stylelint.cjs +884 -4
- package/stylelint.cjs.map +4 -4
- package/stylelint.d.ts.map +1 -1
- package/stylelint.js +918 -4
- package/stylelint.js.map +4 -4
package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-index.type.d.ts
CHANGED
|
@@ -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
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-index.type.d.ts.map
CHANGED
|
@@ -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,
|
|
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,CAA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AC;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"}
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-usage.type.d.ts
CHANGED
|
@@ -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
|
-
|
|
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:
|
|
60
|
+
readonly byDeclaration: Map<ClassLikeDeclaration, AngularClass>;
|
|
72
61
|
readonly byExportAs: ReadonlyMap<string, ClassLikeDeclaration[]>;
|
|
73
62
|
readonly componentMatcher: SelectorMatcher<ClassLikeDeclaration[]>;
|
|
74
63
|
};
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/common/project-usage.type.d.ts.map
CHANGED
|
@@ -1 +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":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EACV,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,IAAI,EACJ,uBAAuB,EACvB,UAAU,EACV,IAAI,EACJ,WAAW,EACZ,MAAM,YAAY,CAAC;AAEpB,
|
|
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":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,eAAe,EAChB,MAAM,mBAAmB,CAAC;AAE3B,OAAO,KAAK,EACV,sBAAsB,EACtB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACX,IAAI,EACJ,uBAAuB,EACvB,UAAU,EACV,IAAI,EACJ,WAAW,EACZ,MAAM,YAAY,CAAC;AAEpB,KAAK,cAAc,GAAG,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAC;AAEzD;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG;IACrB,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7E,QAAQ,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CACxC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC;AAEjD,MAAM,M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,QAAQ,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,WAAW,EAAE,oBAAoB,CAAC;IAC3C,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,KAAK,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAC;IAC9C,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,CAAC;IACjC,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;CACzB,CAAC"}
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/project-file-entry.d.ts.map
CHANGED
|
@@ -1 +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,
|
|
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,SAqCF,CAAC"}
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-classes.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SourceFile } from 'typescript';
|
|
2
|
+
import type { CurrentSourceFiles, LazyChecker, ProjectIndex } from './common/project-index.type.ts';
|
|
2
3
|
/** Re-index changed files' classes; returns member names never seen before. */
|
|
3
|
-
export declare const reconcileClasses: (index: ProjectIndex,
|
|
4
|
+
export declare const reconcileClasses: (index: ProjectIndex, indexable: SourceFile[], current: CurrentSourceFiles, checker: LazyChecker) => Set<string>;
|
|
4
5
|
//# sourceMappingURL=project-index-classes.d.ts.map
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-classes.d.ts.map
CHANGED
|
@@ -1 +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":"
|
|
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":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAQ7C,OAAO,KAAK,EACV,kBAAkB,EAElB,WAAW,EACX,YAAY,EACb,MAAM,gCAAgC,CAAC;AAmHxC,+EAA+E;AAC/E,eAAO,MAAM,gBAAgB,GAC3B,OAAO,YAAY,EACnB,WAAW,UAAU,EAAE,EACvB,SAAS,kBAAkB,EAC3B,SAAS,WAAW,KACnB,GAAG,CAAC,MAAM,CAmBZ,CAAC"}
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-reconciliation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { Program } from 'typescript';
|
|
2
2
|
import type { ProjectIndex } from './common/project-index.type.ts';
|
|
3
|
-
export declare const reconcile: (index: ProjectIndex, program: Program) => void;
|
|
3
|
+
export declare const reconcile: (index: ProjectIndex, program: Program, fileName: string) => void;
|
|
4
4
|
//# sourceMappingURL=project-index-reconciliation.d.ts.map
|
|
@@ -1 +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":"
|
|
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":"AAEA,OAAO,KAAK,EAAE,OAAO,EAA2B,MAAM,YAAY,CAAC;AAEnE,OAAO,KAAK,EAGV,YAAY,EAEb,MAAM,gCAAgC,CAAC;AAkHxC,eAAO,MAAM,SAAS,GACpB,OAAO,YAAY,EACnB,SAAS,OAAO,EAChB,UAAU,MAAM,KACf,IAWF,CAAC"}
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-staleness.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import type { Program, SourceFile } from 'typescript';
|
|
2
|
-
import type { FileEntry, ProjectIndex
|
|
2
|
+
import type { CurrentSourceFiles, FileEntry, ProjectIndex } from './common/project-index.type.ts';
|
|
3
3
|
export declare const indexableSourceFiles: (program: Program) => SourceFile[];
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const removeEntry: (index: ProjectIndex, fileName: string) => void;
|
|
5
|
+
export declare const addEntry: (index: ProjectIndex, entry: FileEntry) => void;
|
|
5
6
|
export declare const dropEntries: (index: ProjectIndex, stale: (entry: FileEntry) => boolean) => void;
|
|
6
|
-
|
|
7
|
-
export declare const
|
|
7
|
+
/** The Program's source file objects, for identity checks without path work. */
|
|
8
|
+
export declare const currentSourceFiles: (program: Program) => CurrentSourceFiles;
|
|
9
|
+
export declare const isReplaced: (sourceFile: SourceFile, dependencies: ReadonlySet<SourceFile>, current: CurrentSourceFiles) => boolean;
|
|
10
|
+
export declare const dropReplacedEntries: (index: ProjectIndex, current: CurrentSourceFiles) => void;
|
|
8
11
|
export declare const dropEntriesMentioning: (index: ProjectIndex, names: ReadonlySet<string>) => void;
|
|
12
|
+
export declare const hasStaleTemplate: (entry: FileEntry) => boolean;
|
|
9
13
|
export declare const dropStaleTemplateEntries: (index: ProjectIndex, force: boolean) => void;
|
|
10
14
|
//# sourceMappingURL=project-index-staleness.d.ts.map
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/project-index-staleness.d.ts.map
CHANGED
|
@@ -1 +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,
|
|
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,kBAAkB,EAClB,SAAS,EACT,YAAY,EAEb,MAAM,gCAAgC,CAAC;AAmBxC,eAAO,MAAM,oBAAoB,GAAI,SAAS,OAAO,KAAG,UAAU,EAIjE,CAAC;AAmBF,eAAO,MAAM,WAAW,GAAI,OAAO,YAAY,EAAE,UAAU,MAAM,KAAG,IAQnE,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,YAAY,EAAE,OAAO,SAAS,KAAG,IAKhE,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,OAAO,YAAY,EACnB,OAAO,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,KACnC,IAMF,CAAC;AAEF,gFAAgF;AAChF,eAAO,MAAM,kBAAkB,GAAI,SAAS,OAAO,KAAG,kBAErD,CAAC;AAEF,eAAO,MAAM,UAAU,GACrB,YAAY,UAAU,EACtB,cAAc,WAAW,CAAC,UAAU,CAAC,EACrC,SAAS,kBAAkB,KAC1B,OAYF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,OAAO,YAAY,EACnB,SAAS,kBAAkB,KAC1B,IAMF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAChC,OAAO,YAAY,EACnB,OAAO,WAAW,CAAC,MAAM,CAAC,KACzB,IAWF,CAAC;AAqBF,eAAO,MAAM,gBAAgB,GAAI,OAAO,SAAS,KAAG,OAEnD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACnC,OAAO,YAAY,EACnB,OAAO,OAAO,KACb,IAiBF,CAAC"}
|
|
@@ -11,7 +11,8 @@ export declare const projectUsageIsCurrent: (program: Program) => boolean;
|
|
|
11
11
|
* and Angular templates, or null when the project cannot be indexed
|
|
12
12
|
* reliably. Indexes are kept per tsconfig and updated incrementally: a new
|
|
13
13
|
* Program (an edit in the editor) only re-indexes the files that changed
|
|
14
|
-
* and the files whose resolutions depended on them.
|
|
14
|
+
* and the files whose resolutions depended on them. `fileName` is the file
|
|
15
|
+
* being linted; its own templates are always checked for freshness.
|
|
15
16
|
*/
|
|
16
|
-
export declare const projectUsage: (program: Program) => ProjectUsageIndex | null;
|
|
17
|
+
export declare const projectUsage: (program: Program, fileName: string) => ProjectUsageIndex | null;
|
|
17
18
|
//# sourceMappingURL=project-usage.d.ts.map
|
|
@@ -1 +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;
|
|
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;AAwDxC;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,SAAS,OAAO,KAAG,OAOxD,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,YAAY,GACvB,SAAS,OAAO,EAChB,UAAU,MAAM,KACf,iBAAiB,GAAG,IAqBtB,CAAC"}
|
|
@@ -1 +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;
|
|
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;AA+IzC,eAAO,MAAM,yBAAyB,GACpC,MAAM,IAAI,EACV,SAAS,WAAW,EACpB,MAAM,QAAQ,EACd,gBAAgB,cAAc,KAC7B,IAKF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-reads.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-reads.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAIV,UAAU,EACV,WAAW,EACZ,MAAM,YAAY,CAAC;AAUpB,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"typescript-reads.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/typescript/typescript-reads.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAIV,UAAU,EACV,WAAW,EACZ,MAAM,YAAY,CAAC;AAUpB,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAmFhF,eAAO,MAAM,sBAAsB,GACjC,YAAY,UAAU,EACtB,SAAS,WAAW,EACpB,MAAM,QAAQ,EACd,gBAAgB,cAAc,KAC7B,IAmBF,CAAC"}
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/class-members.util.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ClassElement, ClassLikeDeclaration, Node } from 'typescript';
|
|
2
|
+
/** Members the class declares itself under `name`, without the type checker. */
|
|
3
|
+
export declare const ownMembersNamed: (declaration: ClassLikeDeclaration, name: string) => ClassElement[];
|
|
4
|
+
/**
|
|
5
|
+
* The class `this` refers to at `node`, or null when a `function` or an
|
|
6
|
+
* object literal rebinds it first (then only the checker knows).
|
|
7
|
+
*/
|
|
8
|
+
export declare const thisClassOf: (node: Node) => ClassLikeDeclaration | null;
|
|
9
|
+
export declare const isThisExpression: (node: Node) => boolean;
|
|
10
|
+
//# sourceMappingURL=class-members.util.d.ts.map
|
package/lib/rules/no-unused-angular-instance-fields/project-usage/utils/class-members.util.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class-members.util.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/project-usage/utils/class-members.util.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAiB3E,gFAAgF;AAChF,eAAO,MAAM,eAAe,GAC1B,aAAa,oBAAoB,EACjC,MAAM,MAAM,KACX,YAAY,EAMd,CAAC;AAuBF;;;GAGG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,IAAI,KAAG,oBAAoB,GAAG,IAc/D,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAAI,MAAM,IAAI,KAAG,OAE7C,CAAC"}
|
package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-class-fields.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-class-fields.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-class-fields.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EASV,0BAA0B,EAC3B,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"angular-class-fields.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-class-fields.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EASV,0BAA0B,EAC3B,MAAM,qDAAqD,CAAC;AAmG7D,eAAO,MAAM,mBAAmB,GAC9B,SAAS,0BAA0B,KAClC,IAiBF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-imports.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-imports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACf,MAAM,qDAAqD,CAAC;AAiB7D,eAAO,MAAM,WAAW,GACtB,MAAM,QAAQ,CAAC,UAAU,EACzB,SAAS,cAAc,KACtB,aAAa,GAAG,SAoBlB,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,MAAM,QAAQ,CAAC,UAAU,EACzB,YAAY,QAAQ,CAAC,UAAU,KAC9B,OAgBF,CAAC;
|
|
1
|
+
{"version":3,"file":"angular-imports.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-imports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EACV,oBAAoB,EACpB,gBAAgB,EAChB,aAAa,EACb,cAAc,EACf,MAAM,qDAAqD,CAAC;AAiB7D,eAAO,MAAM,WAAW,GACtB,MAAM,QAAQ,CAAC,UAAU,EACzB,SAAS,cAAc,KACtB,aAAa,GAAG,SAoBlB,CAAC;AAEF,eAAO,MAAM,eAAe,GAC1B,MAAM,QAAQ,CAAC,UAAU,EACzB,YAAY,QAAQ,CAAC,UAAU,KAC9B,OAgBF,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAC3B,MAAM,QAAQ,CAAC,iBAAiB,EAChC,SAAS,cAAc,KACtB,IAmBF,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAC/B,MAAM,gBAAgB,EACtB,SAAS,cAAc,KACtB,oBAAoB,GAAG,IAyBzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,KAAK,QAAQ,CAAC,OAAO,KACpB,cAAc,GAAG,IAoBnB,CAAC"}
|
package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-managed-fields.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-managed-fields.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-managed-fields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACd,MAAM,qDAAqD,CAAC;
|
|
1
|
+
{"version":3,"file":"angular-managed-fields.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-managed-fields.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGzD,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACd,MAAM,qDAAqD,CAAC;AAuE7D,eAAO,MAAM,0BAA0B,GACrC,MAAM,aAAa,EACnB,YAAY,QAAQ,CAAC,UAAU,KAC9B,OAiBF,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,MAAM,aAAa,EACnB,SAAS,cAAc,EACvB,mBAAmB,OAAO,EAC1B,YAAY,QAAQ,CAAC,UAAU,KAC9B,OAqBF,CAAC"}
|
package/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-metadata-literals.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-metadata-literals.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-metadata-literals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,eAAO,MAAM,IAAI,GAAI,MAAM,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,GAAG,
|
|
1
|
+
{"version":3,"file":"angular-metadata-literals.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/angular/angular-metadata-literals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,eAAO,MAAM,IAAI,GAAI,MAAM,QAAQ,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,KAAG,MAAM,GAAG,IAmBtE,CAAC;AAEF,eAAO,MAAM,GAAG,GAAI,UAAU,QAAQ,CAAC,oBAAoB,KAAG,MAAM,GAAG,IAUtE,CAAC;AAEF,eAAO,MAAM,aAAa,GACxB,UAAU,QAAQ,CAAC,gBAAgB,EACnC,MAAM,MAAM,KACX,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,SAU/B,CAAC"}
|
|
@@ -19,7 +19,7 @@ export type AngularClassMetadata = {
|
|
|
19
19
|
readonly component: boolean;
|
|
20
20
|
readonly metadata: TSESTree.ObjectExpression;
|
|
21
21
|
};
|
|
22
|
-
|
|
22
|
+
type IdentifierKey = {
|
|
23
23
|
readonly key: TSESTree.Identifier;
|
|
24
24
|
};
|
|
25
25
|
export type InstanceField = TSESTree.PropertyDefinition & IdentifierKey;
|
|
@@ -51,4 +51,5 @@ export type ReportUnusedMembersOptions = {
|
|
|
51
51
|
readonly projectIndexed: () => boolean;
|
|
52
52
|
readonly projectMemberUsed: ProjectMemberUsed | undefined;
|
|
53
53
|
};
|
|
54
|
+
export {};
|
|
54
55
|
//# sourceMappingURL=no-unused-angular-instance-fields.type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-unused-angular-instance-fields.type.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/common/no-unused-angular-instance-fields.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAC1B,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,IAAI,CAAC;AAE1C,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,cAAc,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAChC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,CAAC,CAChD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,IAAI,CAC9B,WAAW,EACX,UAAU,GAAG,QAAQ,GAAG,YAAY,CACrC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,KAAK,OAAO,CAAC;AAEzE,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,IAAI,EAAE,gBAAgB,CAAC;IAChC,QAAQ,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC;AAE7C,MAAM,MAAM,oBAAoB,GAAG;IACjC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,gBAAgB,CAAC;CAC9C,CAAC;AAEF,
|
|
1
|
+
{"version":3,"file":"no-unused-angular-instance-fields.type.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/common/no-unused-angular-instance-fields.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEnE,MAAM,MAAM,gBAAgB,GAC1B,QAAQ,CAAC,gBAAgB,GAAG,QAAQ,CAAC,eAAe,CAAC;AAEvD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,IAAI,CAAC;AAE1C,MAAM,MAAM,cAAc,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,iBAAiB,CAAC,EAAE,OAAO,CAAC;IACrC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG,aAAa,GAAG,cAAc,CAAC;AAExD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAChC,QAAQ,CAAC,WAAW,CAAC,UAAU,EAAE,CAAC,WAAW,CAAC,CAAC,CAChD,CAAC;AAEF,MAA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jC,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,gBAAgB,CAAC;IAC7C,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,eAAe,EAAE,OAAO,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,QAAQ,CAAC,iBAAiB,EAAE,OAAO,CAAC;IACpC,QAAQ,CAAC,OAAO,EAAE,UAAU,EAAE,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,aAAa,CAAC;IAChC,QAAQ,CAAC,cAAc,EAAE,cAAc,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,cAAc,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,OAAO,CAAC;IACvC,QAAQ,CAAC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;CAC3D,CAAC"}
|
package/lib/rules/no-unused-angular-instance-fields/rule/no-unused-angular-instance-fields.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"no-unused-angular-instance-fields.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/no-unused-angular-instance-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAUvD,OAAO,KAAK,EAGV,UAAU,EAIV,WAAW,EACZ,MAAM,oDAAoD,CAAC;AAS5D,KAAK,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"no-unused-angular-instance-fields.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/no-unused-angular-instance-fields.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAUvD,OAAO,KAAK,EAGV,UAAU,EAIV,WAAW,EACZ,MAAM,oDAAoD,CAAC;AAS5D,KAAK,OAAO,GAAG,CAAC,WAAW,CAAC,CAAC;;;;AAyF7B,wBA8CG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript-class-read-visitor.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-class-read-visitor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQzD,OAAO,KAAK,EAEV,UAAU,EACV,cAAc,EACf,MAAM,qDAAqD,CAAC;AA2E7D,eAAO,MAAM,gBAAgB,GAC3B,SAAS,UAAU,EAAE,EACrB,OAAO,UAAU,EAAE,EACnB,gBAAgB,cAAc,KAC7B,QAAQ,CAAC,
|
|
1
|
+
{"version":3,"file":"typescript-class-read-visitor.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-angular-instance-fields/rule/typescript/typescript-class-read-visitor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAQzD,OAAO,KAAK,EAEV,UAAU,EACV,cAAc,EACf,MAAM,qDAAqD,CAAC;AA2E7D,eAAO,MAAM,gBAAgB,GAC3B,SAAS,UAAU,EAAE,EACrB,OAAO,UAAU,EAAE,EACnB,gBAAgB,cAAc,KAC7B,QAAQ,CAAC,YAgCX,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ClassMatcher } from '../../common/class-usage.type.ts';
|
|
2
|
+
export type RuleOptions = {
|
|
3
|
+
readonly ignoreClassPatterns: string[];
|
|
4
|
+
};
|
|
5
|
+
type FileTemplate = {
|
|
6
|
+
readonly kind: 'file';
|
|
7
|
+
readonly path: string;
|
|
8
|
+
};
|
|
9
|
+
type InlineTemplate = {
|
|
10
|
+
readonly kind: 'inline';
|
|
11
|
+
readonly source: string;
|
|
12
|
+
readonly path: string;
|
|
13
|
+
};
|
|
14
|
+
type UnknownTemplate = {
|
|
15
|
+
readonly kind: 'unknown';
|
|
16
|
+
};
|
|
17
|
+
export type TemplateSource = FileTemplate | InlineTemplate | UnknownTemplate;
|
|
18
|
+
export type TemplateUsage = {
|
|
19
|
+
readonly has: ClassMatcher;
|
|
20
|
+
readonly isDynamic: boolean;
|
|
21
|
+
readonly size: number;
|
|
22
|
+
};
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=no-unused-classes.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-unused-classes.type.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-classes/common/no-unused-classes.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAErE,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,mBAAmB,EAAE,MAAM,EAAE,CAAC;CACxC,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IACxB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,eAAe,GAAG;IACrB,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,cAAc,GAAG,eAAe,CAAC;AAE7E,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,GAAG,EAAE,YAAY,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Plugin } from 'stylelint';
|
|
2
|
+
export declare const ruleName = "lint-suite/no-unused-classes";
|
|
3
|
+
export declare const messages: {
|
|
4
|
+
rejected: (name: string) => string;
|
|
5
|
+
};
|
|
6
|
+
declare const plugin: Plugin;
|
|
7
|
+
export default plugin;
|
|
8
|
+
//# sourceMappingURL=no-unused-classes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-unused-classes.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-unused-classes/no-unused-classes.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAoC,MAAM,WAAW,CAAC;AAwB1E,eAAO,MAAM,QAAQ,iCAAiC,CAAC;AAOvD,eAAO,MAAM,QAAQ;qBALG,MAAM,KAAG,MAAM;CAK2B,CAAC;AAuInE,QAAA,MAAM,MAAM,EAAE,MAAgD,CAAC;AAE/D,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Relative stylesheet hrefs a template links, cached by the template's mtime. */
|
|
2
|
+
export declare const templateLinks: (templatePath: string) => string[];
|
|
3
|
+
/**
|
|
4
|
+
* Every template under the working directory that links the stylesheet.
|
|
5
|
+
* The walk is rebuilt at most every 100x its own duration, so a link added
|
|
6
|
+
* elsewhere in the project shows up on a later lint.
|
|
7
|
+
*/
|
|
8
|
+
export declare const linkedTemplates: (stylesheetPath: string) => string[];
|
|
9
|
+
//# sourceMappingURL=linked-templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linked-templates.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-classes/styles/linked-templates.ts"],"names":[],"mappings":"AAmBA,kFAAkF;AAElF,eAAO,MAAM,aAAa,GAAI,cAAc,MAAM,KAAG,MAAM,EAE1D,CAAC;AAsFF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,gBAAgB,MAAM,KAAG,MAAM,EAE9D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stylesheet-components.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-classes/styles/stylesheet-components.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAmI1E,eAAO,MAAM,mBAAmB,GAC9B,gBAAgB,MAAM,KACrB,cAAc,EAehB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-usage.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-classes/template/template-usage.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EACV,cAAc,EACd,aAAa,EACd,MAAM,qCAAqC,CAAC;AAwH7C,eAAO,MAAM,aAAa,GAAI,SAAS,cAAc,EAAE,KAAG,aAuBzD,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
+
import type { MessageIds, Options } from './no-unused-exports.type.ts';
|
|
3
|
+
export declare const entryPointDefaults: string[];
|
|
4
|
+
export declare const STAR_NAME = "*";
|
|
5
|
+
export declare const meta: ESLintUtils.NamedCreateRuleMeta<MessageIds, unknown, Options>;
|
|
6
|
+
export declare const defaultOptions: Options;
|
|
7
|
+
//# sourceMappingURL=no-unused-exports.const.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-unused-exports.const.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-exports/common/no-unused-exports.const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EAGZ,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EAER,MAAM,6BAA6B,CAAC;AAGrC,eAAO,MAAM,kBAAkB,EAAE,MAAM,EAetC,CAAC;AAEF,eAAO,MAAM,SAAS,MAAM,CAAC;AAgC7B,eAAO,MAAM,IAAI,EAAE,WAAW,CAAC,mBAAmB,CAChD,UAAU,EACV,OAAO,EACP,OAAO,CAMR,CAAC;AAIF,eAAO,MAAM,cAAc,EAAE,OAAwB,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
+
import type { Expression, SourceFile } from 'typescript';
|
|
3
|
+
export type MessageIds = 'unusedExport' | 'unusedModule';
|
|
4
|
+
export type RuleOptions = {
|
|
5
|
+
readonly entryPoints: string[];
|
|
6
|
+
};
|
|
7
|
+
export type Options = [RuleOptions];
|
|
8
|
+
export type RuleContext = TSESLint.RuleContext<MessageIds, Options>;
|
|
9
|
+
export type ImportEdge = {
|
|
10
|
+
readonly target: string;
|
|
11
|
+
readonly names: string[];
|
|
12
|
+
};
|
|
13
|
+
export type ReExportEdge = {
|
|
14
|
+
readonly target: string;
|
|
15
|
+
readonly source: string;
|
|
16
|
+
readonly exported: string;
|
|
17
|
+
};
|
|
18
|
+
export type FileEdges = {
|
|
19
|
+
readonly fileName: string;
|
|
20
|
+
readonly exports: string[];
|
|
21
|
+
readonly declared: Set<string>;
|
|
22
|
+
readonly imports: ImportEdge[];
|
|
23
|
+
readonly reExports: ReExportEdge[];
|
|
24
|
+
readonly starTargets: string[];
|
|
25
|
+
readonly skipped: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type EdgeAccumulator = {
|
|
28
|
+
readonly exports: string[];
|
|
29
|
+
readonly declared: Set<string>;
|
|
30
|
+
readonly imports: ImportEdge[];
|
|
31
|
+
readonly reExports: ReExportEdge[];
|
|
32
|
+
readonly starTargets: string[];
|
|
33
|
+
};
|
|
34
|
+
export type ModuleResolver = (specifier: Expression | undefined) => string | undefined;
|
|
35
|
+
export type ExportUsage = Map<string, Map<string, number>>;
|
|
36
|
+
export type PublicExports = Map<string, Set<string>>;
|
|
37
|
+
export type ReExportIndex = Map<string, Map<string, ReExportEdge>>;
|
|
38
|
+
export type UsageKey = {
|
|
39
|
+
readonly fileName: string;
|
|
40
|
+
readonly name: string;
|
|
41
|
+
};
|
|
42
|
+
export type UsageContext = {
|
|
43
|
+
readonly byFile: Map<string, FileEdges>;
|
|
44
|
+
readonly reExportsByName: ReExportIndex;
|
|
45
|
+
};
|
|
46
|
+
export type UsageWalk = {
|
|
47
|
+
readonly visited: Set<string>;
|
|
48
|
+
readonly depth: number;
|
|
49
|
+
readonly keys: UsageKey[];
|
|
50
|
+
};
|
|
51
|
+
export type FileContribution = {
|
|
52
|
+
readonly usage: UsageKey[];
|
|
53
|
+
readonly imported: string[];
|
|
54
|
+
readonly starTouched: string[];
|
|
55
|
+
};
|
|
56
|
+
export type FileChange = {
|
|
57
|
+
readonly fileName: string;
|
|
58
|
+
readonly before: FileEdges | undefined;
|
|
59
|
+
readonly after: FileEdges | undefined;
|
|
60
|
+
};
|
|
61
|
+
export type Aggregate = {
|
|
62
|
+
readonly byFile: Map<string, FileEdges>;
|
|
63
|
+
readonly usage: ExportUsage;
|
|
64
|
+
readonly imported: Map<string, number>;
|
|
65
|
+
readonly reExportsByName: ReExportIndex;
|
|
66
|
+
readonly contributions: Map<string, FileContribution>;
|
|
67
|
+
readonly starTouched: Map<string, number>;
|
|
68
|
+
};
|
|
69
|
+
export type IsExternalFile = (sourceFile: SourceFile) => boolean;
|
|
70
|
+
//# sourceMappingURL=no-unused-exports.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-unused-exports.type.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-exports/common/no-unused-exports.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BA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AC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;IACvC,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACxC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACvC,QAAQ,CAAC,eAAe,EAAE,aAAa,CAAC;IACxC,QAAQ,CAAC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACtD,QAAQ,CAAC,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC3C,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,UAAU,EAAE,UAAU,KAAK,OAAO,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Program } from 'typescript';
|
|
2
|
+
import type { Aggregate, PublicExports } from './common/no-unused-exports.type.ts';
|
|
3
|
+
import type { GlobMatcher } from '../common/glob-matcher.type.ts';
|
|
4
|
+
export declare const exportIndex: (program: Program) => Aggregate;
|
|
5
|
+
export declare const publicExportIndex: (aggregate: Aggregate, isEntry: GlobMatcher) => PublicExports;
|
|
6
|
+
//# sourceMappingURL=export-index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-unused-exports/export-index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAA2B,MAAM,YAAY,CAAC;AAEnE,OAAO,KAAK,EACV,SAAS,EAGT,aAAa,EAEd,MAAM,oCAAoC,CAAC;AAQ5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AA2ElE,eAAO,MAAM,WAAW,GAAI,SAAS,OAAO,KAAG,SAa9C,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAC5B,WAAW,SAAS,EACpB,SAAS,WAAW,KACnB,aAoBF,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
+
import type { MessageIds, Options } from './common/no-unused-exports.type.ts';
|
|
3
|
+
declare const _default: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener> & {
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=no-unused-exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-unused-exports.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-unused-exports/no-unused-exports.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AASvD,OAAO,KAAK,EACV,UAAU,EACV,OAAO,EAER,MAAM,oCAAoC,CAAC;;;;AAmC5C,wBAuBG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ParserServicesWithTypeInformation, TSESTree } from '@typescript-eslint/utils';
|
|
2
|
+
import type { RuleContext } from './common/no-unused-exports.type.ts';
|
|
3
|
+
import type { GlobMatcher } from '../common/glob-matcher.type.ts';
|
|
4
|
+
type ReportOptions = {
|
|
5
|
+
readonly context: RuleContext;
|
|
6
|
+
readonly isEntry: GlobMatcher;
|
|
7
|
+
readonly node: TSESTree.Program;
|
|
8
|
+
readonly services: ParserServicesWithTypeInformation;
|
|
9
|
+
};
|
|
10
|
+
export declare const reportUnusedExports: ({ context, isEntry, node, services }: ReportOptions) => void;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=report-unused-exports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report-unused-exports.d.ts","sourceRoot":"","sources":["../../../../../../../packages/lint-suite/src/lib/rules/no-unused-exports/report-unused-exports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,iCAAiC,EAEjC,QAAQ,EACT,MAAM,0BAA0B,CAAC;AAElC,OAAO,KAAK,EAGV,WAAW,EACZ,MAAM,oCAAoC,CAAC;AAG5C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAElE,KAAK,aAAa,GAAG;IACnB,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,iCAAiC,CAAC;CACtD,CAAC;AA+CF,eAAO,MAAM,mBAAmB,GAAI,sCAKjC,aAAa,KAAG,IAkClB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Aggregate, FileChange, FileEdges } from '../common/no-unused-exports.type.ts';
|
|
2
|
+
export declare const buildAggregate: (byFile: Map<string, FileEdges>) => Aggregate;
|
|
3
|
+
export declare const updateAggregate: (aggregate: Aggregate, changes: FileChange[]) => void;
|
|
4
|
+
//# sourceMappingURL=aggregate-update.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aggregate-update.util.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-exports/utils/aggregate-update.util.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,SAAS,EAET,UAAU,EAEV,SAAS,EAGV,MAAM,qCAAqC,CAAC;AA0G7C,eAAO,MAAM,cAAc,GAAI,QAAQ,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,KAAG,SAe/D,CAAC;AAuBF,eAAO,MAAM,eAAe,GAC1B,WAAW,SAAS,EACpB,SAAS,UAAU,EAAE,KACpB,IASF,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ExportDeclaration } from 'typescript';
|
|
2
|
+
import type { EdgeAccumulator, ModuleResolver } from '../common/no-unused-exports.type.ts';
|
|
3
|
+
export declare const addExportFrom: (statement: ExportDeclaration, edges: EdgeAccumulator, resolve: ModuleResolver) => void;
|
|
4
|
+
export declare const addLocalExport: (statement: ExportDeclaration, edges: EdgeAccumulator) => void;
|
|
5
|
+
//# sourceMappingURL=export-edges.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-edges.util.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-exports/utils/export-edges.util.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAmB,MAAM,YAAY,CAAC;AAErE,OAAO,KAAK,EACV,eAAe,EAEf,cAAc,EAEf,MAAM,qCAAqC,CAAC;AAmB7C,eAAO,MAAM,aAAa,GACxB,WAAW,iBAAiB,EAC5B,OAAO,eAAe,EACtB,SAAS,cAAc,KACtB,IA4BF,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,WAAW,iBAAiB,EAC5B,OAAO,eAAe,KACrB,IAaF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-nodes.util.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-exports/utils/export-nodes.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,KAAK,WAAW,GAAG,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;AAkE9C,eAAO,MAAM,WAAW,GAAI,SAAS,QAAQ,CAAC,OAAO,KAAG,WAevD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ReExportIndex, UsageContext, UsageKey } from '../common/no-unused-exports.type.ts';
|
|
2
|
+
export declare const reExportIndex: (byFile: UsageContext["byFile"]) => ReExportIndex;
|
|
3
|
+
export declare const markUsage: (context: UsageContext, target: string, name: string) => UsageKey[];
|
|
4
|
+
//# sourceMappingURL=export-usage.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"export-usage.util.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-exports/utils/export-usage.util.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,aAAa,EACb,YAAY,EACZ,QAAQ,EAET,MAAM,qCAAqC,CAAC;AAI7C,eAAO,MAAM,aAAa,GACxB,QAAQ,YAAY,CAAC,QAAQ,CAAC,KAC7B,aAcF,CAAC;AAuFF,eAAO,MAAM,SAAS,GACpB,SAAS,YAAY,EACrB,QAAQ,MAAM,EACd,MAAM,MAAM,KACX,QAAQ,EAaV,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exported-names.util.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/lint-suite/src/lib/rules/no-unused-exports/utils/exported-names.util.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,SAAS,EAAqB,MAAM,YAAY,CAAC;AAqC/D,eAAO,MAAM,aAAa,GAAI,WAAW,SAAS,KAAG,MAAM,EAgB1D,CAAC"}
|