You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// eslintrc.js
rules: {
...
'emotion/syntax-preference': ['error','string'],
...
}// MyComponent.js// Despite using the object syntax, the following line doesn't raise an ESLint errorconstMyComponent=()=><divcss={{background: 'red'}}/>;
Problem description:
The syntax-preference ESLint rule currently works for styled but not with the CSS prop.
Suggested solution:
It would be nice if this rule could also enforce a syntax choice for projects using CSS props.
joefiorini, billyjanitsch, michalwerner, rskopal and sman591