Jon Newton

March 4, 2021

(Almost) one config file to rule them all

Each project has a pretty consistent setup and I’m digging the tooling in the Node world (eslint, prettier, etc). The number of dot files and other config chaff is building though…

  • editorconfig
  • eslintignore
  • eslintrc.js
  • prettierignore
  • prettierrc

It becomes a bit tedious to setup a new project each time to the point we’re I’ve started building a script and looking into template repos. I’d prefer to combine everything into package.json since that defines the tools being configured. A hours of reading docs shows that you can get about half-way there currently. All eslint bits and prettierrc can be defined in package.json. For the other files (including prettierignore) you are left with some interesting and sometimes lively discussions:

About Jon Newton

Pandemic programming and beyond! My Link Tree