-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add prettier dependency to @wordpress/eslint-plugin #20028
Conversation
@@ -33,6 +33,7 @@ | |||
"eslint-plugin-react": "^7.14.3", | |||
"eslint-plugin-react-hooks": "^1.6.1", | |||
"globals": "^12.0.0", | |||
"prettier": "npm:[email protected]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to commit lock-file changes. |
I think we need to take some time to test the configuration combinations that See also 0a96d2c Edit: Discussion is also on the agenda for todays #core-js chat in Slack shortly |
How so? |
@epiqueras I'm not seeing a lock file in the root directory of this package so I wasn't sure it's required. Please confirm. |
It's at the root of the repo (Lerna hoisting). Just run |
The lock file needs to b updated using Lerna, not See: https://github.com/WordPress/gutenberg/tree/master/packages#adding-new-dependencies Though I'm not sure how Lerna will handle the npm alias /shrug
|
Both work. |
Let's follow the docs please @epiqueras, Lerna has idiosyncratic behaviour that lends to having the lock file out of date, the docs were written to mitigate this scenario as much as possible from past expereinces |
Lock file updated in 2026a60 |
It looks good as far as I can tell. In the lock, there is only one line updated which means the same version is shared 👍 @kasparsd, thanks for catching and proposing the fix. We didn't test ESLint plugin in isolation :) |
I thought we had a Does that sound good? I can open a PR. cc @aduth |
* The recommended ruleset now requires prettier * Sync the lock file
Description
Fixes #20027.
In #19963 we added
eslint-plugin-prettier
as a dependency to@wordpress/eslint-plugin
in f5c44ea which requiresprettier
as a peer dependency.How has this been tested?
Checklist: