Browse Source

Reword the note about ESLint fragment support (#363)

main
Dan Abramov 7 years ago
committed by GitHub
parent
commit
04e5e446be
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      content/blog/2017-11-28-react-v16.2.0-fragment-support.md

4
content/blog/2017-11-28-react-v16.2.0-fragment-support.md

@ -229,7 +229,7 @@ to update Flow to the latest version.
### ESLint
JSX Fragments are supported by [ESLint](https://eslint.org/) via [babel-eslint](https://github.com/babel/babel-eslint)! If you are not currently using it, then install it:
JSX Fragments are supported by [ESLint](https://eslint.org/) 3.x when it is used together with [babel-eslint](https://github.com/babel/babel-eslint):
```bash
# for yarn users
@ -255,6 +255,8 @@ Ensure you have the following line inside your `.babelrc`:
That's it!
Note that `babel-eslint` is not officially supported by ESLint. We'll be looking into adding support for fragments to ESLint 4.x itself in the coming weeks.
### Editor Support
It may take a while for fragment syntax to be supported in your text editor. Please be patient as the community works to adopt the latest changes. In the meantime, you may see errors or inconsistent highlighting if your editor does not yet support fragment syntax. Generally, these errors can be safely ignored.

Loading…
Cancel
Save