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

eslint-config-sevenval - Warning: React version #7

Open
fabianmebus opened this issue Nov 15, 2018 · 1 comment
Open

eslint-config-sevenval - Warning: React version #7

fabianmebus opened this issue Nov 15, 2018 · 1 comment
Assignees

Comments

@fabianmebus
Copy link
Collaborator

fabianmebus commented Nov 15, 2018

This warning is thrown

Warning: React version not specified in eslint-plugin-react settings. See https://github.com/yannickcr/eslint-plugin-react#configuration

Input from @marvinhagemeister "... if applicable, we could fix this directly in the preset ..."

@lennymlzr
Copy link
Contributor

lennymlzr commented Nov 23, 2018

There is already a closed issue and pull request at eslint-plugin-react.
jsx-eslint/eslint-plugin-react#1955
jsx-eslint/eslint-plugin-react#1978
Setting the detect option is my preferred solution. We will add the setting in the preset. Until the feature is released, you can set the setting in your eslintrc to the react version you are using. e.g.

{
  "settings": {
    "react": {
      "version": "16.6.3"
    }
  }
}

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

2 participants