Sinetheta / blueprintnotincluded

Container for 3 components of blueprintnotincluded.org
https://blueprintnotincluded.org
MIT License
14 stars 4 forks source link

Enforce code style with Prettier #11

Closed Sinetheta closed 1 year ago

Sinetheta commented 1 year ago

Prettier is the recommended code formatting tool for Angular projects https://github.com/angular-eslint/angular-eslint

I've used https://github.com/prettier/eslint-config-prettier to avoid conflicts with eslint.

To help developers I've added https://www.npmjs.com/package/husky for the git hooks and https://www.npmjs.com/package/lint-staged to trigger our linters with the slight wrinkle that https://www.npmjs.com/package/ng-lint-staged is needed to make it play well with ng lint.

This should make it fairly painless to most contributors who probably won't even notice formatting hapenning while they commit.