Skip to content

[RFR] Pre-commit hooks - #3306

Merged
fzaninotto merged 4 commits into
masterfrom
precommit-hooks
Jun 8, 2019
Merged

fzaninotto merged 4 commits into
masterfrom
precommit-hooks

Conversation

@djhi

@djhi djhi commented Jun 5, 2019

Copy link
Copy Markdown
Contributor

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!

@djhi
djhi force-pushed the precommit-hooks branch from 4b0e25d to fe3ec26 Compare June 6, 2019 17:05
@fzaninotto

Copy link
Copy Markdown
Member

Can you rebase?

@djhi
djhi force-pushed the precommit-hooks branch from fe3ec26 to 36b3723 Compare June 7, 2019 07:33
Comment thread Makefile
Comment thread package.json
Comment thread Makefile Outdated

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor 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