Code formatting & linting
In Recruitee, enforce correct formatting of our files with js-beautify for all
src/ng2/**/*.html files and prettier for all
We also lint all
**/*.ts files (and components'
.html templates) code style with TSLint, although during the automatic linting, we ignore legacy files listed in
npm install, husky automatically sets up a pre-commit hook in this repository, that will check your code before each commit and fail if it's wrong. If you want to skip the pre-commit hook, you can run
git commit --no-verify.
Additionally, our CI will also check your code with
npm run format-test && npm run lint command and fail if it's badly formatted or its' non-legacy fi