@commitlint/config-patternplate
Advanced tools
Comparing version 18.6.1 to 19.0.0
15
index.js
@@ -1,5 +0,7 @@ | ||
const glob = require('glob'); | ||
const path = require('path'); | ||
const merge = require('lodash.merge'); | ||
import path from 'path'; | ||
import configAngular from '@commitlint/config-angular'; | ||
import {glob} from 'glob'; | ||
import merge from 'lodash.merge'; | ||
function pathToId(root, filePath) { | ||
@@ -10,9 +12,10 @@ const relativePath = path.relative(root, filePath); | ||
function getPatternIDs() { | ||
async function getPatternIDs() { | ||
const root = path.resolve(process.cwd(), './patterns'); | ||
const pattern = path.resolve(root, '**/pattern.json'); | ||
return glob.sync(pattern).map((result) => pathToId(root, result)); | ||
const files = glob(pattern); | ||
return files.map((result) => pathToId(root, result)); | ||
} | ||
module.exports = merge(require('@commitlint/config-angular'), { | ||
export default merge(configAngular, { | ||
rules: { | ||
@@ -19,0 +22,0 @@ 'scope-enum': () => |
{ | ||
"name": "@commitlint/config-patternplate", | ||
"version": "18.6.1", | ||
"type": "module", | ||
"version": "19.0.0", | ||
"description": "Lint your commits, patternplate-style", | ||
@@ -33,11 +34,11 @@ "files": [ | ||
"dependencies": { | ||
"@commitlint/config-angular": "^18.6.1", | ||
"glob": "^8.0.3", | ||
"@commitlint/config-angular": "^19.0.0", | ||
"glob": "^10.3.10", | ||
"lodash.merge": "^4.6.2" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/utils": "^18.6.1", | ||
"@commitlint/utils": "^19.0.0", | ||
"@types/lodash.merge": "^4.6.8" | ||
}, | ||
"gitHead": "89f5bf91d1c11b1f457a6f0d99b8ea34583a9311" | ||
"gitHead": "f1ff12159d627ee63bf8982ab02e6cca8f10b09f" | ||
} |
@@ -1,5 +0,5 @@ | ||
> Lint your commits, patternplate-style | ||
# @commitlint/config-patternplate | ||
Lint your commits, patternplate-style | ||
Shareable `commitlint` config enforcing the patternplate commit convention. | ||
@@ -30,2 +30,2 @@ Use with [@commitlint/cli](../cli) and [@commitlint/prompt-cli](../prompt-cli). | ||
Consult [docs/rules](https://conventional-changelog.github.io/commitlint/#/reference-rules) for a list of available rules. | ||
Consult [Rules reference](https://commitlint.js.org/reference/rules) for a list of available rules. |
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
3847
20
Yes
+ Added@commitlint/config-angular@19.6.0(transitive)
+ Added@commitlint/config-angular-type-enum@19.5.0(transitive)
+ Added@isaacs/cliui@8.0.2(transitive)
+ Added@pkgjs/parseargs@0.11.0(transitive)
+ Addedansi-regex@5.0.16.1.0(transitive)
+ Addedansi-styles@4.3.06.2.1(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcross-spawn@7.0.6(transitive)
+ Addedeastasianwidth@0.2.0(transitive)
+ Addedemoji-regex@8.0.09.2.2(transitive)
+ Addedforeground-child@3.3.0(transitive)
+ Addedglob@10.4.5(transitive)
+ Addedis-fullwidth-code-point@3.0.0(transitive)
+ Addedisexe@2.0.0(transitive)
+ Addedjackspeak@3.4.3(transitive)
+ Addedlru-cache@10.4.3(transitive)
+ Addedminimatch@9.0.5(transitive)
+ Addedminipass@7.1.2(transitive)
+ Addedpackage-json-from-dist@1.0.1(transitive)
+ Addedpath-key@3.1.1(transitive)
+ Addedpath-scurry@1.11.1(transitive)
+ Addedshebang-command@2.0.0(transitive)
+ Addedshebang-regex@3.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
+ Addedstring-width@4.2.35.1.2(transitive)
+ Addedstrip-ansi@6.0.17.1.0(transitive)
+ Addedwhich@2.0.2(transitive)
+ Addedwrap-ansi@7.0.08.1.0(transitive)
- Removed@commitlint/config-angular@18.6.1(transitive)
- Removed@commitlint/config-angular-type-enum@18.6.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@8.1.0(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@5.1.6(transitive)
- Removedonce@1.4.0(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedglob@^10.3.10