Skip to content

The 'ecmaFeatures' config file property is deprecated #190

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
GitTom opened this issue Mar 16, 2018 · 4 comments
Open

The 'ecmaFeatures' config file property is deprecated #190

GitTom opened this issue Mar 16, 2018 · 4 comments

Comments

@GitTom
Copy link

GitTom commented Mar 16, 2018

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
Copy link
Author

GitTom commented Mar 16, 2018

I think the solution is to use this instead

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

@Intellicode
Copy link
Owner

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

@harveylx
Copy link

The solution by @GitTom fixed this for me too!

@DanceParty
Copy link
Contributor

DanceParty commented Nov 30, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants