jens-ox / eslint-plugin-material-ui-unused-classes

Detect unused Material UI styling classes using eslint
31 stars 11 forks source link

Destructured Props Support #4

Open amerryma opened 3 years ago

amerryma commented 3 years ago

Was this ever intended to work destructured styles?

const { myStyle } = useStyles()
jens-ox commented 1 year ago

This is not supported, yet.

AntonioLuisME commented 7 months ago

The lack of support for deconstructed styles makes this plugin useless. New devs to a project won't be aware that they must not use the common and useful deconstruct styles feature in order for this plugin to work.

jens-ox commented 7 months ago

Hi @AntonioLuisME! I haven't used Material UI in a long time. Feel free to contribute!