Skip to content
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

Extract Jest, Prettier, commitlint, Husky... configuration from package.json #283

Open
tkrotoff opened this issue Feb 23, 2019 · 0 comments

Comments

@tkrotoff
Copy link

Make them independent .js files with @ts-check (or .ts files if easily possible):

  • jest.config.js
  • jest.setup.ts
  • babel.config.js
  • .browserslistrc
  • prettier.config.js
  • .prettierignore
  • .huskyrc.js
  • commitlint.config.js
  • tslint.json
  • .eslintrc.js
  • ...

  • This way you don't a fatty package.json that does multiple unrelated things
  • You can add comments in .js files
  • You can check the .js files with TypeScript and/or a linter
  • One file does one thing, ala UNIX philosophy

Downside is that you have multiple root files, well that's how JavaScript development is nowadays.

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

1 participant