npm-package-json-lint
Version:
Configurable linter for package.json files.
9 lines (8 loc) • 431 B
TypeScript
import { PackageJson } from 'type-fest';
import { LintResult } from '../types/lint-result';
import { RuleType } from '../types/rule-type';
import { Severity } from '../types/severity';
export declare const ruleType = RuleType.Array;
export declare const minItems = 1;
export declare const arrayType = "string";
export declare const lint: <T>(packageJsonData: PackageJson | any, severity: Severity, validValues: T[]) => LintResult;