-
-
Notifications
You must be signed in to change notification settings - Fork 32
Closed
Labels
Status: ReleasedThe issue has been releasedThe issue has been releasedType: New RuleIntroduce a new ruleIntroduce a new rule
Description
Describe the problem
Copying over #85 (comment):
We're migrating most of our eslint-plugin-react rules to eslint-plugin-react-x, eslint-plugin-react-dom and eslint-plugin-react-naming-convention today, and I came across one other scenario for non-TypeScript environments like MDX:
The following correctness rules in
eslint-plugin-reactcan be enforced by TypeScript with appropriatetsconfig.jsonsettings:
- react/style-prop-object
We have found it useful to be able to lint for incorrect style prop values in non-TS environments like MDX.
Describe the solution you'd like
The suggestion by @Rel1cx seems nice:
A
no-string-style-proprule can be added toeslint-plugin-react-xeslint-plugin-react-domto enforce this.
Comment: #85 (comment)
Alternatives considered
--
Additional context
No response
Metadata
Metadata
Assignees
Labels
Status: ReleasedThe issue has been releasedThe issue has been releasedType: New RuleIntroduce a new ruleIntroduce a new rule