Closed urbanlegion closed 6 years ago
This is because the latest version of eslint (4.0.0) is incompatible with the airbnb and jsx-a11y plugins. I was able to fix it by installing eslint@3.19.0.
So do
yarn remove eslint
then
yarn add --dev eslint@3.19.0
Exactly, let's hope for a fix soon :) In the meantime, stick to 3.19.0
!
eslint-config-airbnb
still doesn't support ESLint 4 but eslint-config-airbnb-base
does. In the next version of the tutorial I'll use it.
See: https://github.com/airbnb/javascript/issues/1447#issuecomment-317335861
yarn test
fails with linting error: Unexpected top-level property "ecmaFeatures".here is the the full error:
env: win10 / XAMPP using powershell
I think it would be an issue coming from my install process? Since I can't use the linux one line:
npm info eslint-config-airbnb@latest peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs yarn add --dev eslint-config-airbnb@latest
I had to install separately. As follows:Did I miss anything here? thx