There was an error while loading. Please reload this page.
boolean-prop-naming
1 parent 81ec186 commit b59417fCopy full SHA for b59417f
lib/rules/boolean-prop-naming.js
@@ -265,6 +265,16 @@ module.exports = {
265
node
266
);
267
objectTypeAnnotations.set(identifier.name, currentNode);
268
+ } else if (
269
+ node.type === 'TSParenthesizedType'
270
+ && (
271
+ node.typeAnnotation.type === 'TSIntersectionType'
272
+ || node.typeAnnotation.type === 'TSUnionType'
273
+ )
274
+ ) {
275
+ node.typeAnnotation.types.forEach((type) => {
276
+ findAllTypeAnnotations(identifier, type);
277
+ });
278
} else if (
279
node.type === 'TSIntersectionType'
280
|| node.type === 'TSUnionType'
0 commit comments