public icon indicating copy to clipboard operation
public copied to clipboard

Avoid separate config file

Open kdalgaard opened this issue 10 years ago • 5 comments

I am hesitant to add a wallaby.js config file at the root of my project, since Wallaby isn't technically a dependency of the project and the extra file is simply clutter for developers not using it.

Would it be possible to add a "wallaby" section to package.json instead?

kdalgaard avatar Oct 19 '16 08:10 kdalgaard

I suppose we could add the support for wallaby section in the package.json. However, wallaby.js is a javascript file, and in many cases it contains some code, so expressing it (as a string?) in the package.json may not be an option for many users.

ArtemGovorov avatar Oct 19 '16 08:10 ArtemGovorov

Good point. I wonder whether it would create too much incoherence to have the choice between a wallaby.json (JSON) file and a "wallaby" section in package.json...

kdalgaard avatar Oct 19 '16 08:10 kdalgaard

Which is more prevalent in your user base, a dynamic or a static config?

kdalgaard avatar Oct 19 '16 08:10 kdalgaard

@kdalgaard Most of the config files we see contain code. Only simple scenarios need just a list of files/tests, but (almost) everyone these days needs one or a combo of these: webpack/browserify, some setup code, system.js, babel, jspm, etc, where some (simple, but still) code configuration is required.

ArtemGovorov avatar Oct 19 '16 09:10 ArtemGovorov

Fair point.

kdalgaard avatar Oct 19 '16 09:10 kdalgaard