Skip to content

Commit

Permalink
Merge pull request #2180 from samsch/patch-2
Browse files Browse the repository at this point in the history
[Docs] Added shared settings info, React version default note

Fixes #2169.
  • Loading branch information
ljharb committed Mar 6, 2019
2 parents 6835d8b + a0683b0 commit b7f0b02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Expand Up @@ -30,7 +30,7 @@ Use [our preset](#recommended) to get reasonable defaults:
]
```

You should also specify settings that will be shared across all the plugin rules.
You should also specify settings that will be shared across all the plugin rules. ([More about eslint shared settings](https://eslint.org/docs/user-guide/configuring#adding-shared-settings))

```json5
{
Expand All @@ -41,6 +41,8 @@ You should also specify settings that will be shared across all the plugin rules
"pragma": "React", // Pragma to use, default to "React"
"version": "detect", // React version. "detect" automatically picks the version you have installed.
// You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
// default to latest and warns if missing
// It will default to "detect" in the future
"flowVersion": "0.53" // Flow version
},
"propWrapperFunctions": [
Expand Down

0 comments on commit b7f0b02

Please sign in to comment.