The .meta Directory: Let's Tidy Things Up 🧹🧹🧹

This site exists to advocate that software libraries look for their config files in .meta directories of projects.

This is avoid making a mess in the root directory of projects, as this tweet laments.

If the .meta directory convention was adopted widely, then the following set of files in the root of a project:


    /package.json
    /tsconfig.json
    /.eslintrc
    /.prettierrc
    /.babel.config.js (implied child .babelrc)
    /.webpack.config.js
    /jest.config.js
    /.env
    /docker-compose.yml
    /gitlab-ci.yml
    /.npmrc
    /.editorconfig
    

Could instead all be moved into a single top level .meta directory:


    /.meta
    

Nice & tidy.

Implementation

To implement the .meta standard, a tool looking for its configuration file in directory X and failing to find it should next look in directory X/.meta, if it exists, for that same file.

No other constraint on config file resolution or ordering is placed on a tool.

.meta respectors