eslint-plugin-n 15.3.0 → 15.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -26,6 +26,12 @@ exports.checkPublish = function checkPublish(context, filePath, targets) {
|
|
|
26
26
|
return
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
+
// Private packages are never published so we don't need to check the imported dependencies either.
|
|
30
|
+
// More information: https://docs.npmjs.com/cli/v8/configuring-npm/package-json#private
|
|
31
|
+
if (packageInfo.private === true) {
|
|
32
|
+
return
|
|
33
|
+
}
|
|
34
|
+
|
|
29
35
|
const allowed = new Set(getAllowModules(context))
|
|
30
36
|
const convertPath = getConvertPath(context)
|
|
31
37
|
const basedir = path.dirname(packageInfo.filePath)
|