Skip to content
Merged
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 packages/dtslint/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,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 of literal exceptions below 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/DefinitelyTyped-tools/pull/381.
*/
function assertPathIsNotBanned(dirPath: string) {
const basedir = basename(dirPath);
if (
Expand Down