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

[RFR] Pre-commit hooks #3306

Merged
merged 4 commits into from
Jun 8, 2019
Merged

[RFR] Pre-commit hooks #3306

merged 4 commits into from
Jun 8, 2019

Conversation

djhi
Copy link
Collaborator

@djhi djhi commented Jun 5, 2019

Follow #3304
We currently refuse some pull requests because of linting/formatting issues far too often.

This PR leverage husky and lint-staged to run prettier and tslint on every modified files. Besides, it also run the unit tests related to those files, and only those, ensuring a fast feedback loop without having to wait for a Travis build only to realize you forgot to run the tests for your changes. Thanks Jest!

@fzaninotto
Copy link
Member

Can you rebase?

Makefile Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Makefile Outdated
@@ -117,7 +117,8 @@ test-unit: ## launch unit tests
fi

test-unit-watch: ## launch unit tests and watch for changes
yarn -s test-unit --watch
echo "Running unit tests in CI..."; \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, not necessarily in CI

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Damn copy/paste!

@fzaninotto fzaninotto merged commit a238abf into master Jun 8, 2019
@fzaninotto fzaninotto deleted the precommit-hooks branch June 8, 2019 15:13
@fzaninotto fzaninotto added this to the v2.9.3 milestone Jun 8, 2019
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

Successfully merging this pull request may close these issues.

2 participants