npm-package-json-lint
Version:
Configurable linter for package.json files.
2 lines • 500 B
JavaScript
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./lint-issue.js`),t=require(`./type.js`),n=`scripts-type`,r=`scripts`,i=(i,a)=>{if(!t.r(i,r))return new e.t(n,a,r,`Type should be an Object`);if(i.hasOwnProperty(r)){let t=i[r];for(let i in t)if(t.hasOwnProperty(i)&&typeof t[i]!=`string`)return new e.t(n,a,r,`script, ${i}, in the "scripts" property is not a string.`)}return null};exports.lint=i,exports.ruleType=`standard`;
//# sourceMappingURL=scripts-type.js.map