Closed Sinetheta closed 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.
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.