We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ccb573 commit 1ed6a62Copy full SHA for 1ed6a62
src/index.ts
@@ -234,6 +234,15 @@ function assertPathIsInDefinitelyTyped(dirPath: string): void {
234
}
235
236
237
+/**
238
+ * Starting at some point in time, npm has banned all new packages whose names
239
+ * contain the word `download`. However, some older packages exist that still
240
+ * contain this name.
241
+ * @NOTE for contributors: The list below list should ONLY be extended with
242
+ * packages for which there already exists a corresponding type definition
243
+ * package in the `@types` scope. More information:
244
+ * https://github.com/microsoft/dtslint/pull/351.
245
+ */
246
function assertPathIsNotBanned(dirPath: string) {
247
const basedir = basename(dirPath);
248
if (/(^|\W)download($|\W)/.test(basedir) &&
0 commit comments