In magento 2 mousehover on swatch disable non configurable option?

In Magento2 default swatch function is we are select the color swatch disable the nonconfigurable option like size is not there.Like below image

http://prntscr.com/lh9jvl

how can i write the same functionality with mousehover on configurable swatches

thanks,