@@ -21,8 +21,8 @@ const messages = {
2121} as const ;
2222type MessageIds = keyof typeof messages ;
2323
24- const ngOnDestroyMethodSelector =
25- " MethodDefinition[key.name='ngOnDestroy'][kind='method']" ;
24+ const ngOnDestroyMethodSelector
25+ = ' MethodDefinition[key.name=\ 'ngOnDestroy\ '][kind=\ 'method\']' ;
2626
2727const defaultOptions : readonly {
2828 alias ?: string [ ] ;
@@ -50,7 +50,7 @@ export const preferTakeuntilRule = ruleCreator({
5050 checkComplete : { type : 'boolean' , description : 'Check for `complete` calls.' } ,
5151 checkDecorators : { type : 'array' , items : { type : 'string' } , description : 'An optional array of decorator names to check.' } ,
5252 checkDestroy : { type : 'boolean' , description : 'Check for `Subject`-based `ngOnDestroy`.' } ,
53- superClass : { type : " array" , items : { type : " string" } } ,
53+ superClass : { type : ' array' , items : { type : ' string' } } ,
5454 } ,
5555 type : 'object' ,
5656 description : stripIndent `
@@ -166,33 +166,33 @@ export const preferTakeuntilRule = ruleCreator({
166166 if ( extendsSuperClassDeclaration ) {
167167 if ( ! superNgOnDestroyCallExpression ) {
168168 check . descriptors . push ( {
169- data : { method : " ngOnDestroy" , name : " super" } ,
170- messageId : " notCalled" ,
169+ data : { method : ' ngOnDestroy' , name : ' super' } ,
170+ messageId : ' notCalled' ,
171171 node : ngOnDestroyDefinition . key ,
172172 } ) ;
173173 }
174174 } else {
175175 if ( ! checkSubjectProperty ( name , entry ) ) {
176176 check . descriptors . push ( {
177177 data : { name } ,
178- messageId : " notDeclared" ,
178+ messageId : ' notDeclared' ,
179179 node : classDeclaration . id ?? classDeclaration ,
180180 } ) ;
181181 }
182182 if ( ! checkSubjectCall ( name , nextCallExpressions ) ) {
183183 check . descriptors . push ( {
184- data : { method : " next" , name } ,
185- messageId : " notCalled" ,
184+ data : { method : ' next' , name } ,
185+ messageId : ' notCalled' ,
186186 node : ngOnDestroyDefinition . key ,
187187 } ) ;
188188 }
189189 if (
190- checkComplete &&
191- ! checkSubjectCall ( name , completeCallExpressions )
190+ checkComplete
191+ && ! checkSubjectCall ( name , completeCallExpressions )
192192 ) {
193193 check . descriptors . push ( {
194- data : { method : " complete" , name } ,
195- messageId : " notCalled" ,
194+ data : { method : ' complete' , name } ,
195+ messageId : ' notCalled' ,
196196 node : ngOnDestroyDefinition . key ,
197197 } ) ;
198198 }
@@ -331,8 +331,8 @@ export const preferTakeuntilRule = ruleCreator({
331331 ) ;
332332 }
333333
334- const extendsSuperClassDeclaration =
335- superClass . length === 0
334+ const extendsSuperClassDeclaration
335+ = superClass . length === 0
336336 ? { }
337337 : {
338338 [ `ClassDeclaration:matches(${ superClass
0 commit comments