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

Upgrade jsx-a11y to 6.0.2, enable more jsx-a11y rules #1482

Merged
merged 1 commit into from
Sep 2, 2017

Conversation

wyattdanger
Copy link
Collaborator

Upgrades eslint-plugin-jsx-a11y from 5 to 6, and enables more a11y related rules

@@ -32,10 +32,6 @@ module.exports = {
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/aria-unsupported-elements.md
'jsx-a11y/aria-unsupported-elements': 'error',

// disallow href "#"
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/href-no-hash.md
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this rule was removed in v6

// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md
'jsx-a11y/mouse-events-have-key-events': 'off',
'jsx-a11y/mouse-events-have-key-events': 'error',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we already enable this in our codebase

@@ -110,7 +105,7 @@ module.exports = {
// require onClick be accompanied by onKeyUp/onKeyDown/onKeyPress
// https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/click-events-have-key-events.md
// TODO: enable?
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/click-events-have-key-events': 'error',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we already enable this in our codebase

@ljharb
Copy link
Collaborator

ljharb commented Jul 5, 2017

The airbnb config won't be compatible with v6 of jsx-a11y for awhile; even when we're compatible with eslint v4, we'll still be stuck on v5 for a bit. (#1447)

@wyattdanger
Copy link
Collaborator Author

Closing until later then

@wyattdanger wyattdanger closed this Jul 6, 2017
@wyattdanger wyattdanger deleted the swb--bumpjsx-a11y-6 branch July 6, 2017 00:28
@wyattdanger wyattdanger restored the swb--bumpjsx-a11y-6 branch July 6, 2017 00:35
@wyattdanger wyattdanger reopened this Jul 6, 2017
@ljharb ljharb self-assigned this Jul 24, 2017
@ljharb ljharb mentioned this pull request Jul 24, 2017
6 tasks
@kelset
Copy link

kelset commented Jul 25, 2017

Any update on this, now that 15.1.0 is out?

@ljharb
Copy link
Collaborator

ljharb commented Jul 25, 2017

@kelset it will be included in the next semver-major of eslint-config-airbnb, but i want the latest release to sit for awhile first.

@justinhp
Copy link

@ljharb when will the next semver-major release be released? It's just that it's preventing us from upgrading eslint-plugin-jsx-a11y which in turn makes us unable to upgrade eslint. If it is going to be awhile longer then I can always fork this, no worries there.

@ljharb
Copy link
Collaborator

ljharb commented Aug 14, 2017

@justinhp i'm not sure what you mean; eslint-plugin-jsx-a11y v5 (which this config requires) works fine with any v3 or v4 eslint - so you shouldn't need to upgrade the a11y plugin in order to upgrade eslint.

@justinhp
Copy link

@ljharb thank you! I'm an idiot. I must have gotten confused with the various configs we have. appreciate the help!

@ryansully
Copy link

Once peerDependencies has been updated, will we be able to install eslint-config-airbnb with a simple npm install or yarn add command, rather than the instructions in the package's README?

@ljharb
Copy link
Collaborator

ljharb commented Aug 16, 2017

@ryansully no, that's just the way peer deps work (requiring the install instructions) and that won't ever change until eslint itself comes up with a solution.

@scinos
Copy link

scinos commented Aug 31, 2017

What is the status of this? when will the next semver-major release be released?

@ljharb
Copy link
Collaborator

ljharb commented Aug 31, 2017

@scinos status: not yet.

@inoas
Copy link

inoas commented Sep 1, 2017

So when will this go live?

@ljharb
Copy link
Collaborator

ljharb commented Sep 1, 2017

@inoas same answer: not yet.

@ljharb ljharb merged commit 074b2f8 into airbnb:master Sep 2, 2017
@inoas
Copy link

inoas commented Sep 2, 2017

Whoot, but now the answer is not yet ;-)? <3

Empact added a commit to Empact/zap-desktop that referenced this pull request Jan 1, 2018
Empact added a commit to Empact/zap-desktop that referenced this pull request Jan 2, 2018
Empact added a commit to Empact/zap-desktop that referenced this pull request Jan 5, 2018
Empact added a commit to Empact/zap-desktop that referenced this pull request Jan 8, 2018
derekstavis pushed a commit to pagarme/former-kit that referenced this pull request Jan 29, 2018
  eslint-plugin-jsx-a11y remains on 5 because of
  airbnb/javascript#1482
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants