Xo: Parsing error: Cannot read property ecmaFeatures of undefined when eslint also installed

Created on 9 Jul 2018  路  9Comments  路  Source: xojs/xo

Most helpful comment

Hi @pvdlg , I just ran into this issue too when trying to upgrade eslint to 5.2.0.
Upgrading XO to latest version 0.21.1 didn't help, but manually installing eslint-plugin-node ^7.0 solved the issue: npm install --save-dev --save-exact [email protected]

All 9 comments

I can't upgrade xo in my project (an eslint plugin) because it fails to run: https://github.com/jfmengels/eslint-plugin-lodash-fp/pull/71

I imagine this is because [email protected] is meant to works with eslint@4 and not eslint@5.
The next release of XO will use eslint@5.

But it should use it's own nested copy of eslint

After further investigation the problems disappear when removing the node plugin.
Not sure why yet.

FWIW, the problem also disappears after upgrading eslint-plugin-node from ^6.0.0 to ^7.0.0 for xo. I haven't tested it extensively though, and it's a major version bump.

Thanks for the heads up @mdupont. Nice profile picture btw.

Fixed in #344

Hi @pvdlg , I just ran into this issue too when trying to upgrade eslint to 5.2.0.
Upgrading XO to latest version 0.21.1 didn't help, but manually installing eslint-plugin-node ^7.0 solved the issue: npm install --save-dev --save-exact [email protected]

@pvdlg can you ping me when this is released, so I can update eslint-plugin-lodash-fp?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

sindresorhus picture sindresorhus  路  5Comments

SteveALee picture SteveALee  路  5Comments

pizzafox picture pizzafox  路  7Comments

pizzafox picture pizzafox  路  5Comments

sindresorhus picture sindresorhus  路  8Comments