-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Support .config folder for storing configuration by default #72
Comments
A potential consideration, is it creates ambiguity on whether any markdown files in |
I feel like source files are typically in
I feel like a name of My main problem with this is: For every file that we found (say,
I’m leaning a bit more into thinking that dotfiles should be included by default. Another alternative: I think a symlink for a |
Cross-linking to config-dir proposal. Since this is an egg-and-chicken problem (more tools won't use |
Glad that you're working on this! Appreciated! When is the work done? When .config is supported? Say we have a markdown linter, which has a .xrc config file, should that file when placed in .config apply to markdown in .config, or does it need to be at .config/.config/.xrc? |
For the sake of simplicity I’m just using remark as an example here. The Maybe we should support only that, and also fewer formats. Fewer options means less ambiguity regarding which file is used or which one takes precedence over which one. Just a thought, we could support:
This means removing support for:
Then there’s also the Of course removing support for existing config files would be semver major. |
Cross-referencing this discussion, where support for other projects is tracked. |
Initial checklist
Problem
Project root folders being stuck with a bunch of
.
configs files for various tools,remark
orrehype
being just one of many.As a result, it is harder to find actual source files in the project.
Solution
.config/
is a convention supported by cosmiconfig, and by extension a number command line tools (stylelint
,prettier
,eslint-mdx
, and others).Which allows top level configuration files to be moved out of the root folder and into
.config/
folder, clarifying the intent of the files, and separating source code from configuration files/code.Alternatives
Leave configuration system as it is today, adding notes/recommendations pointing towards either:
remarkConfig
property as a way to combine files--rc-path
a layer of abstraction up in https://github.com/unifiedjs/unified-args#cli to point to the.config
folder on their own.The text was updated successfully, but these errors were encountered: