eslint-plugin-react-with-classes
ESLint plugin for mui-withstyles.
Rules
- react-with-classes/no-unused-classes: Require all styles that are defined to be referenced
Caveats
- If not passed directly to
withStyles
,theme => ({ ... })
calls must be namedstyles
whether they're declared inline or default-exported from another module
Examples
- See the tests for valid/invalid cases