We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1a37d7 commit 7363750Copy full SHA for 7363750
projects/igniteui-angular/rules/boolean-input-transform.mjs
@@ -94,15 +94,7 @@ export const rule = ESLintUtils.RuleCreator.withoutDocs({
94
if (comments.some(x => x.value.includes('@hidden') || x.value.includes('@internal')))
95
return;
96
97
- const arg = decorator.expression.arguments[0];
98
- const hasTransform =
99
- arg &&
100
- arg.type === 'ObjectExpression' &&
101
- arg.properties.some(
102
- (p) =>
103
- p.key.name === 'transform' &&
104
- p.value.name === 'booleanAttribute'
105
- );
+ const hasTransform = ASTUtils.getDecoratorProperty(decorator, 'transform')?.value.name === 'booleanAttribute';
106
107
if (hasTransform) return;
108
0 commit comments