@angular-eslint/eslint-plugin 22.2.1-alpha.5 → 22.2.1-alpha.6

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.
@@ -1 +1 @@
1
- {"version":3,"file":"prefer-signal-model.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-signal-model.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAC7C,eAAO,MAAM,SAAS,wBAAwB,CAAC;;;;AAE/C,wBA0EG;AAEH,eAAO,MAAM,mBAAmB;;CAG/B,CAAC"}
1
+ {"version":3,"file":"prefer-signal-model.d.ts","sourceRoot":"","sources":["../../src/rules/prefer-signal-model.ts"],"names":[],"mappings":"AAUA,MAAM,MAAM,UAAU,GAAG,mBAAmB,CAAC;AAC7C,eAAO,MAAM,SAAS,wBAAwB,CAAC;;;;AAE/C,wBA4FG;AAEH,eAAO,MAAM,mBAAmB;;CAG/B,CAAC"}
@@ -23,6 +23,18 @@ exports.default = (0, create_eslint_rule_1.createESLintRule)({
23
23
  const outputs = new Map();
24
24
  return {
25
25
  "PropertyDefinition > CallExpression[callee.name='input']"(node) {
26
+ // Skip inputs with a transform option because model() does not support transform.
27
+ // https://github.com/angular/angular/issues/55166#issuecomment-2032150999
28
+ const options = node.arguments[1];
29
+ const hasTransformOption = options?.type === 'ObjectExpression' &&
30
+ options.properties.some((prop) => prop.type === 'Property' &&
31
+ ((prop.key.type === 'Identifier' &&
32
+ prop.key.name === 'transform') ||
33
+ (prop.key.type === 'Literal' &&
34
+ prop.key.value === 'transform')));
35
+ if (hasTransformOption) {
36
+ return;
37
+ }
26
38
  const propertyDef = node.parent;
27
39
  const propertyName = utils_1.ASTUtils.getPropertyDefinitionName(propertyDef);
28
40
  inputs.set(propertyName, propertyDef);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-eslint/eslint-plugin",
3
- "version": "22.2.1-alpha.5",
3
+ "version": "22.2.1-alpha.6",
4
4
  "description": "ESLint plugin for Angular applications, following https://angular.dev/style-guide",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -19,12 +19,12 @@
19
19
  "LICENSE"
20
20
  ],
21
21
  "dependencies": {
22
- "@angular-eslint/bundled-angular-compiler": "22.2.1-alpha.5",
23
- "@angular-eslint/utils": "22.2.1-alpha.5",
22
+ "@angular-eslint/bundled-angular-compiler": "22.2.1-alpha.6",
23
+ "@angular-eslint/utils": "22.2.1-alpha.6",
24
24
  "ts-api-utils": "^2.1.0"
25
25
  },
26
26
  "devDependencies": {
27
- "@angular-eslint/test-utils": "22.2.1-alpha.5"
27
+ "@angular-eslint/test-utils": "22.2.1-alpha.6"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@typescript-eslint/utils": "^8.0.0",