Add documentation about localTs and expectOnly option (#244)

* Add documentation about localTs and expectOnly option

* Update `--expectOnly` description

According to https://github.com/microsoft/dtslint/pull/244#discussion_r312997359

Co-Authored-By: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
This commit is contained in:
Kanitkorn Sujautra 2019-08-14 03:32:14 +09:00 коммит произвёл Nathan Shively-Sanders
Родитель 0754e730d7
Коммит 43859c395c
1 изменённых файлов: 17 добавлений и 0 удалений

Просмотреть файл

@ -118,6 +118,23 @@ For bundled typings, this can go on any line (but should be near the top).
- Add to your `package.json` `scripts`: `"dtslint": "dtslint types"`
- `npm run dtslint`
### Options
- `--localTs`
Use your locally installed version of TypeScript.
```sh
dtslint --localTs node_modules/typescript/lib types
```
- `--expectOnly`
Disable all the lint rules except the one that checks for type correctness.
```sh
dtslint --expectOnly types
```
# Contributing