File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
projects/igniteui-angular/rules Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,13 @@ export const rule = ESLintUtils.RuleCreator.withoutDocs({
118118
119119 if ( ! isBoolean ) return ;
120120
121- const comments = context . sourceCode . getCommentsBefore ( classDeclaration . decorators [ 0 ] ?? classDeclaration ) ;
121+ // ignore hidden/internal properties
122+ const propComments = context . sourceCode . getCommentsBefore ( decorator ) . filter ( x => x . type === 'Block' ) ;
123+ if ( propComments . some ( x => x . value . includes ( '@hidden' ) || x . value . includes ( '@internal' ) ) )
124+ return ;
125+
126+ // ignore hidden/internal classes
127+ const comments = context . sourceCode . getCommentsBefore ( classDeclaration . decorators [ 0 ] ?? classDeclaration ) . filter ( x => x . type === 'Block' ) ;
122128 if ( comments . some ( x => x . value . includes ( '@hidden' ) || x . value . includes ( '@internal' ) ) )
123129 return ;
124130
You can’t perform that action at this time.
0 commit comments