зеркало из https://github.com/microsoft/dtslint.git
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:
Родитель
0754e730d7
Коммит
43859c395c
17
README.md
17
README.md
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче