eslint-plugin-react-native
eslint-plugin-react-native copied to clipboard
The 'ecmaFeatures' config file property is deprecated
The docs suggest
"ecmaFeatures": {
"jsx": true
},
But for me, using eslint 4.19.0, I get the following warning:
[eslint] The 'ecmaFeatures' config file property is deprecated, and has no effect.
I think the solution is to use this instead
"parserOptions": {
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
Hi @GitTom, thanks for reporting, feel free to make a PR with an update!
The solution by @GitTom fixed this for me too!
I will go ahead and submit a pull request for this in the docs since I don't see one open, and the issue is still present.