-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Description
Description
When setting up our project's esllint using @wordpress/eslint-plugin, specified in .eslintrc as per:
"extends": [ "plugin:@wordpress/eslint-plugin/recommended" ],
I get this error notice jsxBracketSameLine is deprecated.
I found that this error notice is Prettier related, and comes from this line in @wordpress/prettier-config
This change is from Prettier 2.4
https://prettier.io/blog/2021/09/09/2.4.0.html
This release renames the jsxBracketSameLine option to bracketSameLine, which supports HTML, Vue, and Angular in addition to JSX. The old name has been deprecated.
@wordpress/prettier-config's config setting needs to be updated
Step-by-step reproduction instructions
Here, we are using @wordpress/eslint-plugin as standalone -- not as part of @wordpress/scripts
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes