@forsakringskassan/commitlint-config 1.3.5 → 1.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commitlint.js +4 -3
- package/package.json +1 -1
package/dist/commitlint.js
CHANGED
|
@@ -255439,6 +255439,7 @@ var wildcards = [
|
|
|
255439
255439
|
test(/^((Merge pull request)|(Merge (.*?) into (.*?)|(Merge branch (.*?)))(?:\r?\n)*$)/m),
|
|
255440
255440
|
test(/^(Merge tag (.*?))(?:\r?\n)*$/m),
|
|
255441
255441
|
test(/^(R|r)evert (.*)/),
|
|
255442
|
+
test(/^(R|r)eapply (.*)/),
|
|
255442
255443
|
test(/^(amend|fixup|squash)!/),
|
|
255443
255444
|
isSemver,
|
|
255444
255445
|
test(/^(Merged (.*?)(in|into) (.*)|Merged PR (.*): (.*))/),
|
|
@@ -255861,10 +255862,10 @@ var scopeEnum = ({ scope }, when = "always", value2 = []) => {
|
|
|
255861
255862
|
const isScopeInEnum = (scope2) => enum_default(scope2, value2);
|
|
255862
255863
|
let isValid;
|
|
255863
255864
|
if (when === "never") {
|
|
255864
|
-
isValid = !messageScopes.some(isScopeInEnum);
|
|
255865
|
+
isValid = !messageScopes.some(isScopeInEnum) && !isScopeInEnum(scope);
|
|
255865
255866
|
errorMessage.splice(1, 0, "not");
|
|
255866
255867
|
} else {
|
|
255867
|
-
isValid = messageScopes.every(isScopeInEnum);
|
|
255868
|
+
isValid = messageScopes.every(isScopeInEnum) || isScopeInEnum(scope);
|
|
255868
255869
|
}
|
|
255869
255870
|
return [isValid, message(errorMessage)];
|
|
255870
255871
|
};
|
|
@@ -264394,7 +264395,7 @@ var cli = yargs_default(process.argv.slice(2)).options({
|
|
|
264394
264395
|
},
|
|
264395
264396
|
config: {
|
|
264396
264397
|
alias: "g",
|
|
264397
|
-
description: "path to the config file",
|
|
264398
|
+
description: "path to the config file; result code 9 if config is missing",
|
|
264398
264399
|
type: "string"
|
|
264399
264400
|
},
|
|
264400
264401
|
"print-config": {
|