You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/eslint-plugin/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,7 @@ Please see https://github.com/angular-eslint/angular-eslint for full usage instr
68
68
|[`no-queries-metadata-property`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-queries-metadata-property.md)| Disallows usage of the `queries` metadata property. See more at https://angular.dev/style-guide#style-05-12.||||
69
69
|[`no-uncalled-signals`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-uncalled-signals.md)| Warns user about unintentionally doing logic on the signal, rather than the signal's value |||:bulb:|
70
70
|[`pipe-prefix`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/pipe-prefix.md)| Enforce consistent prefix for pipes. ||||
71
+
|[`prefer-host-metadata-property`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-host-metadata-property.md)| Use `host` metadata property instead of `@HostBinding` and `HostListener`||||
71
72
|[`prefer-inject`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-inject.md)| Prefer using the inject() function over constructor parameter injection |:white_check_mark:|||
72
73
|[`prefer-on-push-component-change-detection`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-on-push-component-change-detection.md)| Ensures component's `changeDetection` is set to `ChangeDetectionStrategy.OnPush`|||:bulb:|
73
74
|[`prefer-output-emitter-ref`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/prefer-output-emitter-ref.md)| Use `OutputEmitterRef` instead of `@Output()`||||
In order to update this file, it is therefore those files which need to be updated, as well as potentially the generator script:
10
+
- ../../../../tools/scripts/generate-rule-docs.ts
11
+
12
+
-->
13
+
14
+
<br>
15
+
16
+
# `@angular-eslint/prefer-host-metadata-property`
17
+
18
+
Use `host` metadata property instead of `@HostBinding` and `HostListener`
19
+
20
+
- Type: suggestion
21
+
22
+
<br>
23
+
24
+
## Rule Options
25
+
26
+
The rule does not have any configuration options.
27
+
28
+
<br>
29
+
30
+
## Usage Examples
31
+
32
+
> The following examples are generated automatically from the actual unit tests within the plugin, so you can be assured that their behavior is accurate based on the current commit.
33
+
34
+
<br>
35
+
36
+
<details>
37
+
<summary>❌ - Toggle examples of <strong>incorrect</strong> code for this rule</summary>
0 commit comments