-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
📎 .editorconfig
support
#1724
Comments
I think this should be the reverse as prettier is doing. We should certainly convert internally the |
I thought they were doing the opposite. Sounds good to me |
I just ran into this "problem" on my own project and it sounds like a great idea. I feel like it should be using |
Yep, fantomas (for F#) has their config values inside .editorconfig too, and it's quite nice for those overlapping areas of concern. |
Yep, would be great if biome would read the Schematically: => biome user settings win over Might need deep-merges if we have section support for cases like:
|
align biome config to editorconfig until biome supports editorconfig biomejs/biome#1724
I would like to pick this up. It looks like prettier has a separate config option to enable support for |
I believe that option is set to |
A quick status update: I have a working prototype, so I'm going to start cleaning it up a bit and submitting PRs today. |
Todo list of remaining tasks, mostly for myself.
|
Thank you @dyc3 for contributing to close this issue! ⭐ The rewards from this issue, totaling $50, has been shared with you. What now?
If you already have a Polar account setup, you don't need to do anything. |
Well done, @dyc3 ! Thank you :) |
lfg, the future looks bright. imho bimo should also show some kind of warning if |
oh and i think the docs need a fixup |
Do you mean if they have conflicting options? I'm a little confused on what you're looking for. |
I actually like the idea of there being a warning (not error) if there is a conflict between |
I think they mean in case the same option is specified in both places |
Adding to this; In case the same option is specified in both places with non equivalent values. If the values in both places are equivalent I don't think it's worth a warning (maybe still worth logging as something other than warning/error). Also, since there is a documented priority, I don't think a conflict should be an error (ex: errors can fail CI or pre-commit) but a warning makes sense to me. |
I'm not really sure we should have any kind of warning, in any case. The It doesn't make much sense to have a warning in case that's the expected behaviour of the user. Plus, it's possible to fail CI with warnings with a certain option. It could make sense to provide, maybe a verbose, info diagnostic. |
monorepo support without explicit opt-in? |
I am not really sure what you mean, but |
sorry i have no idea. i thought you were suggesting to have biome config nested in a the way i see it biome is a different tool to opt into, a better one. I understand the paradigm of progressive enhancement - for supporting editor application here. i'm just asking if it makes sense here. |
Yes, there are! This very repository is an example. You might have files that Biome can't/doesn't handle, but the editor used by a company can handle them, and format them. In the wild, there might be some esoteric projects where you might have some expected files, e.g.: |
ah, okay that makes perfect sense, i just never formated those so far. thanks for the reply |
So is the Biome formatter supposed to completely support |
Editorconfig support is not enabled by default until 2.0. I think |
I enabled it in the config under formatter using |
@difosfor Experiencing the same issue, can't get the |
@jovand3v Could you open a new issue with a reproduction? That would help a ton. |
Description
We would like to support the
.editorconfig
file.Here's some thoughts about the feature:
.editorconfig
should have higher priority overbiome.json
, but less priority over the CLI optionsauto_search
to query the parent folders until we find onebiome.json
and.editorconfig
can be a different folders, so their resolution should be separateauto_search
to query the parent folders until we find onebiome.json
and.editorconfig
can be a different folders, so their resolution should be separateUpvote & Fund
The text was updated successfully, but these errors were encountered: