@angular-eslint/eslint-plugin 17.3.1-alpha.1 → 17.3.1-alpha.11
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 +2 -2
- package/dist/index.d.ts +132 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/rules/component-class-suffix.d.ts +10 -0
- package/dist/rules/component-class-suffix.d.ts.map +1 -0
- package/dist/rules/component-max-inline-declarations.d.ts +12 -0
- package/dist/rules/component-max-inline-declarations.d.ts.map +1 -0
- package/dist/rules/component-selector.d.ts +6 -0
- package/dist/rules/component-selector.d.ts.map +1 -0
- package/dist/rules/consistent-component-styles.d.ts +7 -0
- package/dist/rules/consistent-component-styles.d.ts.map +1 -0
- package/dist/rules/contextual-decorator.d.ts +6 -0
- package/dist/rules/contextual-decorator.d.ts.map +1 -0
- package/dist/rules/contextual-decorator.js +2 -3
- package/dist/rules/contextual-lifecycle.d.ts +5 -0
- package/dist/rules/contextual-lifecycle.d.ts.map +1 -0
- package/dist/rules/contextual-lifecycle.js +1 -1
- package/dist/rules/directive-class-suffix.d.ts +8 -0
- package/dist/rules/directive-class-suffix.d.ts.map +1 -0
- package/dist/rules/directive-class-suffix.js +1 -2
- package/dist/rules/directive-selector.d.ts +6 -0
- package/dist/rules/directive-selector.d.ts.map +1 -0
- package/dist/rules/no-async-lifecycle-method.d.ts +5 -0
- package/dist/rules/no-async-lifecycle-method.d.ts.map +1 -0
- package/dist/rules/no-attribute-decorator.d.ts +5 -0
- package/dist/rules/no-attribute-decorator.d.ts.map +1 -0
- package/dist/rules/no-conflicting-lifecycle.d.ts +5 -0
- package/dist/rules/no-conflicting-lifecycle.d.ts.map +1 -0
- package/dist/rules/no-empty-lifecycle-method.d.ts +5 -0
- package/dist/rules/no-empty-lifecycle-method.d.ts.map +1 -0
- package/dist/rules/no-empty-lifecycle-method.js +1 -2
- package/dist/rules/no-forward-ref.d.ts +6 -0
- package/dist/rules/no-forward-ref.d.ts.map +1 -0
- package/dist/rules/no-host-metadata-property.d.ts +8 -0
- package/dist/rules/no-host-metadata-property.d.ts.map +1 -0
- package/dist/rules/no-input-prefix.d.ts +8 -0
- package/dist/rules/no-input-prefix.d.ts.map +1 -0
- package/dist/rules/no-input-rename.d.ts +8 -0
- package/dist/rules/no-input-rename.d.ts.map +1 -0
- package/dist/rules/no-input-rename.js +1 -2
- package/dist/rules/no-inputs-metadata-property.d.ts +5 -0
- package/dist/rules/no-inputs-metadata-property.d.ts.map +1 -0
- package/dist/rules/no-inputs-metadata-property.js +1 -2
- package/dist/rules/no-lifecycle-call.d.ts +5 -0
- package/dist/rules/no-lifecycle-call.d.ts.map +1 -0
- package/dist/rules/no-output-native.d.ts +5 -0
- package/dist/rules/no-output-native.d.ts.map +1 -0
- package/dist/rules/no-output-on-prefix.d.ts +5 -0
- package/dist/rules/no-output-on-prefix.d.ts.map +1 -0
- package/dist/rules/no-output-rename.d.ts +5 -0
- package/dist/rules/no-output-rename.d.ts.map +1 -0
- package/dist/rules/no-output-rename.js +1 -2
- package/dist/rules/no-outputs-metadata-property.d.ts +5 -0
- package/dist/rules/no-outputs-metadata-property.d.ts.map +1 -0
- package/dist/rules/no-outputs-metadata-property.js +1 -2
- package/dist/rules/no-pipe-impure.d.ts +5 -0
- package/dist/rules/no-pipe-impure.d.ts.map +1 -0
- package/dist/rules/no-queries-metadata-property.d.ts +5 -0
- package/dist/rules/no-queries-metadata-property.d.ts.map +1 -0
- package/dist/rules/pipe-prefix.d.ts +10 -0
- package/dist/rules/pipe-prefix.d.ts.map +1 -0
- package/dist/rules/prefer-on-push-component-change-detection.d.ts +5 -0
- package/dist/rules/prefer-on-push-component-change-detection.d.ts.map +1 -0
- package/dist/rules/prefer-output-readonly.d.ts +5 -0
- package/dist/rules/prefer-output-readonly.d.ts.map +1 -0
- package/dist/rules/prefer-standalone-component.d.ts +5 -0
- package/dist/rules/prefer-standalone-component.d.ts.map +1 -0
- package/dist/rules/prefer-standalone.d.ts +5 -0
- package/dist/rules/prefer-standalone.d.ts.map +1 -0
- package/dist/rules/relative-url-prefix.d.ts +5 -0
- package/dist/rules/relative-url-prefix.d.ts.map +1 -0
- package/dist/rules/require-localize-metadata.d.ts +11 -0
- package/dist/rules/require-localize-metadata.d.ts.map +1 -0
- package/dist/rules/sort-lifecycle-methods.d.ts +5 -0
- package/dist/rules/sort-lifecycle-methods.d.ts.map +1 -0
- package/dist/rules/sort-lifecycle-methods.js +1 -4
- package/dist/rules/sort-ngmodule-metadata-arrays.d.ts +10 -0
- package/dist/rules/sort-ngmodule-metadata-arrays.d.ts.map +1 -0
- package/dist/rules/use-component-selector.d.ts +5 -0
- package/dist/rules/use-component-selector.d.ts.map +1 -0
- package/dist/rules/use-component-view-encapsulation.d.ts +5 -0
- package/dist/rules/use-component-view-encapsulation.d.ts.map +1 -0
- package/dist/rules/use-component-view-encapsulation.js +1 -2
- package/dist/rules/use-injectable-provided-in.d.ts +8 -0
- package/dist/rules/use-injectable-provided-in.d.ts.map +1 -0
- package/dist/rules/use-injectable-provided-in.js +1 -2
- package/dist/rules/use-lifecycle-interface.d.ts +5 -0
- package/dist/rules/use-lifecycle-interface.d.ts.map +1 -0
- package/dist/rules/use-pipe-transform-interface.d.ts +5 -0
- package/dist/rules/use-pipe-transform-interface.d.ts.map +1 -0
- package/dist/rules/use-pipe-transform-interface.js +1 -2
- package/dist/utils/create-eslint-rule.d.ts +3 -0
- package/dist/utils/create-eslint-rule.d.ts.map +1 -0
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
| [`component-class-suffix`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/component-class-suffix.md) | Classes decorated with @Component must have suffix "Component" (or custom) in their name. See more at https://angular.io/styleguide#style-02-03 | :white_check_mark: | | |
|
|
44
44
|
| [`component-max-inline-declarations`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/component-max-inline-declarations.md) | Enforces a maximum number of lines in inline template, styles and animations. See more at https://angular.io/guide/styleguide#style-05-04 | | | |
|
|
45
45
|
| [`component-selector`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/component-selector.md) | Component selectors should follow given naming rules. See more at https://angular.io/guide/styleguide#style-02-07, https://angular.io/guide/styleguide#style-05-02 and https://angular.io/guide/styleguide#style-05-03. | | | |
|
|
46
|
-
| [`consistent-component-styles`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-component-styles.md) | Ensures
|
|
46
|
+
| [`consistent-component-styles`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/consistent-component-styles.md) | Ensures consistent usage of `styles`/`styleUrls`/`styleUrl` within Component metadata | | :wrench: | |
|
|
47
47
|
| [`contextual-decorator`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/contextual-decorator.md) | Ensures that classes use contextual decorators in its body | | | |
|
|
48
48
|
| [`directive-class-suffix`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/directive-class-suffix.md) | Classes decorated with @Directive must have suffix "Directive" (or custom) in their name. See more at https://angular.io/styleguide#style-02-03 | :white_check_mark: | | |
|
|
49
49
|
| [`directive-selector`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/directive-selector.md) | Directive selectors should follow given naming rules. See more at https://angular.io/guide/styleguide#style-02-06 and https://angular.io/guide/styleguide#style-02-08. | | | |
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
<!-- prettier-ignore-start -->
|
|
89
89
|
| Rule | Replaced by |
|
|
90
90
|
| --- | --- |
|
|
91
|
-
| [`prefer-standalone-component`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone-component.md) | [`prefer-standalone`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone
|
|
91
|
+
| [`prefer-standalone-component`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone-component.md) | [`prefer-standalone`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-standalone.md) |
|
|
92
92
|
<!-- prettier-ignore-end -->
|
|
93
93
|
|
|
94
94
|
<!-- end deprecated rule list -->
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
configs: {
|
|
3
|
+
all: {
|
|
4
|
+
parser: string;
|
|
5
|
+
plugins: string[];
|
|
6
|
+
rules: {
|
|
7
|
+
"@angular-eslint/component-class-suffix": string;
|
|
8
|
+
"@angular-eslint/component-max-inline-declarations": string;
|
|
9
|
+
"@angular-eslint/component-selector": string;
|
|
10
|
+
"@angular-eslint/consistent-component-styles": string;
|
|
11
|
+
"@angular-eslint/contextual-decorator": string;
|
|
12
|
+
"@angular-eslint/contextual-lifecycle": string;
|
|
13
|
+
"@angular-eslint/directive-class-suffix": string;
|
|
14
|
+
"@angular-eslint/directive-selector": string;
|
|
15
|
+
"@angular-eslint/no-async-lifecycle-method": string;
|
|
16
|
+
"@angular-eslint/no-attribute-decorator": string;
|
|
17
|
+
"@angular-eslint/no-conflicting-lifecycle": string;
|
|
18
|
+
"@angular-eslint/no-empty-lifecycle-method": string;
|
|
19
|
+
"@angular-eslint/no-forward-ref": string;
|
|
20
|
+
"@angular-eslint/no-host-metadata-property": string;
|
|
21
|
+
"@angular-eslint/no-input-prefix": string;
|
|
22
|
+
"@angular-eslint/no-input-rename": string;
|
|
23
|
+
"@angular-eslint/no-inputs-metadata-property": string;
|
|
24
|
+
"@angular-eslint/no-lifecycle-call": string;
|
|
25
|
+
"@angular-eslint/no-output-native": string;
|
|
26
|
+
"@angular-eslint/no-output-on-prefix": string;
|
|
27
|
+
"@angular-eslint/no-output-rename": string;
|
|
28
|
+
"@angular-eslint/no-outputs-metadata-property": string;
|
|
29
|
+
"@angular-eslint/no-pipe-impure": string;
|
|
30
|
+
"@angular-eslint/no-queries-metadata-property": string;
|
|
31
|
+
"@angular-eslint/pipe-prefix": string;
|
|
32
|
+
"@angular-eslint/prefer-on-push-component-change-detection": string;
|
|
33
|
+
"@angular-eslint/prefer-output-readonly": string;
|
|
34
|
+
"@angular-eslint/prefer-standalone": string;
|
|
35
|
+
"@angular-eslint/prefer-standalone-component": string;
|
|
36
|
+
"@angular-eslint/relative-url-prefix": string;
|
|
37
|
+
"@angular-eslint/require-localize-metadata": string;
|
|
38
|
+
"@angular-eslint/sort-lifecycle-methods": string;
|
|
39
|
+
"@angular-eslint/sort-ngmodule-metadata-arrays": string;
|
|
40
|
+
"@angular-eslint/use-component-selector": string;
|
|
41
|
+
"@angular-eslint/use-component-view-encapsulation": string;
|
|
42
|
+
"@angular-eslint/use-injectable-provided-in": string;
|
|
43
|
+
"@angular-eslint/use-lifecycle-interface": string;
|
|
44
|
+
"@angular-eslint/use-pipe-transform-interface": string;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
recommended: {
|
|
48
|
+
parser: string;
|
|
49
|
+
plugins: string[];
|
|
50
|
+
rules: {
|
|
51
|
+
"@angular-eslint/component-class-suffix": string;
|
|
52
|
+
"@angular-eslint/contextual-lifecycle": string;
|
|
53
|
+
"@angular-eslint/directive-class-suffix": string;
|
|
54
|
+
"@angular-eslint/no-empty-lifecycle-method": string;
|
|
55
|
+
"@angular-eslint/no-host-metadata-property": string;
|
|
56
|
+
"@angular-eslint/no-input-rename": string;
|
|
57
|
+
"@angular-eslint/no-inputs-metadata-property": string;
|
|
58
|
+
"@angular-eslint/no-output-native": string;
|
|
59
|
+
"@angular-eslint/no-output-on-prefix": string;
|
|
60
|
+
"@angular-eslint/no-output-rename": string;
|
|
61
|
+
"@angular-eslint/no-outputs-metadata-property": string;
|
|
62
|
+
"@angular-eslint/use-pipe-transform-interface": string;
|
|
63
|
+
"@angular-eslint/use-lifecycle-interface": string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
rules: {
|
|
68
|
+
"component-class-suffix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"componentClassSuffix", [{
|
|
69
|
+
suffixes: string[];
|
|
70
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
71
|
+
"component-max-inline-declarations": import("@typescript-eslint/utils/ts-eslint").RuleModule<"componentMaxInlineDeclarations", [{
|
|
72
|
+
readonly template?: number | undefined;
|
|
73
|
+
readonly styles?: number | undefined;
|
|
74
|
+
readonly animations?: number | undefined;
|
|
75
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
76
|
+
"component-selector": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/component-selector").MessageIds, import("@angular-eslint/utils/dist/eslint-plugin/selector-utils").Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
77
|
+
"consistent-component-styles": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/consistent-component-styles").MessageIds, [mode: "string" | "array"], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
78
|
+
"contextual-decorator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"contextualDecorator", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
79
|
+
"contextual-lifecycle": import("@typescript-eslint/utils/ts-eslint").RuleModule<"contextualLifecycle", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
80
|
+
"directive-class-suffix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"directiveClassSuffix", [{
|
|
81
|
+
readonly suffixes: readonly string[];
|
|
82
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
83
|
+
"directive-selector": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/directive-selector").MessageIds, import("@angular-eslint/utils/dist/eslint-plugin/selector-utils").Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
84
|
+
"no-async-lifecycle-method": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noAsyncLifecycleMethod", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
85
|
+
"no-attribute-decorator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noAttributeDecorator", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
86
|
+
"no-conflicting-lifecycle": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-conflicting-lifecycle").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
87
|
+
"no-empty-lifecycle-method": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-empty-lifecycle-method").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
88
|
+
"no-forward-ref": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noForwardRef", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
89
|
+
"no-host-metadata-property": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noHostMetadataProperty", [{
|
|
90
|
+
readonly allowStatic?: boolean | undefined;
|
|
91
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
92
|
+
"no-input-prefix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInputPrefix", [{
|
|
93
|
+
readonly prefixes: readonly string[];
|
|
94
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
95
|
+
"no-input-rename": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-input-rename").MessageIds, [{
|
|
96
|
+
readonly allowedNames?: readonly string[] | undefined;
|
|
97
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
98
|
+
"no-inputs-metadata-property": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInputsMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
99
|
+
"no-lifecycle-call": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noLifecycleCall", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
100
|
+
"no-output-native": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputNative", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
101
|
+
"no-output-on-prefix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputOnPrefix", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
102
|
+
"no-output-rename": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-output-rename").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
103
|
+
"no-outputs-metadata-property": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputsMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
104
|
+
"no-pipe-impure": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/no-pipe-impure").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
105
|
+
"no-queries-metadata-property": import("@typescript-eslint/utils/ts-eslint").RuleModule<"noQueriesMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
106
|
+
"pipe-prefix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"pipePrefix", [{
|
|
107
|
+
prefixes: string[];
|
|
108
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
109
|
+
"prefer-on-push-component-change-detection": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/prefer-on-push-component-change-detection").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
110
|
+
"prefer-standalone": import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferStandalone", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
111
|
+
"prefer-standalone-component": import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferStandaloneComponent", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
112
|
+
"prefer-output-readonly": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/prefer-output-readonly").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
113
|
+
"relative-url-prefix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"relativeUrlPrefix", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
114
|
+
"require-localize-metadata": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/require-localize-metadata").MessageIds, [{
|
|
115
|
+
readonly requireDescription?: boolean | undefined;
|
|
116
|
+
readonly requireMeaning?: boolean | undefined;
|
|
117
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
118
|
+
"sort-lifecycle-methods": import("@typescript-eslint/utils/ts-eslint").RuleModule<"lifecycleMethodsNotSorted", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
119
|
+
"sort-ngmodule-metadata-arrays": import("@typescript-eslint/utils/ts-eslint").RuleModule<"sortNgmoduleMetadataArrays", [{
|
|
120
|
+
readonly locale: string;
|
|
121
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
122
|
+
"use-component-selector": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useComponentSelector", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
123
|
+
"use-component-view-encapsulation": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/use-component-view-encapsulation").MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
124
|
+
"use-injectable-provided-in": import("@typescript-eslint/utils/ts-eslint").RuleModule<import("./rules/use-injectable-provided-in").MessageIds, [{
|
|
125
|
+
readonly ignoreClassNamePattern?: string | undefined;
|
|
126
|
+
}], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
127
|
+
"use-lifecycle-interface": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useLifecycleInterface", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
128
|
+
"use-pipe-transform-interface": import("@typescript-eslint/utils/ts-eslint").RuleModule<"usePipeTransformInterface", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
export = _default;
|
|
132
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsHA,kBA8CE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Options = [
|
|
2
|
+
{
|
|
3
|
+
suffixes: string[];
|
|
4
|
+
}
|
|
5
|
+
];
|
|
6
|
+
export type MessageIds = 'componentClassSuffix';
|
|
7
|
+
export declare const RULE_NAME = "component-class-suffix";
|
|
8
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"componentClassSuffix", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=component-class-suffix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-class-suffix.d.ts","sourceRoot":"","sources":["../../src/rules/component-class-suffix.ts"],"names":[],"mappings":"AAQA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAGlD,wBAkDG"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Options = [
|
|
2
|
+
{
|
|
3
|
+
readonly template?: number;
|
|
4
|
+
readonly styles?: number;
|
|
5
|
+
readonly animations?: number;
|
|
6
|
+
}
|
|
7
|
+
];
|
|
8
|
+
export type MessageIds = 'componentMaxInlineDeclarations';
|
|
9
|
+
export declare const RULE_NAME = "component-max-inline-declarations";
|
|
10
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"componentMaxInlineDeclarations", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
11
|
+
export default _default;
|
|
12
|
+
//# sourceMappingURL=component-max-inline-declarations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-max-inline-declarations.d.ts","sourceRoot":"","sources":["../../src/rules/component-max-inline-declarations.ts"],"names":[],"mappings":"AAIA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;QAC3B,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QACzB,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;KAC9B;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,gCAAgC,CAAC;AAC1D,eAAO,MAAM,SAAS,sCAAsC,CAAC;;AAmB7D,wBA4GG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SelectorUtils } from '@angular-eslint/utils';
|
|
2
|
+
export declare const RULE_NAME = "component-selector";
|
|
3
|
+
export type MessageIds = 'prefixFailure' | 'styleFailure' | 'styleAndPrefixFailure' | 'typeFailure' | 'shadowDomEncapsulatedStyleFailure';
|
|
4
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, SelectorUtils.Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=component-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"component-selector.d.ts","sourceRoot":"","sources":["../../src/rules/component-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EACd,MAAM,uBAAuB,CAAC;AAO/B,eAAO,MAAM,SAAS,uBAAuB,CAAC;AAC9C,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,cAAc,GACd,uBAAuB,GACvB,aAAa,GACb,mCAAmC,CAAC;;AASxC,wBA0HG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Mode = 'array' | 'string';
|
|
2
|
+
type Options = [mode: Mode];
|
|
3
|
+
export type MessageIds = 'useStylesArray' | 'useStylesString' | 'useStyleUrl' | 'useStyleUrls';
|
|
4
|
+
export declare const RULE_NAME = "consistent-component-styles";
|
|
5
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=consistent-component-styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consistent-component-styles.d.ts","sourceRoot":"","sources":["../../src/rules/consistent-component-styles.ts"],"names":[],"mappings":"AAIA,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC/B,KAAK,OAAO,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC5B,MAAM,MAAM,UAAU,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,aAAa,GACb,cAAc,CAAC;AACnB,eAAO,MAAM,SAAS,gCAAgC,CAAC;;AAEvD,wBAwHG"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { TSESLint } from '@typescript-eslint/utils';
|
|
2
|
+
export type MessageIds = 'contextualDecorator';
|
|
3
|
+
export declare const RULE_NAME = "contextual-decorator";
|
|
4
|
+
declare const _default: TSESLint.RuleModule<"contextualDecorator", [], TSESLint.RuleListener>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=contextual-decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextual-decorator.d.ts","sourceRoot":"","sources":["../../src/rules/contextual-decorator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,0BAA0B,CAAC;AAInE,MAAM,MAAM,UAAU,GAAG,qBAAqB,CAAC;AAC/C,eAAO,MAAM,SAAS,yBAAyB,CAAC;;AAEhD,wBA0BG"}
|
|
@@ -26,8 +26,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
function validateNode(context, node) {
|
|
29
|
-
|
|
30
|
-
if (!((_a = node.decorators) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
29
|
+
if (!node.decorators?.length) {
|
|
31
30
|
return;
|
|
32
31
|
}
|
|
33
32
|
const classDeclaration = utils_1.ASTUtils.getNearestNodeFrom(node, utils_1.ASTUtils.isClassDeclaration);
|
|
@@ -48,7 +47,7 @@ function validateDecorator(context, decorator, classDecoratorName) {
|
|
|
48
47
|
return;
|
|
49
48
|
}
|
|
50
49
|
const allowedDecorators = utils_1.ASTUtils.ANGULAR_CLASS_DECORATOR_MAPPER.get(classDecoratorName);
|
|
51
|
-
if (allowedDecorators
|
|
50
|
+
if (allowedDecorators?.has(decoratorName)) {
|
|
52
51
|
return;
|
|
53
52
|
}
|
|
54
53
|
context.report({
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'contextualLifecycle';
|
|
2
|
+
export declare const RULE_NAME = "contextual-lifecycle";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"contextualLifecycle", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=contextual-lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contextual-lifecycle.d.ts","sourceRoot":"","sources":["../../src/rules/contextual-lifecycle.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,qBAAqB,CAAC;AAC/C,eAAO,MAAM,SAAS,yBAAyB,CAAC;;AAEhD,wBA8DG"}
|
|
@@ -27,7 +27,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
27
27
|
const methodName = utils_1.ASTUtils.getMethodName(method);
|
|
28
28
|
if (!methodName ||
|
|
29
29
|
!utils_1.ASTUtils.isAngularLifecycleMethod(methodName) ||
|
|
30
|
-
|
|
30
|
+
allowedMethods?.has(methodName)) {
|
|
31
31
|
continue;
|
|
32
32
|
}
|
|
33
33
|
context.report({
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Options = [{
|
|
2
|
+
readonly suffixes: readonly string[];
|
|
3
|
+
}];
|
|
4
|
+
export type MessageIds = 'directiveClassSuffix';
|
|
5
|
+
export declare const RULE_NAME = "directive-class-suffix";
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"directiveClassSuffix", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=directive-class-suffix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directive-class-suffix.d.ts","sourceRoot":"","sources":["../../src/rules/directive-class-suffix.ts"],"names":[],"mappings":"AAQA,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAKlD,wBA6DG"}
|
|
@@ -37,7 +37,6 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
37
37
|
create(context, [{ suffixes }]) {
|
|
38
38
|
return {
|
|
39
39
|
[utils_1.Selectors.DIRECTIVE_CLASS_DECORATOR](node) {
|
|
40
|
-
var _a;
|
|
41
40
|
const selectorPropertyValue = utils_1.ASTUtils.getDecoratorPropertyValue(node, 'selector');
|
|
42
41
|
if (!selectorPropertyValue)
|
|
43
42
|
return;
|
|
@@ -49,7 +48,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
49
48
|
if (!className ||
|
|
50
49
|
!allSuffixes.some((suffix) => className.endsWith(suffix))) {
|
|
51
50
|
context.report({
|
|
52
|
-
node:
|
|
51
|
+
node: classParent.id ?? classParent,
|
|
53
52
|
messageId: 'directiveClassSuffix',
|
|
54
53
|
data: { suffixes: (0, utils_1.toHumanReadableText)(allSuffixes) },
|
|
55
54
|
});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SelectorUtils } from '@angular-eslint/utils';
|
|
2
|
+
export declare const RULE_NAME = "directive-selector";
|
|
3
|
+
export type MessageIds = 'prefixFailure' | 'styleFailure' | 'typeFailure';
|
|
4
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, SelectorUtils.Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=directive-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"directive-selector.d.ts","sourceRoot":"","sources":["../../src/rules/directive-selector.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,aAAa,EACd,MAAM,uBAAuB,CAAC;AAI/B,eAAO,MAAM,SAAS,uBAAuB,CAAC;AAC9C,MAAM,MAAM,UAAU,GAAG,eAAe,GAAG,cAAc,GAAG,aAAa,CAAC;;AAM1E,wBAgGG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noAsyncLifecycleMethod';
|
|
2
|
+
export declare const RULE_NAME = "no-async-lifecycle-method";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noAsyncLifecycleMethod", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-async-lifecycle-method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-async-lifecycle-method.d.ts","sourceRoot":"","sources":["../../src/rules/no-async-lifecycle-method.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAClD,eAAO,MAAM,SAAS,8BAA8B,CAAC;;AAErD,wBAyCG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noAttributeDecorator';
|
|
2
|
+
export declare const RULE_NAME = "no-attribute-decorator";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noAttributeDecorator", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-attribute-decorator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-attribute-decorator.d.ts","sourceRoot":"","sources":["../../src/rules/no-attribute-decorator.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAElD,wBA0BG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noConflictingLifecycleInterface' | 'noConflictingLifecycleMethod';
|
|
2
|
+
export declare const RULE_NAME = "no-conflicting-lifecycle";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-conflicting-lifecycle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-conflicting-lifecycle.d.ts","sourceRoot":"","sources":["../../src/rules/no-conflicting-lifecycle.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAClB,iCAAiC,GACjC,8BAA8B,CAAC;AACnC,eAAO,MAAM,SAAS,6BAA6B,CAAC;;AAWpD,wBA6EG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noEmptyLifecycleMethod' | 'suggestRemoveLifecycleMethod';
|
|
2
|
+
export declare const RULE_NAME = "no-empty-lifecycle-method";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-empty-lifecycle-method.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-empty-lifecycle-method.d.ts","sourceRoot":"","sources":["../../src/rules/no-empty-lifecycle-method.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,UAAU,GAClB,wBAAwB,GACxB,8BAA8B,CAAC;AACnC,eAAO,MAAM,SAAS,8BAA8B,CAAC;;AAErD,wBAsFG"}
|
|
@@ -41,8 +41,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
41
41
|
{
|
|
42
42
|
messageId: 'suggestRemoveLifecycleMethod',
|
|
43
43
|
fix: (fixer) => {
|
|
44
|
-
|
|
45
|
-
const importDeclarations = (_a = utils_1.ASTUtils.getImportDeclarations(node, '@angular/core')) !== null && _a !== void 0 ? _a : [];
|
|
44
|
+
const importDeclarations = utils_1.ASTUtils.getImportDeclarations(node, '@angular/core') ?? [];
|
|
46
45
|
const interfaceName = utils_1.ASTUtils.getRawText(node).replace(/^ng+/, '');
|
|
47
46
|
const text = sourceCode.getText();
|
|
48
47
|
const totalInterfaceOccurrences = getTotalInterfaceOccurrences(text, interfaceName);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export type MessageIds = 'noForwardRef';
|
|
2
|
+
export declare const RULE_NAME = "no-forward-ref";
|
|
3
|
+
export declare const FORWARD_REF = "forwardRef";
|
|
4
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noForwardRef", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=no-forward-ref.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-forward-ref.d.ts","sourceRoot":"","sources":["../../src/rules/no-forward-ref.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC;AACxC,eAAO,MAAM,SAAS,mBAAmB,CAAC;AAE1C,eAAO,MAAM,WAAW,eAAe,CAAC;;AAExC,wBAyBG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Options = [{
|
|
2
|
+
readonly allowStatic?: boolean;
|
|
3
|
+
}];
|
|
4
|
+
export type MessageIds = 'noHostMetadataProperty';
|
|
5
|
+
export declare const RULE_NAME = "no-host-metadata-property";
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noHostMetadataProperty", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=no-host-metadata-property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-host-metadata-property.d.ts","sourceRoot":"","sources":["../../src/rules/no-host-metadata-property.ts"],"names":[],"mappings":"AAKA,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AACpD,MAAM,MAAM,UAAU,GAAG,wBAAwB,CAAC;AAClD,eAAO,MAAM,SAAS,8BAA8B,CAAC;;AAKrD,wBA4CG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Options = [{
|
|
2
|
+
readonly prefixes: readonly string[];
|
|
3
|
+
}];
|
|
4
|
+
export type MessageIds = 'noInputPrefix';
|
|
5
|
+
export declare const RULE_NAME = "no-input-prefix";
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInputPrefix", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=no-input-prefix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-input-prefix.d.ts","sourceRoot":"","sources":["../../src/rules/no-input-prefix.ts"],"names":[],"mappings":"AAQA,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CAAC;AAC1D,MAAM,MAAM,UAAU,GAAG,eAAe,CAAC;AACzC,eAAO,MAAM,SAAS,oBAAoB,CAAC;;AAE3C,wBA0HG"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Options = [{
|
|
2
|
+
readonly allowedNames?: readonly string[];
|
|
3
|
+
}];
|
|
4
|
+
export type MessageIds = 'noInputRename' | 'suggestRemoveAliasName' | 'suggestReplaceOriginalNameWithAliasName';
|
|
5
|
+
export declare const RULE_NAME = "no-input-rename";
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=no-input-rename.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-input-rename.d.ts","sourceRoot":"","sources":["../../src/rules/no-input-rename.ts"],"names":[],"mappings":"AAYA,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CAAC;AAC/D,MAAM,MAAM,UAAU,GAClB,eAAe,GACf,wBAAwB,GACxB,yCAAyC,CAAC;AAC9C,eAAO,MAAM,SAAS,oBAAoB,CAAC;;AAG3C,wBA0NG"}
|
|
@@ -111,8 +111,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
113
|
[utils_1.Selectors.INPUTS_METADATA_PROPERTY_LITERAL](node) {
|
|
114
|
-
|
|
115
|
-
const ancestorMaybeHostDirectiveAPI = (_d = (_c = (_b = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent) === null || _c === void 0 ? void 0 : _c.parent) === null || _d === void 0 ? void 0 : _d.parent;
|
|
114
|
+
const ancestorMaybeHostDirectiveAPI = node.parent?.parent?.parent?.parent?.parent;
|
|
116
115
|
if (ancestorMaybeHostDirectiveAPI &&
|
|
117
116
|
utils_1.ASTUtils.isProperty(ancestorMaybeHostDirectiveAPI)) {
|
|
118
117
|
/**
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noInputsMetadataProperty';
|
|
2
|
+
export declare const RULE_NAME = "no-inputs-metadata-property";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noInputsMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-inputs-metadata-property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-inputs-metadata-property.d.ts","sourceRoot":"","sources":["../../src/rules/no-inputs-metadata-property.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAAG,0BAA0B,CAAC;AACpD,eAAO,MAAM,SAAS,gCAAgC,CAAC;;AAIvD,wBAoDG"}
|
|
@@ -24,12 +24,11 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
24
24
|
create(context) {
|
|
25
25
|
return {
|
|
26
26
|
[`${utils_1.Selectors.COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR} ${utils_1.Selectors.metadataProperty(METADATA_PROPERTY_NAME)}`](node) {
|
|
27
|
-
var _a, _b;
|
|
28
27
|
/**
|
|
29
28
|
* Angular v15 introduced the directive composition API: https://angular.io/guide/directive-composition-api
|
|
30
29
|
* Using host directive inputs using this API is not a bad practice and should not be reported
|
|
31
30
|
*/
|
|
32
|
-
const ancestorMayBeHostDirectiveAPI =
|
|
31
|
+
const ancestorMayBeHostDirectiveAPI = node.parent?.parent?.parent;
|
|
33
32
|
if (ancestorMayBeHostDirectiveAPI &&
|
|
34
33
|
utils_1.ASTUtils.isProperty(ancestorMayBeHostDirectiveAPI)) {
|
|
35
34
|
const hostDirectiveAPIPropertyName = 'hostDirectives';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noLifecycleCall';
|
|
2
|
+
export declare const RULE_NAME = "no-lifecycle-call";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noLifecycleCall", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-lifecycle-call.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-lifecycle-call.d.ts","sourceRoot":"","sources":["../../src/rules/no-lifecycle-call.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAC3C,eAAO,MAAM,SAAS,sBAAsB,CAAC;;AAE7C,wBAwCG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noOutputNative';
|
|
2
|
+
export declare const RULE_NAME = "no-output-native";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputNative", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-output-native.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-output-native.d.ts","sourceRoot":"","sources":["../../src/rules/no-output-native.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,UAAU,GAAG,gBAAgB,CAAC;AAC1C,eAAO,MAAM,SAAS,qBAAqB,CAAC;;AAE5C,wBA8CG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noOutputOnPrefix';
|
|
2
|
+
export declare const RULE_NAME = "no-output-on-prefix";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputOnPrefix", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-output-on-prefix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-output-on-prefix.d.ts","sourceRoot":"","sources":["../../src/rules/no-output-on-prefix.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAC5C,eAAO,MAAM,SAAS,wBAAwB,CAAC;;AAG/C,wBA4CG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noOutputRename' | 'suggestRemoveAliasName' | 'suggestReplaceOriginalNameWithAliasName';
|
|
2
|
+
export declare const RULE_NAME = "no-output-rename";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-output-rename.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-output-rename.d.ts","sourceRoot":"","sources":["../../src/rules/no-output-rename.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,UAAU,GAClB,gBAAgB,GAChB,wBAAwB,GACxB,yCAAyC,CAAC;AAC9C,eAAO,MAAM,SAAS,qBAAqB,CAAC;;AAG5C,wBAkJG"}
|
|
@@ -66,8 +66,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
[utils_1.Selectors.OUTPUTS_METADATA_PROPERTY_LITERAL](node) {
|
|
69
|
-
|
|
70
|
-
const ancestorMaybeHostDirectiveAPI = (_d = (_c = (_b = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent) === null || _c === void 0 ? void 0 : _c.parent) === null || _d === void 0 ? void 0 : _d.parent;
|
|
69
|
+
const ancestorMaybeHostDirectiveAPI = node.parent?.parent?.parent?.parent?.parent;
|
|
71
70
|
if (ancestorMaybeHostDirectiveAPI &&
|
|
72
71
|
utils_1.ASTUtils.isProperty(ancestorMaybeHostDirectiveAPI)) {
|
|
73
72
|
/**
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noOutputsMetadataProperty';
|
|
2
|
+
export declare const RULE_NAME = "no-outputs-metadata-property";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noOutputsMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-outputs-metadata-property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-outputs-metadata-property.d.ts","sourceRoot":"","sources":["../../src/rules/no-outputs-metadata-property.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,iCAAiC,CAAC;;AAIxD,wBAoDG"}
|
|
@@ -24,12 +24,11 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
24
24
|
create(context) {
|
|
25
25
|
return {
|
|
26
26
|
[`${utils_1.Selectors.COMPONENT_OR_DIRECTIVE_CLASS_DECORATOR} ${utils_1.Selectors.metadataProperty(METADATA_PROPERTY_NAME)}`](node) {
|
|
27
|
-
var _a, _b;
|
|
28
27
|
/**
|
|
29
28
|
* Angular v15 introduced the directive composition API: https://angular.io/guide/directive-composition-api
|
|
30
29
|
* Using host directive outputs using this API is not a bad practice and should not be reported
|
|
31
30
|
*/
|
|
32
|
-
const ancestorMayBeHostDirectiveAPI =
|
|
31
|
+
const ancestorMayBeHostDirectiveAPI = node.parent?.parent?.parent;
|
|
33
32
|
if (ancestorMayBeHostDirectiveAPI &&
|
|
34
33
|
utils_1.ASTUtils.isProperty(ancestorMayBeHostDirectiveAPI)) {
|
|
35
34
|
const hostDirectiveAPIPropertyName = 'hostDirectives';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noPipeImpure' | 'suggestRemovePipeImpure';
|
|
2
|
+
export declare const RULE_NAME = "no-pipe-impure";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-pipe-impure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-pipe-impure.d.ts","sourceRoot":"","sources":["../../src/rules/no-pipe-impure.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,yBAAyB,CAAC;AACpE,eAAO,MAAM,SAAS,mBAAmB,CAAC;;AAE1C,wBAuCG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'noQueriesMetadataProperty';
|
|
2
|
+
export declare const RULE_NAME = "no-queries-metadata-property";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"noQueriesMetadataProperty", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=no-queries-metadata-property.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-queries-metadata-property.d.ts","sourceRoot":"","sources":["../../src/rules/no-queries-metadata-property.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,iCAAiC,CAAC;;AAKxD,wBAiCG"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Options = [
|
|
2
|
+
{
|
|
3
|
+
prefixes: string[];
|
|
4
|
+
}
|
|
5
|
+
];
|
|
6
|
+
export type MessageIds = 'pipePrefix';
|
|
7
|
+
export declare const RULE_NAME = "pipe-prefix";
|
|
8
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"pipePrefix", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=pipe-prefix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pipe-prefix.d.ts","sourceRoot":"","sources":["../../src/rules/pipe-prefix.ts"],"names":[],"mappings":"AASA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,YAAY,CAAC;AACtC,eAAO,MAAM,SAAS,gBAAgB,CAAC;;AAEvC,wBAmFG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'preferOnPushComponentChangeDetection' | 'suggestAddChangeDetectionOnPush';
|
|
2
|
+
export declare const RULE_NAME = "prefer-on-push-component-change-detection";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=prefer-on-push-component-change-detection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefer-on-push-component-change-detection.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-on-push-component-change-detection.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,UAAU,GAClB,sCAAsC,GACtC,iCAAiC,CAAC;AAatC,eAAO,MAAM,SAAS,8CAA8C,CAAC;;AAIrE,wBAuEG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'preferOutputReadonly' | 'suggestAddReadonlyModifier';
|
|
2
|
+
export declare const RULE_NAME = "prefer-output-readonly";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=prefer-output-readonly.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefer-output-readonly.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-output-readonly.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,sBAAsB,GAAG,4BAA4B,CAAC;AAC/E,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAElD,wBAmCG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'preferStandaloneComponent';
|
|
2
|
+
export declare const RULE_NAME = "prefer-standalone-component";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferStandaloneComponent", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=prefer-standalone-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefer-standalone-component.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-standalone-component.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,gCAAgC,CAAC;;AAIvD,wBA0DG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'preferStandalone';
|
|
2
|
+
export declare const RULE_NAME = "prefer-standalone";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"preferStandalone", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=prefer-standalone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prefer-standalone.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-standalone.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,UAAU,GAAG,kBAAkB,CAAC;AAC5C,eAAO,MAAM,SAAS,sBAAsB,CAAC;;AAI7C,wBA8DG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'relativeUrlPrefix';
|
|
2
|
+
export declare const RULE_NAME = "relative-url-prefix";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"relativeUrlPrefix", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=relative-url-prefix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relative-url-prefix.d.ts","sourceRoot":"","sources":["../../src/rules/relative-url-prefix.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAC7C,eAAO,MAAM,SAAS,wBAAwB,CAAC;;AAK/C,wBA0CG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type Options = [
|
|
2
|
+
{
|
|
3
|
+
readonly requireDescription?: boolean;
|
|
4
|
+
readonly requireMeaning?: boolean;
|
|
5
|
+
}
|
|
6
|
+
];
|
|
7
|
+
export type MessageIds = 'requireLocalizeDescription' | 'requireLocalizeMeaning';
|
|
8
|
+
export declare const RULE_NAME = "require-localize-metadata";
|
|
9
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
10
|
+
export default _default;
|
|
11
|
+
//# sourceMappingURL=require-localize-metadata.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"require-localize-metadata.d.ts","sourceRoot":"","sources":["../../src/rules/require-localize-metadata.ts"],"names":[],"mappings":"AAIA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC;QACtC,QAAQ,CAAC,cAAc,CAAC,EAAE,OAAO,CAAC;KACnC;CACF,CAAC;AAmBF,MAAM,MAAM,UAAU,GAClB,4BAA4B,GAC5B,wBAAwB,CAAC;AAC7B,eAAO,MAAM,SAAS,8BAA8B,CAAC;;AAErD,wBAuEG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'lifecycleMethodsNotSorted';
|
|
2
|
+
export declare const RULE_NAME = "sort-lifecycle-methods";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"lifecycleMethodsNotSorted", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=sort-lifecycle-methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-lifecycle-methods.d.ts","sourceRoot":"","sources":["../../src/rules/sort-lifecycle-methods.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAElD,wBAyDG"}
|
|
@@ -26,10 +26,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
26
26
|
return {
|
|
27
27
|
[utils_1.Selectors.COMPONENT_CLASS_DECORATOR](node) {
|
|
28
28
|
const declaredMethods = utils_1.ASTUtils.getDeclaredMethods(node.parent);
|
|
29
|
-
const declaredLifeCycleMethods = declaredMethods.filter((method) =>
|
|
30
|
-
var _a;
|
|
31
|
-
return utils_1.ASTUtils.isAngularLifecycleMethod((_a = utils_1.ASTUtils.getMethodName(method)) !== null && _a !== void 0 ? _a : '');
|
|
32
|
-
});
|
|
29
|
+
const declaredLifeCycleMethods = declaredMethods.filter((method) => utils_1.ASTUtils.isAngularLifecycleMethod(utils_1.ASTUtils.getMethodName(method) ?? ''));
|
|
33
30
|
for (let i = 1; i < declaredLifeCycleMethods.length; ++i) {
|
|
34
31
|
const before = isBefore(declaredLifeCycleMethods[i], declaredLifeCycleMethods[i - 1]);
|
|
35
32
|
if (before) {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Options = [
|
|
2
|
+
{
|
|
3
|
+
readonly locale: string;
|
|
4
|
+
}
|
|
5
|
+
];
|
|
6
|
+
export type MessageIds = 'sortNgmoduleMetadataArrays';
|
|
7
|
+
export declare const RULE_NAME = "sort-ngmodule-metadata-arrays";
|
|
8
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"sortNgmoduleMetadataArrays", Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
9
|
+
export default _default;
|
|
10
|
+
//# sourceMappingURL=sort-ngmodule-metadata-arrays.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sort-ngmodule-metadata-arrays.d.ts","sourceRoot":"","sources":["../../src/rules/sort-ngmodule-metadata-arrays.ts"],"names":[],"mappings":"AAKA,KAAK,OAAO,GAAG;IACb;QACE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;KACzB;CACF,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,4BAA4B,CAAC;AACtD,eAAO,MAAM,SAAS,kCAAkC,CAAC;;AAGzD,wBA0DG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'useComponentSelector';
|
|
2
|
+
export declare const RULE_NAME = "use-component-selector";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"useComponentSelector", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=use-component-selector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-component-selector.d.ts","sourceRoot":"","sources":["../../src/rules/use-component-selector.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,sBAAsB,CAAC;AAChD,eAAO,MAAM,SAAS,2BAA2B,CAAC;;AAElD,wBAiCG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'useComponentViewEncapsulation' | 'suggestRemoveViewEncapsulationNone';
|
|
2
|
+
export declare const RULE_NAME = "use-component-view-encapsulation";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=use-component-view-encapsulation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-component-view-encapsulation.d.ts","sourceRoot":"","sources":["../../src/rules/use-component-view-encapsulation.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,UAAU,GAClB,+BAA+B,GAC/B,oCAAoC,CAAC;AACzC,eAAO,MAAM,SAAS,qCAAqC,CAAC;;AAG5D,wBAwDG"}
|
|
@@ -31,8 +31,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
31
31
|
{
|
|
32
32
|
messageId: 'suggestRemoveViewEncapsulationNone',
|
|
33
33
|
fix: (fixer) => {
|
|
34
|
-
|
|
35
|
-
const importDeclarations = (_a = utils_1.ASTUtils.getImportDeclarations(node, '@angular/core')) !== null && _a !== void 0 ? _a : [];
|
|
34
|
+
const importDeclarations = utils_1.ASTUtils.getImportDeclarations(node, '@angular/core') ?? [];
|
|
36
35
|
return [
|
|
37
36
|
utils_1.RuleFixes.getNodeToCommaRemoveFix(sourceCode, node.parent.parent, fixer),
|
|
38
37
|
utils_1.RuleFixes.getImportRemoveFix(sourceCode, importDeclarations, 'ViewEncapsulation', fixer),
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
type Options = [{
|
|
2
|
+
readonly ignoreClassNamePattern?: string;
|
|
3
|
+
}];
|
|
4
|
+
export type MessageIds = 'useInjectableProvidedIn' | 'suggestInjector';
|
|
5
|
+
export declare const RULE_NAME = "use-injectable-provided-in";
|
|
6
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<MessageIds, Options, import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=use-injectable-provided-in.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-injectable-provided-in.d.ts","sourceRoot":"","sources":["../../src/rules/use-injectable-provided-in.ts"],"names":[],"mappings":"AAIA,KAAK,OAAO,GAAG,CAAC;IAAE,QAAQ,CAAC,sBAAsB,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAC9D,MAAM,MAAM,UAAU,GAAG,yBAAyB,GAAG,iBAAiB,CAAC;AACvE,eAAO,MAAM,SAAS,+BAA+B,CAAC;;AAGtD,wBA2DG"}
|
|
@@ -47,10 +47,9 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
47
47
|
suggest: ['any', 'platform', 'root'].map((injector) => ({
|
|
48
48
|
messageId: 'suggestInjector',
|
|
49
49
|
fix: (fixer) => {
|
|
50
|
-
var _a;
|
|
51
50
|
return utils_1.ASTUtils.isProperty(node)
|
|
52
51
|
? fixer.replaceText(node.value, `'${injector}'`)
|
|
53
|
-
:
|
|
52
|
+
: utils_1.RuleFixes.getDecoratorPropertyAddFix(node, fixer, `${METADATA_PROPERTY_NAME}: '${injector}'`) ?? [];
|
|
54
53
|
},
|
|
55
54
|
data: { injector },
|
|
56
55
|
})),
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'useLifecycleInterface';
|
|
2
|
+
export declare const RULE_NAME = "use-lifecycle-interface";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"useLifecycleInterface", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=use-lifecycle-interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-lifecycle-interface.d.ts","sourceRoot":"","sources":["../../src/rules/use-lifecycle-interface.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,uBAAuB,CAAC;AACjD,eAAO,MAAM,SAAS,4BAA4B,CAAC;;AAGnD,wBA+CG"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type MessageIds = 'usePipeTransformInterface';
|
|
2
|
+
export declare const RULE_NAME = "use-pipe-transform-interface";
|
|
3
|
+
declare const _default: import("@typescript-eslint/utils/ts-eslint").RuleModule<"usePipeTransformInterface", [], import("@typescript-eslint/utils/ts-eslint").RuleListener>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# sourceMappingURL=use-pipe-transform-interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-pipe-transform-interface.d.ts","sourceRoot":"","sources":["../../src/rules/use-pipe-transform-interface.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AACrD,eAAO,MAAM,SAAS,iCAAiC,CAAC;;AAGxD,wBAgDG"}
|
|
@@ -23,9 +23,8 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
|
|
|
23
23
|
create(context) {
|
|
24
24
|
return {
|
|
25
25
|
[`ClassDeclaration:not(:has(TSClassImplements:matches([expression.name='${PIPE_TRANSFORM}'], [expression.property.name='${PIPE_TRANSFORM}']))) > Decorator[expression.callee.name='Pipe']`]({ parent: classDeclaration, }) {
|
|
26
|
-
var _a;
|
|
27
26
|
context.report({
|
|
28
|
-
node:
|
|
27
|
+
node: classDeclaration.id ?? classDeclaration,
|
|
29
28
|
messageId: 'usePipeTransformInterface',
|
|
30
29
|
fix: (fixer) => {
|
|
31
30
|
const { implementsNodeReplace, implementsTextReplace } = utils_1.RuleFixes.getImplementsSchemaFixer(classDeclaration, PIPE_TRANSFORM);
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
2
|
+
export declare const createESLintRule: <Options extends readonly unknown[], MessageIds extends string>({ name, meta, ...rule }: Readonly<ESLintUtils.RuleWithMetaAndName<Options, MessageIds>>) => ESLintUtils.RuleModule<MessageIds, Options, ESLintUtils.RuleListener>;
|
|
3
|
+
//# sourceMappingURL=create-eslint-rule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-eslint-rule.d.ts","sourceRoot":"","sources":["../../src/utils/create-eslint-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AA4BvD,eAAO,MAAM,gBAAgB,mOAG5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-eslint/eslint-plugin",
|
|
3
|
-
"version": "17.3.1-alpha.
|
|
3
|
+
"version": "17.3.1-alpha.11",
|
|
4
4
|
"description": "ESLint plugin for Angular applications, following angular.io/styleguide",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,13 +12,15 @@
|
|
|
12
12
|
},
|
|
13
13
|
"files": [
|
|
14
14
|
"dist",
|
|
15
|
+
"!**/*.tsbuildinfo",
|
|
15
16
|
"package.json",
|
|
16
17
|
"README.md",
|
|
17
18
|
"LICENSE"
|
|
18
19
|
],
|
|
19
20
|
"dependencies": {
|
|
20
|
-
"@angular-eslint/
|
|
21
|
-
"@
|
|
21
|
+
"@angular-eslint/bundled-angular-compiler": "17.3.1-alpha.11",
|
|
22
|
+
"@angular-eslint/utils": "17.3.1-alpha.11",
|
|
23
|
+
"@typescript-eslint/utils": "7.7.0"
|
|
22
24
|
},
|
|
23
25
|
"peerDependencies": {
|
|
24
26
|
"eslint": "^7.20.0 || ^8.0.0",
|