Skip to content

Commit

Permalink
Added shared settings info, React version default note fix for #2169
Browse files Browse the repository at this point in the history
  • Loading branch information
samsch committed Feb 27, 2019
1 parent 4a72e6a commit a0683b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
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 a0683b0

Please sign in to comment.