You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR upgrades ESLint to the latest version for Gutenberg and @wordpress/scripts. ESLint upgrade is itself a minor version upgrade. However, some plugins and config used contain breaking changes which means that overall it's going to be a major version bump for two packages as listed.
@wordpress/eslint-plugin
Breaking Changes:
The bundled eslint-config-prettier dependency has been updated from requiring ^6.10.1 to requiring ^7.1.0.
The bundled eslint-plugin-jest dependency has been updated from requiring ^23.8.2 to requiring ^24.1.3.
Enhancements:
The bundled eslint-plugin-jsdoc dependency has been updated from requiring ^30.2.2 to requiring ^30.7.13.
The bundled eslint-plugin-jsx-a11y dependency has been updated from requiring ^6.2.3 to requiring ^6.4.1.
The bundled eslint-plugin-prettier dependency has been updated from requiring ^3.1.2 to requiring ^3.3.0.
The bundled eslint-plugin-react dependency has been updated from requiring ^7.20.0 to requiring ^7.22.0.
The bundled eslint-plugin-react-hooks dependency has been updated from requiring ^4.0.4 to requiring ^4.2.0.
@wordpress/scripts
Breaking Changes:
The bundled @wordpress/eslint-plugin dependency has been updated to the next major version ^8.0.0. There are new ESLint rules enabled in the recommended config used by lint-js command.
Enhancements:
The bundled eslint dependency has been updated from requiring ^7.1.0 to requiring ^7.17.0.
How has this been tested?
npm run lint-js
Types of changes
Checklist:
My code is tested.
My code follows the WordPress code style.
My code follows the accessibility standards.
My code has proper inline documentation.
I've included developer documentation if appropriate.
I've updated all React Native files affected by any refactorings/renamings in this PR.
gb-mobile uses metro as a packager/resolver with a custom config and now it seems eslint-plugin-import is not able to resolve those packages that live under gutenberg/node_modules anymore.
We're thinking of adding a custom resolver to eslint-plugin-import via .eslintrc.js, so it resolves the packages the way that metro does, and see if maybe we can leverage metro-resolver.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR upgrades ESLint to the latest version for Gutenberg and
@wordpress/scripts. ESLint upgrade is itself a minor version upgrade. However, some plugins and config used contain breaking changes which means that overall it's going to be a major version bump for two packages as listed.@wordpress/eslint-pluginBreaking Changes:
eslint-config-prettierdependency has been updated from requiring^6.10.1to requiring^7.1.0.eslint-plugin-jestdependency has been updated from requiring^23.8.2to requiring^24.1.3.Enhancements:
eslint-plugin-jsdocdependency has been updated from requiring^30.2.2to requiring^30.7.13.eslint-plugin-jsx-a11ydependency has been updated from requiring^6.2.3to requiring^6.4.1.eslint-plugin-prettierdependency has been updated from requiring^3.1.2to requiring^3.3.0.eslint-plugin-reactdependency has been updated from requiring^7.20.0to requiring^7.22.0.eslint-plugin-react-hooksdependency has been updated from requiring^4.0.4to requiring^4.2.0.@wordpress/scriptsBreaking Changes:
@wordpress/eslint-plugindependency has been updated to the next major version^8.0.0. There are new ESLint rules enabled in the recommended config used bylint-jscommand.Enhancements:
eslintdependency has been updated from requiring^7.1.0to requiring^7.17.0.How has this been tested?
npm run lint-jsTypes of changes
Checklist: