Skip to content

[PROPOSAL] Support a "ava.config.js" file to make config portable #1626

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

Closed
danawoodman opened this issue Jan 3, 2018 · 1 comment
Closed

Comments

@danawoodman
Copy link

Description

I propose that ava support a configuration file (e.g. ava.config.js) which is similar to the package.json configuration. This file would make it more obvious where configuration lives as well as making it more portable since the ava.config.jsfile could just be copied over to a new project; no editing of package.json needed. Plus, it's a bit of good marketing since people looking at the source of a project would notice the config file. Win-win-win.

There is a great package, cosmiconfig, which allows for both package.json config, ava.config.js and a .avarc file depending on the user's preferences. Prettier just added it and it makes adoption a lot easier for the end user.

Relevant Links

@danawoodman danawoodman changed the title [PROPOSAL] Support a ava.config.js file to make config portable [PROPOSAL] Support a "ava.config.js" file to make config portable Jan 3, 2018
@sindresorhus
Copy link
Member

Duplicate of #520

@sindresorhus sindresorhus marked this as a duplicate of #520 Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants