eslint-plugin-material-ui-unused-classes icon indicating copy to clipboard operation
eslint-plugin-material-ui-unused-classes copied to clipboard

Only works if your output of `useStyles` is `classes`

Open jacobchrismarsh opened this issue 2 years ago • 0 comments

If your styles are created like this, then you're good:

const classes = useStyles()

If you use any other variable name, however, the plugin declares every class as "unused"

const different_classes = useStyles()

// Every class is marked as unused

jacobchrismarsh avatar Jun 24 '22 23:06 jacobchrismarsh