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

eslint-plugin: Include WordPress plugin in React ruleset #18457

merged 1 commit into from Nov 12, 2019


Copy link

aduth commented Nov 12, 2019

Fixes #17635

This pull request resolves an issue where using the React ruleset may cause an error, since the configured rules references a custom WordPress rule, without also including the plugin in the plugins array. Any reference to our custom rules in rulesets must also include plugins: [ '@wordpress' ], for when those rulesets are used in isolation.

See custom.js:

plugins: [

Testing Instructions:

Repeat steps to reproduce from #17635, verifying that no error occurs.

Copy link

jorgefilipecosta left a comment


@aduth aduth merged commit d4ee580 into master Nov 12, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
@aduth aduth deleted the fix/17635-eslint-extend-custom-rules branch Nov 12, 2019
@youknowriad youknowriad added this to the Gutenberg 7.0 milestone Nov 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.