I have always placed different "tooling configurations" in their own files in my front-end projects.
For example: babel in babel.config.js
, jest in jest.config.js
, eslint in an .eslintrc.json
, etc.
I have noticed recently however that it is possible to place many of these configurations directly in a projects package.json
file instead.
I did some digging around online and asked a few colleagues but no-one can seem to give me a definitive answer as to why one might prefer one approach over the other.
Is it purely a matter of preference?