Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
awebdeveloper authored May 12, 2017
1 parent af3ea48 commit db1d999
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,19 @@ For Tslint: see https://github.com/palantir/tslint
### Using Tslint with pre-commit

Add this to your `.pre-commit-config.yaml`:
```yaml

- repo: git://github.com/awebdeveloper/pre-commit-tslint/
sha: '' # Use the sha or tag you want to point at
hooks:
- id: tslint
additional_dependencies: ['tslint@5.0.0']

```
To use with ```tslint-eslint-rules``` include it as additional_dependencies

To check type or if linter complaints of type (but this will slow down your commit)
```
```yaml
hooks:
- id: tslint
args: ['--project','tsconfig.json','--type-check']
Expand Down

0 comments on commit db1d999

Please # to comment.