Skip to content

Commit e1a37d7

Browse files
committed
ci(lint): check to ignore hidden/internal classes
1 parent 2756a20 commit e1a37d7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

projects/igniteui-angular/rules/boolean-input-transform.mjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,16 @@ export const rule = ESLintUtils.RuleCreator.withoutDocs({
8484
decorator,
8585
ASTUtils.isClassDeclaration,
8686
);
87-
87+
// classDeclaration.body.body.indexOff(property);
8888

8989
let isBoolean = isBooleanProperty(property/*, parserServices*/);
9090

9191
if (!isBoolean) return;
9292

93+
const comments = context.sourceCode.getCommentsBefore(classDeclaration.decorators[0] ?? classDeclaration);
94+
if (comments.some(x => x.value.includes('@hidden') || x.value.includes('@internal')))
95+
return;
96+
9397
const arg = decorator.expression.arguments[0];
9498
const hasTransform =
9599
arg &&

0 commit comments

Comments
 (0)