Skip to content

Commit 23c5e34

Browse files
committed
silly logic oversight
1 parent da04e17 commit 23c5e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rules/no-multi-comp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module.exports = {
109109
* @returns {boolean} True if the component is exported or exportOnly is false
110110
*/
111111
function isExported(component) {
112-
return !exportOnly && exportedComponents.has(findComponentIdentifierFromComponent(component));
112+
return !exportOnly || exportedComponents.has(findComponentIdentifierFromComponent(component));
113113
}
114114

115115
const rule = {

0 commit comments

Comments
 (0)