Update README.md (#38247)

* Update README.md

* Update README.md
This commit is contained in:
Orta
2019-09-09 19:01:32 +02:00
committed by GitHub
parent 22bfbf1ce8
commit 09209d6c8c
+8 -4
View File
@@ -16,7 +16,8 @@ Also see the [definitelytyped.org](http://definitelytyped.org) website, although
* [Create a new package](#create-a-new-package)
* [Common mistakes](#common-mistakes)
* [Removing a package](#removing-a-package)
* [Lint](#lint)
* [Linter](#lint)
* [Verifying](#verifying)
* [FAQ](#faq)
## Current status
@@ -205,7 +206,7 @@ When you add a `package.json` to dependents of `foo`, you will also need to open
If a package was never on Definitely Typed, it does not need to be added to `notNeededPackages.json`.
#### Lint
#### Linter
All new packages must be linted. To lint a package, add a `tslint.json` to that package containing
```js
@@ -240,8 +241,11 @@ f("one");
For more details, see [dtslint](https://github.com/Microsoft/dtslint#write-tests) readme.
Test by running `npm run lint package-name` where `package-name` is the name of your package.
This script uses [dtslint](https://github.com/Microsoft/dtslint).
## Verifying
Test your changes by running `npm run lint package-name` where `package-name` is the name of your package.
This script uses [dtslint](https://github.com/Microsoft/dtslint) to run the TypeScript compiler against your dts files.
## FAQ