Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,15 @@ function assertPathIsInDefinitelyTyped(dirPath: string): void {
}
}

/**
* Starting at some point in time, npm has banned all new packages whose names
* contain the word `download`. However, some older packages exist that still
* contain this name.
* @NOTE for contributors: The list below list should ONLY be extended with
* packages for which there already exists a corresponding type definition
* package in the `@types` scope. More information:
* https://github.com/microsoft/dtslint/pull/351.
*/
function assertPathIsNotBanned(dirPath: string) {
const basedir = basename(dirPath);
if (/(^|\W)download($|\W)/.test(basedir) &&
Expand Down