@commitlint/lint
Advanced tools
Comparing version 19.0.3 to 19.1.0
@@ -48,3 +48,6 @@ import util from 'util'; | ||
const names = [...allRules.keys()]; | ||
throw new RangeError(`Found invalid rule names: ${missing.join(', ')}. Supported rule names are: ${names.join(', ')}`); | ||
throw new RangeError([ | ||
`Found rules without implementation: ${missing.join(', ')}.`, | ||
`Supported rules are: ${names.join(', ')}.`, | ||
].join('\n')); | ||
} | ||
@@ -103,4 +106,4 @@ const invalid = Object.entries(rulesConfig) | ||
const results = (await Promise.all(pendingResults)).filter((result) => result !== null); | ||
const errors = results.filter((result) => result.level === 2 && !result.valid); | ||
const warnings = results.filter((result) => result.level === 1 && !result.valid); | ||
const errors = results.filter((result) => result.level === RuleConfigSeverity.Error && !result.valid); | ||
const warnings = results.filter((result) => result.level === RuleConfigSeverity.Warning && !result.valid); | ||
const valid = errors.length === 0; | ||
@@ -107,0 +110,0 @@ return { |
{ | ||
"name": "@commitlint/lint", | ||
"type": "module", | ||
"version": "19.0.3", | ||
"version": "19.1.0", | ||
"description": "Lint a string against commitlint rules", | ||
@@ -48,3 +48,3 @@ "main": "lib/lint.js", | ||
}, | ||
"gitHead": "9b4ac34069e06cd327760ce37adbde8d537d8e3e" | ||
"gitHead": "8d7a3d5d49ab77733e166cb5f195b1b7f277b4a7" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14035
128