Skip to content

Commit c2a54d7

Browse files
bradzacherJamesHenry
authored andcommitted
[CHORE] Add yarn check to precommit (typescript-eslint#207)
https://yarnpkg.com/lang/en/docs/cli/check/#toc-yarn-check-verify-tree `yarn check` will ensure that your dependencies are up-to-date before committing. This ensures that when you raise a PR, travis will not fail due to an error introduced in a new version of a tool.
1 parent 64b3365 commit c2a54d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/eslint-plugin-typescript/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
},
5050
"husky": {
5151
"hooks": {
52-
"pre-commit": "yarn lint && yarn test && yarn docs:check && lint-staged"
52+
"pre-commit": "yarn check --verify-tree && yarn lint && yarn format-check && yarn test && yarn docs:check && lint-staged"
5353
}
5454
},
5555
"engines": {

0 commit comments

Comments
 (0)