Open mc-petry opened 2 years ago
When using react styled components (and similar libraries like emotion, stitches etc.) as styles rule don't work.
no-unused-properties
const styles = { wrapper: styled('div', {}), unused: styled('div', {}), } function Component() { return <styles.wrapper /> }
Its main example use case mentions CSS-in-JS exactly. If this still doesn't work, it's likely a bug
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-unused-properties.md
When using react styled components (and similar libraries like emotion, stitches etc.) as styles rule don't work.
no-unused-properties