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 32cb6e2 commit bcd12acCopy full SHA for bcd12ac
lib/rules/boolean-prop-naming.js
@@ -251,10 +251,12 @@ module.exports = {
251
}
252
253
const annotationTypeParams = component.node.parent.id.typeAnnotation.typeAnnotation.typeParameters;
254
- if (annotationTypeParams && (
255
- annotationTypeParams.type === 'TSTypeParameterInstantiation'
256
- || annotationTypeParams.type === 'TypeParameterInstantiation'
257
- )) {
+ if (
+ annotationTypeParams && (
+ annotationTypeParams.type === 'TSTypeParameterInstantiation'
+ || annotationTypeParams.type === 'TypeParameterInstantiation'
258
+ )
259
+ ) {
260
return annotationTypeParams.params.find(
261
(param) => param.type === 'TSTypeReference' || param.type === 'GenericTypeAnnotation'
262
);
0 commit comments