@angular-eslint/eslint-plugin 18.0.0-alpha.0 → 18.0.0-alpha.1

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 CHANGED
@@ -51,7 +51,6 @@
51
51
  | [`no-duplicates-in-metadata-arrays`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-duplicates-in-metadata-arrays.md) | Ensures that metadata arrays do not contain duplicate entries. | | | |
52
52
  | [`no-empty-lifecycle-method`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-empty-lifecycle-method.md) | Disallows declaring empty lifecycle methods | :white_check_mark: | | :bulb: |
53
53
  | [`no-forward-ref`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-forward-ref.md) | Disallows usage of `forwardRef` references for DI | | | |
54
- | [`no-host-metadata-property`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-host-metadata-property.md) | Disallows usage of the `host` metadata property. See more at https://angular.io/styleguide#style-06-03 | :white_check_mark: | | |
55
54
  | [`no-input-prefix`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-input-prefix.md) | Ensures that input bindings, including aliases, are not named or prefixed by the configured disallowed prefixes | | | |
56
55
  | [`no-input-rename`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-input-rename.md) | Ensures that input bindings are not aliased | :white_check_mark: | :wrench: | :bulb: |
57
56
  | [`no-inputs-metadata-property`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-inputs-metadata-property.md) | Disallows usage of the `inputs` metadata property. See more at https://angular.io/styleguide#style-05-12 | :white_check_mark: | | |
@@ -88,6 +87,7 @@
88
87
  <!-- prettier-ignore-start -->
89
88
  | Rule | Replaced by |
90
89
  | --- | --- |
90
+ | [`no-host-metadata-property`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/no-host-metadata-property.md) | |
91
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
  | [`sort-ngmodule-metadata-arrays`](https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin/docs/rules/sort-ngmodule-metadata-arrays.md) | |
93
93
  <!-- prettier-ignore-end -->
@@ -6,7 +6,6 @@
6
6
  "@angular-eslint/contextual-lifecycle": "error",
7
7
  "@angular-eslint/directive-class-suffix": "error",
8
8
  "@angular-eslint/no-empty-lifecycle-method": "error",
9
- "@angular-eslint/no-host-metadata-property": "error",
10
9
  "@angular-eslint/no-input-rename": "error",
11
10
  "@angular-eslint/no-inputs-metadata-property": "error",
12
11
  "@angular-eslint/no-output-native": "error",
package/dist/index.d.ts CHANGED
@@ -53,7 +53,6 @@ declare const _default: {
53
53
  "@angular-eslint/contextual-lifecycle": string;
54
54
  "@angular-eslint/directive-class-suffix": string;
55
55
  "@angular-eslint/no-empty-lifecycle-method": string;
56
- "@angular-eslint/no-host-metadata-property": string;
57
56
  "@angular-eslint/no-input-rename": string;
58
57
  "@angular-eslint/no-inputs-metadata-property": string;
59
58
  "@angular-eslint/no-output-native": string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyHA,kBA+CE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyHA,kBA+CE"}
@@ -1 +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"}
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;;AAIrD,wBA4CG"}
@@ -7,14 +7,13 @@ const create_eslint_rule_1 = require("../utils/create-eslint-rule");
7
7
  exports.RULE_NAME = 'no-host-metadata-property';
8
8
  const DEFAULT_OPTIONS = { allowStatic: false };
9
9
  const METADATA_PROPERTY_NAME = 'host';
10
- const STYLE_GUIDE_LINK = 'https://angular.io/styleguide#style-06-03';
11
10
  exports.default = (0, create_eslint_rule_1.createESLintRule)({
12
11
  name: exports.RULE_NAME,
13
12
  meta: {
14
13
  type: 'suggestion',
14
+ deprecated: true,
15
15
  docs: {
16
- description: `Disallows usage of the \`${METADATA_PROPERTY_NAME}\` metadata property. See more at ${STYLE_GUIDE_LINK}`,
17
- recommended: 'recommended',
16
+ description: `Disallows usage of the \`${METADATA_PROPERTY_NAME}\` metadata property. NOTE: This used to be recommended by the Angular Team, but now they recommend the exact opposite: https://github.com/angular/angular/issues/54284`,
18
17
  },
19
18
  schema: [
20
19
  {
@@ -29,7 +28,7 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
29
28
  },
30
29
  ],
31
30
  messages: {
32
- noHostMetadataProperty: `Use @${utils_1.ASTUtils.AngularInnerClassDecorators.HostBinding} or @${utils_1.ASTUtils.AngularInnerClassDecorators.HostListener} rather than the \`${METADATA_PROPERTY_NAME}\` metadata property (${STYLE_GUIDE_LINK})`,
31
+ noHostMetadataProperty: `Use @${utils_1.ASTUtils.AngularInnerClassDecorators.HostBinding} or @${utils_1.ASTUtils.AngularInnerClassDecorators.HostListener} rather than the \`${METADATA_PROPERTY_NAME}\` metadata property`,
33
32
  },
34
33
  },
35
34
  defaultOptions: [DEFAULT_OPTIONS],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/eslint-plugin",
3
- "version": "18.0.0-alpha.0",
3
+ "version": "18.0.0-alpha.1",
4
4
  "description": "ESLint plugin for Angular applications, following angular.io/styleguide",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -18,8 +18,8 @@
18
18
  "LICENSE"
19
19
  ],
20
20
  "dependencies": {
21
- "@angular-eslint/bundled-angular-compiler": "18.0.0-alpha.0",
22
- "@angular-eslint/utils": "18.0.0-alpha.0",
21
+ "@angular-eslint/bundled-angular-compiler": "18.0.0-alpha.1",
22
+ "@angular-eslint/utils": "18.0.0-alpha.1",
23
23
  "@typescript-eslint/utils": "7.10.0"
24
24
  },
25
25
  "peerDependencies": {