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

fix: explicitly enable curly in configs that include prettier #293

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

G-Rath
Copy link
Contributor

@G-Rath G-Rath commented Oct 12, 2023

curly is disabled by eslint-config-prettier as some of its configuration can conflict with Prettier; we enable it in our standard config in a way that is compatible but it's not in our tech-specific configs that do extend from eslint-config-prettier - since these configs are meant to come after our standard config, curly ends up getting completely disabled.

Because of how rules and configs currently work the main way to address this is by explicitly enabling the rule in each config - even though technically this rule isn't specific to the technologies each config is about, it's completely autofixable and I think it's reasonable to assume they'll be used with our standard config so I've gone with that.

This should not be needed once ESLint moves to using flat configs because we can just filter this rule out when importing eslint-config-prettier.

@G-Rath G-Rath added the bug Something isn't working label Oct 12, 2023
@G-Rath G-Rath requested review from a team and removed request for a team October 12, 2023 21:01
Copy link

@nzlaura nzlaura left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me 😄

@G-Rath G-Rath merged commit 496a4fa into main Oct 22, 2023
10 checks passed
@G-Rath G-Rath deleted the always-enable-curly branch October 22, 2023 21:22
github-actions bot pushed a commit that referenced this pull request Oct 22, 2023
## [3.2.1](v3.2.0...v3.2.1) (2023-10-22)

### Bug Fixes

* explicitly enable `curly` in configs that include `prettier` ([#293](#293)) ([496a4fa](496a4fa))
@github-actions
Copy link

🎉 This PR is included in version 3.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants