eslint-plugin-react-native icon indicating copy to clipboard operation
eslint-plugin-react-native copied to clipboard

The 'ecmaFeatures' config file property is deprecated

Open GitTom opened this issue 7 years ago • 4 comments

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.

GitTom avatar Mar 16 '18 21:03 GitTom

I think the solution is to use this instead

  "parserOptions": {
      "ecmaFeatures": {
          "jsx": true,
          "modules": true
      }
  },

GitTom avatar Mar 16 '18 23:03 GitTom

Hi @GitTom, thanks for reporting, feel free to make a PR with an update!

Intellicode avatar Apr 24 '18 20:04 Intellicode

The solution by @GitTom fixed this for me too!

harveylx avatar Jul 17 '18 21:07 harveylx

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.

DanceParty avatar Nov 30 '18 01:11 DanceParty