Support .config folder for storing configuration by default #72
Open
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Problem
Project root folders being stuck with a bunch of .
configs files for various tools, remark
or rehype
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:
- package.json
remarkConfig
property as a way to combine files - and/or pointing adopters set
--rc-path
a layer of abstraction up in https://github.com/unifiedjs/unified-args#cli to point to the.config
folder on their own.