Skip to content
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

[eslint-config-airbnb-base] DeprecationWarning #1845

Closed
surfaceowl opened this issue Jun 27, 2018 · 3 comments
Closed

[eslint-config-airbnb-base] DeprecationWarning #1845

surfaceowl opened this issue Jun 27, 2018 · 3 comments

Comments

@surfaceowl
Copy link

I'm getting a new warning from eslint-config-airbnb-base after upgrading eslint to 5.0.1

(node:23992) [ESLINT_LEGACY_OBJECT_REST_SPREAD] DeprecationWarning: The 'parserOptions.ecmaFeatures.experimentalObjectRestSpread' option is deprecated. Use 'parserOptions.ecmaVersion' instead. (found in "node_modules\eslint-config-airbnb-base\index.js")

devDependencies

...
    "eslint": "^5.0.1",    
    "eslint-config-airbnb": "^17.0.0",
    "eslint-config-standard": "^12.0.0-alpha.0",
    "eslint-plugin-import": "^2.12.0",
    "eslint-plugin-jsx-a11y": "^6.0.3",
    "eslint-plugin-react": "^7.9.1",
...
@mikeerickson
Copy link

I too am receiving this error, just added eslint-loader to webpack project this morning

Recommended fix?

Use 'parserOptions.ecmaVersion' instead. (found in "airbnb-base")

@ljharb
Copy link
Collaborator

ljharb commented Jun 27, 2018

eslint 5 is not yet compatible with the airbnb config (see #1834) - when npm ls exits nonzero, nothing can be expected to work.

@ljharb ljharb closed this as completed Jun 27, 2018
@mikeerickson
Copy link

@ljharb Awesome, thanks for quick response, I will revert to ESLint 4.x for the time being.

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

3 participants