Skip to content

Conversation

chrishulton
Copy link
Contributor

Addresses #271

The greenkeeper jsx-a11y upgrade to 5.0.0 is breaking compatibility with base configs such as airbnb. That is because they incorporated breaking changes such as rule renames.

I'm not sure why this was even allowed as an upgrade, given running bin/yarn on master outputs unmet dependency warnings:

[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "eslint-config-airbnb@14.1.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@^3.0.2 || ^4.0.0".
warning "eslint-config-react-app@0.6.2" has incorrect peer dependency "eslint-plugin-jsx-a11y@^2.0.0 || ^3.0.0 || ^4.0.0".
[4/4] Building fresh packages...
Done in 12.83s.

We should hold off on the 5.0.0 upgrade until the base packages are upgraded to support 5.0.0. The previous version (4.0.0) has no dependency warnings.

Chriss-MacBook-Pro:codeclimate-eslint chrishulton$ bin/yarn upgrade eslint-plugin-jsx-a11y@^4.0.0
yarn upgrade v0.21.3
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 3 new dependencies.
├─ aria-query@0.3.0
├─ eslint-plugin-jsx-a11y@4.0.0
└─ jsx-ast-utils@1.4.0
Done in 10.26s.

@chrishulton chrishulton requested a review from maxjacobson May 11, 2017 14:48
Copy link
Contributor

@dblandin dblandin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, I think this is the right move until we can upgrade our vendored shared configs.

@dblandin
Copy link
Contributor

cc/ @abbyarmada

@abbyarmada
Copy link
Contributor

We've been getting a lot of inbound about the "Definition for rule 'jsx-a11y/img-has-alt' was not found Issue so this would be great. :)

@chrishulton chrishulton merged commit 4bf859b into master May 11, 2017
@chrishulton chrishulton deleted the chris/revert-jsx-a11y-5 branch May 11, 2017 15:36
Gargron pushed a commit to mastodon/mastodon that referenced this pull request May 19, 2017
In Code Climate, eslint-plugin-jsx-a11y v4.0.0 is used.
Therefore, it seems that a warning is displayed.

ref codeclimate/codeclimate-eslint#273
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

Successfully merging this pull request may close these issues.

3 participants