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

remove deprecated eslint rules #42654

Merged
merged 2 commits into from
Jul 25, 2022

Conversation

kkmuffme
Copy link
Contributor

their replacements are already added (es5.js no-unsafe-negation) or are enabled by default already (jsx-11y label-has-associated-control)

What?

Remove deprecated eslint rules

Why?

Bc they're deprecated

How?

Remove code from config

Testing Instructions

Run eslint with the given config. There is no change in output, since eslint silently ignored the rules already.

their replacements are already added (es5.js no-unsafe-negation) or are enabled by default already (jsx-11y label-has-associated-control)
@github-actions
Copy link

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @kkmuffme! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

@github-actions github-actions bot added the First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository label Jul 23, 2022
@gziolo gziolo added [Package] ESLint plugin /packages/eslint-plugin [Type] Code Quality Issues or PRs that relate to code quality Good First Review A PR that's suitable for someone looking to contribute for the first time by reviewing code labels Jul 23, 2022
Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

Great catch, thank you for the fix.

@gziolo gziolo merged commit 87f40eb into WordPress:trunk Jul 25, 2022
@github-actions
Copy link

Congratulations on your first merged pull request, @kkmuffme! We'd like to credit you for your contribution in the post announcing the next WordPress release, but we can't find a WordPress.org profile associated with your GitHub account. When you have a moment, visit the following URL and click "link your GitHub account" under "GitHub Username" to link your accounts:

https://profiles.wordpress.org/me/profile/edit/

And if you don't have a WordPress.org account, you can create one on this page:

https://login.wordpress.org/register

Kudos!

@github-actions github-actions bot added this to the Gutenberg 13.8 milestone Jul 25, 2022
@afercia
Copy link
Contributor

afercia commented Jul 25, 2022

Worth noting the configuration of the new label-has-associated-control is not equivalent to the one of the previous label-has-for, where it was required to associate labels to inputs by using for/id attributes. As established long time ago, we avoid wrapping labels because old assistive technology may not fully support that.

Will create a follow-up.

@kkmuffme
Copy link
Contributor Author

Definitely. But since that old rule was deprecated for a while now, and the new rule label-has-associated-control is enabled by default with the default config, it means eslint ran with the default config for this rule for months now anyway. This is why I didn't add a specific config as we had before, since the default config has been used now for quite some time.

@desrosj
Copy link
Contributor

desrosj commented Oct 21, 2022

@kkmuffme While collecting props and credits for 6.1, it seems you are one of a few dozen folks that have not connected their WordPress.org account to their GitHub profile.

Could you share your WordPress.org account so that we can ensure you're properly credited on the About page for WordPress 6.1? Connecting your accounts will also help those collecting this in the future. Thanks in advance!

@kkmuffme
Copy link
Contributor Author

Please credit me with my Github username thx.

@desrosj
Copy link
Contributor

desrosj commented Oct 24, 2022

@kkmuffme Unfortunately the way attribution is given for WordPress releases is strictly through wordpress.org accounts. The credits API does not differentiate between credit sources (ie. GitHub, wordpress.org, etc.).

It looks like the same username is unregistered on wordpress.org if you'd like to just use the same username.

@kkmuffme
Copy link
Contributor Author

Thanks, created the account now and linked it to the Github account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
First-time Contributor Pull request opened by a first-time contributor to Gutenberg repository Good First Review A PR that's suitable for someone looking to contribute for the first time by reviewing code [Package] ESLint plugin /packages/eslint-plugin [Type] Code Quality Issues or PRs that relate to code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants