eslint ignore

merge-requests/11/head
Matthew 2020-05-03 14:59:35 -04:00
parent 62b4533f57
commit 98c73ca2e9
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ export default class NPM extends Command {
license = data.license; license = data.license;
} }
let dependencies: string = 'None'; let dependencies: string = 'None';
// eslint-disable-next-line no-prototype-builtins
if (version !== 'Unknown' && data.versions[version].hasOwnProperty('dependencies') && Object.keys(data.versions[version].dependencies).length > 0) { if (version !== 'Unknown' && data.versions[version].hasOwnProperty('dependencies') && Object.keys(data.versions[version].dependencies).length > 0) {
dependencies = Object.keys(data.versions[version].dependencies).join(', '); dependencies = Object.keys(data.versions[version].dependencies).join(', ');
} }