-
Notifications
You must be signed in to change notification settings - Fork 139
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
Custom location for .editorconfig #172
Comments
There is not an easy way, unfortunately. This has been discussed --- I'll post the link if I can dig it up. Partly this is by design: You could certainly modify the core included in this plug-in to look in whatever location you wanted. However, I don't think that's something we would add to the released version of the plug-in. Does that answer your question? |
For some editor plugins that are calling an Having said these, I agree with @cxw42 , this is by design. EditorConfig is meant for projects to help maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. If every project uses a different . |
seems related, I would like to have a "default editorconfig" for |
Related discussion: editorconfig/editorconfig#236 . I would personally accept a PR that added an opt-in "fallback .editorconfig" as a plugin option. That would not require any core changes, as far as I know. The semantics would be something like "if no .editorconfig files are found, use the settings in file |
I think this feature is OK. I would suggest a bit attention to the primary goal of the project:
As long as this goal is not jeopardized, I think it's OK (e.g., remind users in the doc). Additionally, @xenoterracide is adding the configuration to your |
I thought about that but the problem is I wanted it sort of a fallback option if it doesn't otherwise find a normal .editorconfig . I'm sure there's a way to hack around it so that I could do that but I definitely don't know how to do it off the top of my head. Unless those already act as fallback options and finding an editorconfig would override them. That wasn't clear from the documentation how that interaction would actually work I kind of assume that the VIM config would take precedence. |
Is there a way to point to a random location for the
.editorconfig
file? In a project I work on, linter configuration files, editor configs, etc are present underresources/dev-helpers
. It would be great to move the.editorconfig
there as well.The text was updated successfully, but these errors were encountered: