Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set ignoreCase to false in eslint rules - react/jsx-no-duplicate-props #361

Closed
vishalchandna1 opened this issue Aug 20, 2018 · 1 comment

Comments

@vishalchandna1
Copy link
Contributor

An error is received if there are two props with same name but different cases -
e.g
<TextField> receives two different type of props

  1. InputProps
  2. inputProps
    They both are different but I still get the following error
    No duplicate props allowed react/jsx-no-duplicate-props

API - https://material-ui.com/api/text-field/

So we need to add a new rule in eslint to avoid any kind of unnecessary warnings.
Docs: https://github.com/infernojs/eslint-plugin-inferno/blob/master/docs/rules/jsx-no-duplicate-props.md

@vishalchandna1
Copy link
Contributor Author

It won't be needed as we have a workaround for multiple props.
Here is the link - mui/material-ui#10064
Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant