UNPKG

npm-package-json-lint

Version:
19 lines (18 loc) 842 B
import { n as Severity } from "./lint-issue.js"; import { t as LintResult } from "./lint-result.js"; import { PackageJson } from "type-fest"; //#region src/rules/valid-values-name-scope.d.ts declare const ruleType = RuleType.Array; declare const minItems = 1; /** * Lints package.json file to check for valid scope values in the name field * * @param {Object} packageJsonData Valid package.json object * @param {String} severity 'error' or 'warning' * @param {Array} validValues An array of valid values * @return {Object|Boolean} LintIssue object if invalid. True if valid */ declare const lint: (packageJsonData: PackageJson | any, severity: Severity, validValues: string[]) => LintResult; //#endregion export { lint, minItems, ruleType }; //# sourceMappingURL=valid-values-name-scope.d.ts.map