Custom JSX namespace and unused variables

I'm using a custom JSX namespace for a custom JSX library. The code looks like this:

 

 

I've set the custom namespace in the settings under Missing React import with JSX like so:

 

 

This setting does help with the Missing React import error, but the h() is still marked as unused which is unusual. Is there a way to whitelist h() or anything else that I could do to make this error go away?

3 comments
Comment actions Permalink

You can suppress the warning by adding

// noinspection JSUnusedLocalSymbols

before your const declaration

0
Comment actions Permalink

Is there a way to globally whitelist `h`, without patching every single module it's used in?

0

Please sign in to leave a comment.