fix: explicitly enable curly
in configs that include prettier
#293
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.
curly
is disabled byeslint-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 fromeslint-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
.