File tree Expand file tree Collapse file tree 2 files changed +152
-307
lines changed Expand file tree Collapse file tree 2 files changed +152
-307
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,9 @@ module.exports = {
65
65
if ( node . declaration . type === 'ClassDeclaration' ) {
66
66
return node . declaration . id . name ;
67
67
}
68
+ if ( node . declaration . type === 'Identifier' ) {
69
+ return node . declaration . name ;
70
+ }
68
71
if ( node . declaration . declarations ) {
69
72
const declarator = node . declaration . declarations . find ( ( declaration ) => validIdentifiers . has ( declaration . init . type ) ) ;
70
73
if ( declarator ) {
@@ -109,7 +112,7 @@ module.exports = {
109
112
* @returns {boolean } True if the component is exported or exportOnly is false
110
113
*/
111
114
function isPrivate ( component ) {
112
- return ignoreInternal && exportedComponents . has ( findComponentIdentifierFromComponent ( component ) ) ;
115
+ return ignoreInternal && ! exportedComponents . has ( findComponentIdentifierFromComponent ( component ) ) ;
113
116
}
114
117
115
118
const rule = {
You can’t perform that action at this time.
0 commit comments