Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Commit

Permalink
0.9 - npm-naming:require d.ts to match npm version
Browse files Browse the repository at this point in the history
  • Loading branch information
sandersn committed Jul 17, 2019
1 parent a499566 commit 83384d2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
16 changes: 12 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dtslint",
"version": "0.8.0",
"version": "0.9.0",
"description": "Runs tests on TypeScript definition files",
"files": [
"bin",
Expand Down Expand Up @@ -28,7 +28,7 @@
},
"dependencies": {
"definitelytyped-header-parser": "1.2.0",
"dts-critic": "^1.2.0",
"dts-critic": "^2.0.0",
"fs-extra": "^6.0.1",
"request": "^2.88.0",
"strip-json-comments": "^2.0.1",
Expand Down
1 change: 1 addition & 0 deletions src/rules/npmNamingRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function walk(ctx: Lint.WalkContext<void>): void {
// 2. export an error code enum
// 3. add an errorCode property to the exception (or return value)
if (e.message.indexOf("d.ts file must have a matching npm package") > -1 ||
e.message.indexOf("must match a version that exists on npm") > -1 ||
e.message.indexOf("The non-npm package") > -1) {
lookFor("// Type definitions for", e.message);
} else if (e.message.indexOf("export default") > -1) {
Expand Down

0 comments on commit 83384d2

Please sign in to comment.