griffel
griffel copied to clipboard
lint: forbid comma separated selectors in selectors
We need add a ESLint rule that will forbid :hover,:active
selectors.
makeStyles({
root: {
// 🟢 should pass
":hover": { color: "red" },
":active": { color: "blue" },
// 🔴 should break
":hover,:active": { color: "blue" },
},
});
For context, https://github.com/microsoft/griffel/discussions/495.