npm-package-json-lint
Advanced tools
Comparing version 5.2.3 to 5.2.4
@@ -23,5 +23,20 @@ interface LintIssue { | ||
type Severity = 'error' | 'warning' | 'off'; | ||
type RuleConfig = Severity | [Severity, ...any[]]; | ||
type RuleSet = Record<string, RuleConfig>; | ||
interface NpmPackageJsonLintConfig { | ||
extends?: string | string[]; | ||
rules?: RuleSet; | ||
overrides: { | ||
patterns: string[]; | ||
rules: RuleSet; | ||
}[]; | ||
} | ||
type NpmPackageJsonLintOptions = { | ||
cwd?: string; | ||
config?: object; | ||
config?: NpmPackageJsonLintConfig; | ||
configFile?: string; | ||
@@ -55,3 +70,5 @@ configBaseDirectory?: string; | ||
LinterResult, | ||
LintIssue | ||
LintIssue, | ||
Severity, | ||
NpmPackageJsonLintConfig | ||
}; |
{ | ||
"name": "npm-package-json-lint", | ||
"version": "5.2.3", | ||
"version": "5.2.4", | ||
"description": "Configurable linter for package.json files.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
142909
4016