Skip to content
This repository has been archived by the owner on Aug 20, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants