-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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: Use the default WordPress Prettier config when no config found #20509
Comments
Have you tried to follow my comment in your project: skaut/skaut-google-drive-gallery#391 (comment)? |
Hi, |
It seems like everything works as intended. It was an issue with configuration, the full discussion can be found in skaut/skaut-google-drive-gallery#391. |
Hi, I understand the current state as "We don't care how you style your code, but you have to use prettier to do it and configure it yourself" - if that isn't a misunderstanding on my part, I don't get why the plugin would do that? I would like it to either give me a style that is according to WPCS or not lint style at all and leave it up to me.... |
@marekdedic, I see your point. I'm sure we can add a fallback to use the default WordPress Prettier config once #20026 is in place. @ntwb, any plans to finish your PR or should I take it over? In fact, when you use gutenberg/packages/scripts/config/.eslintrc.js Lines 20 to 30 in 79a8016
|
Hi, Thanks |
Noting that #20026 was merged so we have |
#21503 tries to fix the issue. |
Describe the bug
Hi, I have recently upgraded
@wordpress/eslint-plugin
to version 4.0.0. After the update, eslint is telling me to remove spaces from inside parens, and replace ' with ". AFAIK this goes against WPC. I tried raising the issue at Automattic/wp-prettier#16 since I thought this was an issue with wp-prettier. From what I've been told, it's just that prettier isn't configured correctly for WPCS.I haven't been using prettier before, so I would consider this a bug - using eslint-plugin, I would expect to get either no "stylistic" linting or linting in accordance with WPCS.
To reproduce
Steps to reproduce the behavior:
The exact build environment and result can be seen at https://circleci.com/gh/skaut/skaut-google-drive-gallery/3579
Expected behavior
I would expect to get either no "stylistic" linting or linting in accordance with WPCS.
Desktop (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: