@commitlint/load
Advanced tools
Comparing version 14.0.0 to 14.1.0
@@ -6,2 +6,14 @@ # Change Log | ||
# [14.1.0](https://github.com/conventional-changelog/commitlint/compare/v14.0.0...v14.1.0) (2021-11-01) | ||
### Features | ||
* extend helpUrl from shareable config ([#2846](https://github.com/conventional-changelog/commitlint/issues/2846)) ([d7e2e2b](https://github.com/conventional-changelog/commitlint/commit/d7e2e2b943be383f99f4000b6b6bed0eab03bfcf)) | ||
* **load:** add support for `.commitlintrc.cjs` and `commitlint.config.cjs` files ([#2797](https://github.com/conventional-changelog/commitlint/issues/2797)) ([fabb495](https://github.com/conventional-changelog/commitlint/commit/fabb49509730609276ff9ef6357536c95a1f6bb1)) | ||
# [14.0.0](https://github.com/conventional-changelog/commitlint/compare/v13.2.1...v14.0.0) (2021-10-26) | ||
@@ -8,0 +20,0 @@ |
@@ -80,5 +80,7 @@ "use strict"; | ||
}, {}); | ||
const helpUrl = typeof config.helpUrl === 'string' | ||
? config.helpUrl | ||
: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint'; | ||
const helpUrl = typeof extended.helpUrl === 'string' | ||
? extended.helpUrl | ||
: typeof config.helpUrl === 'string' | ||
? config.helpUrl | ||
: 'https://github.com/conventional-changelog/commitlint/#what-is-commitlint'; | ||
const prompt = preset.prompt && (0, isPlainObject_1.default)(preset.prompt) ? preset.prompt : {}; | ||
@@ -85,0 +87,0 @@ return { |
@@ -14,2 +14,4 @@ "use strict"; | ||
searchPlaces: [ | ||
// cosmiconfig overrides default searchPlaces if any new search place is added (For e.g. `*.ts` files), | ||
// we need to manually merge default searchPlaces from https://github.com/davidtheclark/cosmiconfig#searchplaces | ||
'package.json', | ||
@@ -20,6 +22,9 @@ `.${moduleName}rc`, | ||
`.${moduleName}rc.yml`, | ||
`.${moduleName}rc.js`, | ||
`.${moduleName}rc.cjs`, | ||
`${moduleName}.config.js`, | ||
`${moduleName}.config.cjs`, | ||
// files supported by TypescriptLoader | ||
`.${moduleName}rc.ts`, | ||
`.${moduleName}rc.js`, | ||
`${moduleName}.config.ts`, | ||
`${moduleName}.config.js`, | ||
], | ||
@@ -26,0 +31,0 @@ loaders: { |
{ | ||
"name": "@commitlint/load", | ||
"version": "14.0.0", | ||
"version": "14.1.0", | ||
"description": "Load shared commitlint configuration", | ||
@@ -46,3 +46,3 @@ "main": "lib/load.js", | ||
"@commitlint/execute-rule": "^14.0.0", | ||
"@commitlint/resolve-extends": "^14.0.0", | ||
"@commitlint/resolve-extends": "^14.1.0", | ||
"@commitlint/types": "^14.0.0", | ||
@@ -56,3 +56,3 @@ "@endemolshinegroup/cosmiconfig-typescript-loader": "^3.0.2", | ||
}, | ||
"gitHead": "0bb3487f8ca0cd8e67977c089f65037ea2c7788b" | ||
"gitHead": "3882bd1680197f0ec4c40e4c9955911e20647488" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
46633
403