feat: adding linter for commits
This commit is contained in:
400
node_modules/@commitlint/load/CHANGELOG.md
generated
vendored
Normal file
400
node_modules/@commitlint/load/CHANGELOG.md
generated
vendored
Normal file
@ -0,0 +1,400 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
# [15.0.0](https://github.com/conventional-changelog/commitlint/compare/v14.2.0...v15.0.0) (2021-11-17)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **types:** fix signature of QualifiedRuleConfig for async configurations ([#2868](https://github.com/conventional-changelog/commitlint/issues/2868)) ([#2869](https://github.com/conventional-changelog/commitlint/issues/2869)) ([c7f355b](https://github.com/conventional-changelog/commitlint/commit/c7f355b25e5baddab0b9559892f5ce4112e4f93a))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* simplify config resolution ([#2398](https://github.com/conventional-changelog/commitlint/issues/2398)) ([8a8384f](https://github.com/conventional-changelog/commitlint/commit/8a8384f3c18954447cb633e76a573e1db71a1440)), closes [#327](https://github.com/conventional-changelog/commitlint/issues/327)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [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)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [13.2.1](https://github.com/conventional-changelog/commitlint/compare/v13.2.0...v13.2.1) (2021-10-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **load:** added a direct dependency on typescript ([#2785](https://github.com/conventional-changelog/commitlint/issues/2785)) ([9c17f8d](https://github.com/conventional-changelog/commitlint/commit/9c17f8d423404b484f72df41358a18bd90014ecd)), closes [EndemolShineGroup/cosmiconfig-typescript-loader#147](https://github.com/EndemolShineGroup/cosmiconfig-typescript-loader/issues/147) [#2779](https://github.com/conventional-changelog/commitlint/issues/2779)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **types:** user config prompt ([6d7a1c4](https://github.com/conventional-changelog/commitlint/commit/6d7a1c40e2f8a8ff22595e0e17f71f3702b0699c))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **load:** add cosmiconfig typescript loader ([b65aced](https://github.com/conventional-changelog/commitlint/commit/b65acedc3334a859811762539ec8716de3e73f85))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24)
|
||||
|
||||
|
||||
* chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* minimum node version is 12
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [12.1.0](https://github.com/conventional-changelog/commitlint/compare/v12.0.1...v12.1.0) (2021-03-06)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **load:** use `Rule | AsyncRule | SyncRule` as rule value type in `Plugin` ([#2146](https://github.com/conventional-changelog/commitlint/issues/2146)) ([75b67b8](https://github.com/conventional-changelog/commitlint/commit/75b67b8fb7fc4df21267b98f0c9daeeb1130b824))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency execa to v4.1.0 ([#2251](https://github.com/conventional-changelog/commitlint/issues/2251)) ([b5743dd](https://github.com/conventional-changelog/commitlint/commit/b5743dd1e49bbe7eac03f34bc38c59df5fbaf2a0))
|
||||
* update dependency execa to v5 ([#2341](https://github.com/conventional-changelog/commitlint/issues/2341)) ([f349df9](https://github.com/conventional-changelog/commitlint/commit/f349df90f08096a9bcad46b5e55b411aac327a24))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **load:** allow specifying helpUrl via config ([#2180](https://github.com/conventional-changelog/commitlint/issues/2180)) ([d6795a3](https://github.com/conventional-changelog/commitlint/commit/d6795a3c4633ba6efd7a0fcff48339dc291cd832))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency cosmiconfig to v7 ([#2044](https://github.com/conventional-changelog/commitlint/issues/2044)) ([f4db933](https://github.com/conventional-changelog/commitlint/commit/f4db93324698ea39528be0d2692151546c2b5517))
|
||||
* update dependency execa to v4 ([#1936](https://github.com/conventional-changelog/commitlint/issues/1936)) ([8efb441](https://github.com/conventional-changelog/commitlint/commit/8efb44193058d286f7325327a6d33936b273ec91))
|
||||
|
||||
|
||||
* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999)
|
||||
|
||||
|
||||
### BREAKING CHANGES
|
||||
|
||||
* remove node 8 from circle-ci checks
|
||||
|
||||
also remove node 13 because we do not support experimental versions
|
||||
|
||||
* docs: update node v10 to latest LTS 10 version
|
||||
|
||||
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
||||
|
||||
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **load:** resolve plugins from extended configs ([#1976](https://github.com/conventional-changelog/commitlint/issues/1976)) ([d0f0eb9](https://github.com/conventional-changelog/commitlint/commit/d0f0eb9fde7efc2dff7a3aad190ded14303d3079))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update dependency chalk to v4 ([#1275](https://github.com/conventional-changelog/commitlint/issues/1275)) ([a5d8fa1](https://github.com/conventional-changelog/commitlint/commit/a5d8fa118e8221361f14f5fd2b21d7aaad008a27))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* add local plugins support ([#1692](https://github.com/conventional-changelog/commitlint/issues/1692)) ([7b29c48](https://github.com/conventional-changelog/commitlint/commit/7b29c48321b513e091849fbb2cc2bf0e6ebb94a6))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* [#840](https://github.com/conventional-changelog/commitlint/issues/840) add caret to lodash versions ([#843](https://github.com/conventional-changelog/commitlint/issues/843)) ([ffc0bac](https://github.com/conventional-changelog/commitlint/commit/ffc0bac26993acb2ab6a8fa51065f93c92b0d644))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [8.3.5](https://github.com/conventional-changelog/commitlint/compare/v8.3.4...v8.3.5) (2020-01-15)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [8.3.4](https://github.com/conventional-changelog/commitlint/compare/v8.3.3...v8.3.4) (2020-01-03)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [8.3.1](https://github.com/conventional-changelog/commitlint/compare/v8.3.0...v8.3.1) (2019-10-16)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* **load:** resolve nested parser preset factories ([#831](https://github.com/conventional-changelog/commitlint/issues/831)) ([73a7df7](https://github.com/conventional-changelog/commitlint/commit/73a7df7))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.3.0](https://github.com/conventional-changelog/commitlint/compare/v8.2.0...v8.3.0) (2019-10-16)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **config-conventional:** use parser with short breaking change support ([#821](https://github.com/conventional-changelog/commitlint/issues/821)) ([4b5300a](https://github.com/conventional-changelog/commitlint/commit/4b5300a))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.2.0](https://github.com/conventional-changelog/commitlint/compare/v8.1.0...v8.2.0) (2019-09-16)
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [8.1.0](https://github.com/conventional-changelog/commitlint/compare/v8.0.0...v8.1.0) (2019-07-15)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* add explicit dependency on chalk ([#687](https://github.com/conventional-changelog/commitlint/issues/687)) ([9075844](https://github.com/conventional-changelog/commitlint/commit/9075844))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [7.6.1](https://github.com/conventional-changelog/commitlint/compare/v7.6.0...v7.6.1) (2019-05-09)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* handle absolute config paths correctly [#647](https://github.com/conventional-changelog/commitlint/issues/647) ([49b3a77](https://github.com/conventional-changelog/commitlint/commit/49b3a77))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [7.6.0](https://github.com/conventional-changelog/commitlint/compare/v7.5.2...v7.6.0) (2019-05-06)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* remove unneeded dev dependency ([6ccaf79](https://github.com/conventional-changelog/commitlint/commit/6ccaf79))
|
||||
* update cosmiconfig to safe >=5 [#599](https://github.com/conventional-changelog/commitlint/issues/599) ([f186fcb](https://github.com/conventional-changelog/commitlint/commit/f186fcb))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* adds support for plugins ([#228](https://github.com/conventional-changelog/commitlint/issues/228)) ([#588](https://github.com/conventional-changelog/commitlint/issues/588)) ([cea4564](https://github.com/conventional-changelog/commitlint/commit/cea4564))
|
||||
* config based is-ignored overrides ([#595](https://github.com/conventional-changelog/commitlint/issues/595)) ([2434d71](https://github.com/conventional-changelog/commitlint/commit/2434d71))
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.5.0"></a>
|
||||
# [7.5.0](https://github.com/conventional-changelog/commitlint/compare/v7.4.0...v7.5.0) (2019-01-31)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* all broken website references ([#564](https://github.com/conventional-changelog/commitlint/issues/564)) ([82eeb5a](https://github.com/conventional-changelog/commitlint/commit/82eeb5a))
|
||||
* replace all repository references with conventional changelog ([#561](https://github.com/conventional-changelog/commitlint/issues/561)) ([6c3afcd](https://github.com/conventional-changelog/commitlint/commit/6c3afcd))
|
||||
* replace all website references with conventional changelog ([#563](https://github.com/conventional-changelog/commitlint/issues/563)) ([6b86fb1](https://github.com/conventional-changelog/commitlint/commit/6b86fb1))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.3.1"></a>
|
||||
## [7.3.1](https://github.com/conventional-changelog/commitlint/compare/v7.3.0...v7.3.1) (2019-01-11)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
<a name="7.3.0"></a>
|
||||
# [7.3.0](https://github.com/conventional-changelog/commitlint/compare/v7.2.1...v7.3.0) (2019-01-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* update to security-patched dependency versions ([97c033b](https://github.com/conventional-changelog/commitlint/commit/97c033b))
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* check stage before entering prompt ([#495](https://github.com/conventional-changelog/commitlint/issues/495)) ([3b3667a](https://github.com/conventional-changelog/commitlint/commit/3b3667a)), closes [#51](https://github.com/conventional-changelog/commitlint/issues/51) [#51](https://github.com/conventional-changelog/commitlint/issues/51)
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.2.1"></a>
|
||||
## [7.2.1](https://github.com/conventional-changelog/commitlint/compare/v7.2.0...v7.2.1) (2018-10-11)
|
||||
|
||||
|
||||
### Bug Fixes
|
||||
|
||||
* improve format module resolving ([#464](https://github.com/conventional-changelog/commitlint/issues/464)) ([baed8b1](https://github.com/conventional-changelog/commitlint/commit/baed8b1))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.2.0"></a>
|
||||
# [7.2.0](https://github.com/conventional-changelog/commitlint/compare/v7.1.2...v7.2.0) (2018-10-05)
|
||||
|
||||
|
||||
### Features
|
||||
|
||||
* **load:** add formatter option with default value ([b0e63d9](https://github.com/conventional-changelog/commitlint/commit/b0e63d9))
|
||||
|
||||
|
||||
|
||||
|
||||
<a name="7.1.2"></a>
|
||||
## [7.1.2](https://github.com/conventional-changelog/commitlint/compare/v7.1.1...v7.1.2) (2018-09-04)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
||||
|
||||
<a name="6.1.1"></a>
|
||||
## [6.1.1](https://github.com/conventional-changelog/commitlint/compare/v6.1.0...v6.1.1) (2018-02-22)
|
||||
|
||||
|
||||
|
||||
|
||||
**Note:** Version bump only for package @commitlint/load
|
20
node_modules/@commitlint/load/README.md
generated
vendored
Normal file
20
node_modules/@commitlint/load/README.md
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
> Load shared commitlint configuration
|
||||
|
||||
# @commitlint/load
|
||||
|
||||
## Getting started
|
||||
|
||||
```shell
|
||||
npm install --save-dev @commitlint/load
|
||||
```
|
||||
|
||||
## Example
|
||||
|
||||
```js
|
||||
const load = require('@commitlint/load').default;
|
||||
|
||||
load({extends: ['./package']}).then((config) => console.log(config));
|
||||
// => { extends: ['./package', './package-b'], rules: {} }
|
||||
```
|
||||
|
||||
Consult [docs/api](https://conventional-changelog.github.io/commitlint/#/reference-api) for comprehensive documentation.
|
3
node_modules/@commitlint/load/lib/load.d.ts
generated
vendored
Normal file
3
node_modules/@commitlint/load/lib/load.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import { LoadOptions, QualifiedConfig, UserConfig } from '@commitlint/types';
|
||||
export default function load(seed?: UserConfig, options?: LoadOptions): Promise<QualifiedConfig>;
|
||||
//# sourceMappingURL=load.d.ts.map
|
1
node_modules/@commitlint/load/lib/load.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/load.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":"AAEA,OAAO,EACN,WAAW,EACX,eAAe,EAGf,UAAU,EACV,MAAM,mBAAmB,CAAC;AAW3B,wBAA8B,IAAI,CACjC,IAAI,GAAE,UAAe,EACrB,OAAO,GAAE,WAAgB,GACvB,OAAO,CAAC,eAAe,CAAC,CA6F1B"}
|
89
node_modules/@commitlint/load/lib/load.js
generated
vendored
Normal file
89
node_modules/@commitlint/load/lib/load.js
generated
vendored
Normal file
@ -0,0 +1,89 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const execute_rule_1 = __importDefault(require("@commitlint/execute-rule"));
|
||||
const resolve_extends_1 = __importDefault(require("@commitlint/resolve-extends"));
|
||||
const isPlainObject_1 = __importDefault(require("lodash/isPlainObject"));
|
||||
const merge_1 = __importDefault(require("lodash/merge"));
|
||||
const uniq_1 = __importDefault(require("lodash/uniq"));
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const resolve_from_1 = __importDefault(require("resolve-from"));
|
||||
const load_config_1 = require("./utils/load-config");
|
||||
const load_parser_opts_1 = require("./utils/load-parser-opts");
|
||||
const load_plugin_1 = __importDefault(require("./utils/load-plugin"));
|
||||
const pick_config_1 = require("./utils/pick-config");
|
||||
async function load(seed = {}, options = {}) {
|
||||
const cwd = typeof options.cwd === 'undefined' ? process.cwd() : options.cwd;
|
||||
const loaded = await (0, load_config_1.loadConfig)(cwd, options.file);
|
||||
const base = loaded && loaded.filepath ? path_1.default.dirname(loaded.filepath) : cwd;
|
||||
// TODO: validate loaded.config against UserConfig type
|
||||
// Might amount to breaking changes, defer until 9.0.0
|
||||
// Merge passed config with file based options
|
||||
const config = (0, pick_config_1.pickConfig)((0, merge_1.default)({
|
||||
extends: [],
|
||||
plugins: [],
|
||||
rules: {},
|
||||
}, loaded ? loaded.config : null, seed));
|
||||
// Resolve parserPreset key
|
||||
if (typeof config.parserPreset === 'string') {
|
||||
const resolvedParserPreset = (0, resolve_from_1.default)(base, config.parserPreset);
|
||||
config.parserPreset = {
|
||||
name: config.parserPreset,
|
||||
path: resolvedParserPreset,
|
||||
parserOpts: require(resolvedParserPreset),
|
||||
};
|
||||
}
|
||||
// Resolve extends key
|
||||
const extended = (0, resolve_extends_1.default)(config, {
|
||||
prefix: 'commitlint-config',
|
||||
cwd: base,
|
||||
parserPreset: config.parserPreset,
|
||||
});
|
||||
if (!extended.formatter || typeof extended.formatter !== 'string') {
|
||||
extended.formatter = '@commitlint/format';
|
||||
}
|
||||
let plugins = {};
|
||||
if (Array.isArray(extended.plugins)) {
|
||||
(0, uniq_1.default)(extended.plugins || []).forEach((plugin) => {
|
||||
if (typeof plugin === 'string') {
|
||||
plugins = (0, load_plugin_1.default)(plugins, plugin, process.env.DEBUG === 'true');
|
||||
}
|
||||
else {
|
||||
plugins.local = plugin;
|
||||
}
|
||||
});
|
||||
}
|
||||
const rules = (await Promise.all(Object.entries(extended.rules || {}).map((entry) => (0, execute_rule_1.default)(entry)))).reduce((registry, item) => {
|
||||
// type of `item` can be null, but Object.entries always returns key pair
|
||||
const [key, value] = item;
|
||||
registry[key] = value;
|
||||
return registry;
|
||||
}, {});
|
||||
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 = extended.prompt && (0, isPlainObject_1.default)(extended.prompt) ? extended.prompt : {};
|
||||
return {
|
||||
extends: Array.isArray(extended.extends)
|
||||
? extended.extends
|
||||
: typeof extended.extends === 'string'
|
||||
? [extended.extends]
|
||||
: [],
|
||||
// Resolve config-relative formatter module
|
||||
formatter: resolve_from_1.default.silent(base, extended.formatter) || extended.formatter,
|
||||
// Resolve parser-opts from preset
|
||||
parserPreset: await (0, load_parser_opts_1.loadParserOpts)(extended.parserPreset),
|
||||
ignores: extended.ignores,
|
||||
defaultIgnores: extended.defaultIgnores,
|
||||
plugins: plugins,
|
||||
rules: rules,
|
||||
helpUrl: helpUrl,
|
||||
prompt,
|
||||
};
|
||||
}
|
||||
exports.default = load;
|
||||
//# sourceMappingURL=load.js.map
|
1
node_modules/@commitlint/load/lib/load.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/load.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"load.js","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":"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"}
|
7
node_modules/@commitlint/load/lib/utils/load-config.d.ts
generated
vendored
Normal file
7
node_modules/@commitlint/load/lib/utils/load-config.d.ts
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
export interface LoadConfigResult {
|
||||
config: unknown;
|
||||
filepath: string;
|
||||
isEmpty?: boolean;
|
||||
}
|
||||
export declare function loadConfig(cwd: string, configPath?: string): Promise<LoadConfigResult | null>;
|
||||
//# sourceMappingURL=load-config.d.ts.map
|
1
node_modules/@commitlint/load/lib/utils/load-config.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/load-config.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"load-config.d.ts","sourceRoot":"","sources":["../../src/utils/load-config.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,gBAAgB;IAChC,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAsB,UAAU,CAC/B,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,MAAM,GACjB,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAmClC"}
|
43
node_modules/@commitlint/load/lib/utils/load-config.js
generated
vendored
Normal file
43
node_modules/@commitlint/load/lib/utils/load-config.js
generated
vendored
Normal file
@ -0,0 +1,43 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.loadConfig = void 0;
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const cosmiconfig_1 = require("cosmiconfig");
|
||||
const cosmiconfig_typescript_loader_1 = __importDefault(require("@endemolshinegroup/cosmiconfig-typescript-loader"));
|
||||
async function loadConfig(cwd, configPath) {
|
||||
const moduleName = 'commitlint';
|
||||
const explorer = (0, cosmiconfig_1.cosmiconfig)(moduleName, {
|
||||
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',
|
||||
`.${moduleName}rc`,
|
||||
`.${moduleName}rc.json`,
|
||||
`.${moduleName}rc.yaml`,
|
||||
`.${moduleName}rc.yml`,
|
||||
`.${moduleName}rc.js`,
|
||||
`.${moduleName}rc.cjs`,
|
||||
`${moduleName}.config.js`,
|
||||
`${moduleName}.config.cjs`,
|
||||
// files supported by TypescriptLoader
|
||||
`.${moduleName}rc.ts`,
|
||||
`${moduleName}.config.ts`,
|
||||
],
|
||||
loaders: {
|
||||
'.ts': cosmiconfig_typescript_loader_1.default,
|
||||
},
|
||||
});
|
||||
const explicitPath = configPath ? path_1.default.resolve(cwd, configPath) : undefined;
|
||||
const explore = explicitPath ? explorer.load : explorer.search;
|
||||
const searchPath = explicitPath ? explicitPath : cwd;
|
||||
const local = await explore(searchPath);
|
||||
if (local) {
|
||||
return local;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
exports.loadConfig = loadConfig;
|
||||
//# sourceMappingURL=load-config.js.map
|
1
node_modules/@commitlint/load/lib/utils/load-config.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/load-config.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"load-config.js","sourceRoot":"","sources":["../../src/utils/load-config.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AACxB,6CAAwC;AACxC,qHAAgF;AAQzE,KAAK,UAAU,UAAU,CAC/B,GAAW,EACX,UAAmB;IAEnB,MAAM,UAAU,GAAG,YAAY,CAAC;IAChC,MAAM,QAAQ,GAAG,IAAA,yBAAW,EAAC,UAAU,EAAE;QACxC,YAAY,EAAE;YACb,uGAAuG;YACvG,gHAAgH;YAChH,cAAc;YACd,IAAI,UAAU,IAAI;YAClB,IAAI,UAAU,SAAS;YACvB,IAAI,UAAU,SAAS;YACvB,IAAI,UAAU,QAAQ;YACtB,IAAI,UAAU,OAAO;YACrB,IAAI,UAAU,QAAQ;YACtB,GAAG,UAAU,YAAY;YACzB,GAAG,UAAU,aAAa;YAE1B,sCAAsC;YACtC,IAAI,UAAU,OAAO;YACrB,GAAG,UAAU,YAAY;SACzB;QACD,OAAO,EAAE;YACR,KAAK,EAAE,uCAAgB;SACvB;KACD,CAAC,CAAC;IAEH,MAAM,YAAY,GAAG,UAAU,CAAC,CAAC,CAAC,cAAI,CAAC,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5E,MAAM,OAAO,GAAG,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;IAC/D,MAAM,UAAU,GAAG,YAAY,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,CAAC;IACrD,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IAExC,IAAI,KAAK,EAAE;QACV,OAAO,KAAK,CAAC;KACb;IAED,OAAO,IAAI,CAAC;AACb,CAAC;AAtCD,gCAsCC"}
|
3
node_modules/@commitlint/load/lib/utils/load-parser-opts.d.ts
generated
vendored
Normal file
3
node_modules/@commitlint/load/lib/utils/load-parser-opts.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import { ParserPreset } from '@commitlint/types';
|
||||
export declare function loadParserOpts(pendingParser: string | ParserPreset | Promise<ParserPreset> | undefined): Promise<ParserPreset | undefined>;
|
||||
//# sourceMappingURL=load-parser-opts.d.ts.map
|
1
node_modules/@commitlint/load/lib/utils/load-parser-opts.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/load-parser-opts.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"load-parser-opts.d.ts","sourceRoot":"","sources":["../../src/utils/load-parser-opts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAc/C,wBAAsB,cAAc,CACnC,aAAa,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,GAAG,SAAS,GACtE,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAsDnC"}
|
51
node_modules/@commitlint/load/lib/utils/load-parser-opts.js
generated
vendored
Normal file
51
node_modules/@commitlint/load/lib/utils/load-parser-opts.js
generated
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.loadParserOpts = void 0;
|
||||
function isObjectLike(obj) {
|
||||
return Boolean(obj) && typeof obj === 'object'; // typeof null === 'object'
|
||||
}
|
||||
function isParserOptsFunction(obj) {
|
||||
return typeof obj.parserOpts === 'function';
|
||||
}
|
||||
async function loadParserOpts(pendingParser) {
|
||||
if (!pendingParser || typeof pendingParser !== 'object') {
|
||||
return undefined;
|
||||
}
|
||||
// Await for the module, loaded with require
|
||||
const parser = await pendingParser;
|
||||
// exit early, no opts to resolve
|
||||
if (!parser.parserOpts) {
|
||||
return parser;
|
||||
}
|
||||
// Pull nested parserOpts, might happen if overwritten with a module in main config
|
||||
if (typeof parser.parserOpts === 'object') {
|
||||
// Await parser opts if applicable
|
||||
parser.parserOpts = await parser.parserOpts;
|
||||
if (isObjectLike(parser.parserOpts) &&
|
||||
isObjectLike(parser.parserOpts.parserOpts)) {
|
||||
parser.parserOpts = parser.parserOpts.parserOpts;
|
||||
}
|
||||
return parser;
|
||||
}
|
||||
// Create parser opts from factory
|
||||
if (isParserOptsFunction(parser) &&
|
||||
typeof parser.name === 'string' &&
|
||||
parser.name.startsWith('conventional-changelog-')) {
|
||||
return new Promise((resolve) => {
|
||||
const result = parser.parserOpts((_, opts) => {
|
||||
resolve(Object.assign(Object.assign({}, parser), { parserOpts: opts === null || opts === void 0 ? void 0 : opts.parserOpts }));
|
||||
});
|
||||
// If result has data or a promise, the parser doesn't support factory-init
|
||||
// due to https://github.com/nodejs/promises-debugging/issues/16 it just quits, so let's use this fallback
|
||||
if (result) {
|
||||
Promise.resolve(result).then((opts) => {
|
||||
resolve(Object.assign(Object.assign({}, parser), { parserOpts: opts === null || opts === void 0 ? void 0 : opts.parserOpts }));
|
||||
});
|
||||
}
|
||||
return;
|
||||
});
|
||||
}
|
||||
return parser;
|
||||
}
|
||||
exports.loadParserOpts = loadParserOpts;
|
||||
//# sourceMappingURL=load-parser-opts.js.map
|
1
node_modules/@commitlint/load/lib/utils/load-parser-opts.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/load-parser-opts.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"load-parser-opts.js","sourceRoot":"","sources":["../../src/utils/load-parser-opts.ts"],"names":[],"mappings":";;;AAEA,SAAS,YAAY,CAAC,GAAY;IACjC,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,2BAA2B;AAC5E,CAAC;AAED,SAAS,oBAAoB,CAC5B,GAAM;IAIN,OAAO,OAAO,GAAG,CAAC,UAAU,KAAK,UAAU,CAAC;AAC7C,CAAC;AAEM,KAAK,UAAU,cAAc,CACnC,aAAwE;IAExE,IAAI,CAAC,aAAa,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;QACxD,OAAO,SAAS,CAAC;KACjB;IACD,4CAA4C;IAC5C,MAAM,MAAM,GAAG,MAAM,aAAa,CAAC;IAEnC,iCAAiC;IACjC,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE;QACvB,OAAO,MAAM,CAAC;KACd;IAED,mFAAmF;IACnF,IAAI,OAAO,MAAM,CAAC,UAAU,KAAK,QAAQ,EAAE;QAC1C,kCAAkC;QAClC,MAAM,CAAC,UAAU,GAAG,MAAM,MAAM,CAAC,UAAU,CAAC;QAC5C,IACC,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC;YAC/B,YAAY,CAAC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,EACzC;YACD,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC;SACjD;QACD,OAAO,MAAM,CAAC;KACd;IAED,kCAAkC;IAClC,IACC,oBAAoB,CAAC,MAAM,CAAC;QAC5B,OAAO,MAAM,CAAC,IAAI,KAAK,QAAQ;QAC/B,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,yBAAyB,CAAC,EAChD;QACD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC9B,MAAM,MAAM,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,CAAQ,EAAE,IAAS,EAAE,EAAE;gBACxD,OAAO,iCACH,MAAM,KACT,UAAU,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,UAAU,IAC3B,CAAC;YACJ,CAAC,CAAC,CAAC;YAEH,2EAA2E;YAC3E,0GAA0G;YAC1G,IAAI,MAAM,EAAE;gBACX,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE;oBACrC,OAAO,iCACH,MAAM,KACT,UAAU,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,UAAU,IAC3B,CAAC;gBACJ,CAAC,CAAC,CAAC;aACH;YACD,OAAO;QACR,CAAC,CAAC,CAAC;KACH;IAED,OAAO,MAAM,CAAC;AACf,CAAC;AAxDD,wCAwDC"}
|
3
node_modules/@commitlint/load/lib/utils/load-plugin.d.ts
generated
vendored
Normal file
3
node_modules/@commitlint/load/lib/utils/load-plugin.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import { PluginRecords } from '@commitlint/types';
|
||||
export default function loadPlugin(plugins: PluginRecords, pluginName: string, debug?: boolean): PluginRecords;
|
||||
//# sourceMappingURL=load-plugin.d.ts.map
|
1
node_modules/@commitlint/load/lib/utils/load-plugin.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/load-plugin.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"load-plugin.d.ts","sourceRoot":"","sources":["../../src/utils/load-plugin.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAEhD,MAAM,CAAC,OAAO,UAAU,UAAU,CACjC,OAAO,EAAE,aAAa,EACtB,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,OAAe,GACpB,aAAa,CA8Df"}
|
61
node_modules/@commitlint/load/lib/utils/load-plugin.js
generated
vendored
Normal file
61
node_modules/@commitlint/load/lib/utils/load-plugin.js
generated
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const path_1 = __importDefault(require("path"));
|
||||
const chalk_1 = __importDefault(require("chalk"));
|
||||
const plugin_naming_1 = require("./plugin-naming");
|
||||
const plugin_errors_1 = require("./plugin-errors");
|
||||
function loadPlugin(plugins, pluginName, debug = false) {
|
||||
const longName = (0, plugin_naming_1.normalizePackageName)(pluginName);
|
||||
const shortName = (0, plugin_naming_1.getShorthandName)(longName);
|
||||
let plugin = null;
|
||||
if (pluginName.match(/\s+/u)) {
|
||||
throw new plugin_errors_1.WhitespacePluginError(pluginName, {
|
||||
pluginName: longName,
|
||||
});
|
||||
}
|
||||
const pluginKey = longName === pluginName ? shortName : pluginName;
|
||||
if (!plugins[pluginKey]) {
|
||||
try {
|
||||
plugin = require(longName);
|
||||
}
|
||||
catch (pluginLoadErr) {
|
||||
try {
|
||||
// Check whether the plugin exists
|
||||
require.resolve(longName);
|
||||
}
|
||||
catch (error) {
|
||||
// If the plugin can't be resolved, display the missing plugin error (usually a config or install error)
|
||||
console.error(chalk_1.default.red(`Failed to load plugin ${longName}.`));
|
||||
const message = (error === null || error === void 0 ? void 0 : error.message) || 'Unknown error occurred';
|
||||
throw new plugin_errors_1.MissingPluginError(pluginName, message, {
|
||||
pluginName: longName,
|
||||
commitlintPath: path_1.default.resolve(__dirname, '../..'),
|
||||
});
|
||||
}
|
||||
// Otherwise, the plugin exists and is throwing on module load for some reason, so print the stack trace.
|
||||
throw pluginLoadErr;
|
||||
}
|
||||
// This step is costly, so skip if debug is disabled
|
||||
if (debug) {
|
||||
const resolvedPath = require.resolve(longName);
|
||||
let version = null;
|
||||
try {
|
||||
version = require(`${longName}/package.json`).version;
|
||||
}
|
||||
catch (e) {
|
||||
// Do nothing
|
||||
}
|
||||
const loadedPluginAndVersion = version
|
||||
? `${longName}@${version}`
|
||||
: `${longName}, version unknown`;
|
||||
console.log(chalk_1.default.blue(`Loaded plugin ${pluginName} (${loadedPluginAndVersion}) (from ${resolvedPath})`));
|
||||
}
|
||||
plugins[pluginKey] = plugin;
|
||||
}
|
||||
return plugins;
|
||||
}
|
||||
exports.default = loadPlugin;
|
||||
//# sourceMappingURL=load-plugin.js.map
|
1
node_modules/@commitlint/load/lib/utils/load-plugin.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/load-plugin.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"load-plugin.js","sourceRoot":"","sources":["../../src/utils/load-plugin.ts"],"names":[],"mappings":";;;;;AAAA,gDAAwB;AACxB,kDAA0B;AAC1B,mDAAuE;AACvE,mDAA0E;AAG1E,SAAwB,UAAU,CACjC,OAAsB,EACtB,UAAkB,EAClB,QAAiB,KAAK;IAEtB,MAAM,QAAQ,GAAG,IAAA,oCAAoB,EAAC,UAAU,CAAC,CAAC;IAClD,MAAM,SAAS,GAAG,IAAA,gCAAgB,EAAC,QAAQ,CAAC,CAAC;IAC7C,IAAI,MAAM,GAAG,IAAI,CAAC;IAElB,IAAI,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QAC7B,MAAM,IAAI,qCAAqB,CAAC,UAAU,EAAE;YAC3C,UAAU,EAAE,QAAQ;SACpB,CAAC,CAAC;KACH;IAED,MAAM,SAAS,GAAG,QAAQ,KAAK,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC;IAEnE,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE;QACxB,IAAI;YACH,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;SAC3B;QAAC,OAAO,aAAa,EAAE;YACvB,IAAI;gBACH,kCAAkC;gBAClC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;aAC1B;YAAC,OAAO,KAAU,EAAE;gBACpB,wGAAwG;gBACxG,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,yBAAyB,QAAQ,GAAG,CAAC,CAAC,CAAC;gBAE/D,MAAM,OAAO,GAAG,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,KAAI,wBAAwB,CAAC;gBAC3D,MAAM,IAAI,kCAAkB,CAAC,UAAU,EAAE,OAAO,EAAE;oBACjD,UAAU,EAAE,QAAQ;oBACpB,cAAc,EAAE,cAAI,CAAC,OAAO,CAAC,SAAS,EAAE,OAAO,CAAC;iBAChD,CAAC,CAAC;aACH;YAED,yGAAyG;YACzG,MAAM,aAAa,CAAC;SACpB;QAED,oDAAoD;QACpD,IAAI,KAAK,EAAE;YACV,MAAM,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAE/C,IAAI,OAAO,GAAG,IAAI,CAAC;YAEnB,IAAI;gBACH,OAAO,GAAG,OAAO,CAAC,GAAG,QAAQ,eAAe,CAAC,CAAC,OAAO,CAAC;aACtD;YAAC,OAAO,CAAC,EAAE;gBACX,aAAa;aACb;YAED,MAAM,sBAAsB,GAAG,OAAO;gBACrC,CAAC,CAAC,GAAG,QAAQ,IAAI,OAAO,EAAE;gBAC1B,CAAC,CAAC,GAAG,QAAQ,mBAAmB,CAAC;YAElC,OAAO,CAAC,GAAG,CACV,eAAK,CAAC,IAAI,CACT,iBAAiB,UAAU,KAAK,sBAAsB,WAAW,YAAY,GAAG,CAChF,CACD,CAAC;SACF;QAED,OAAO,CAAC,SAAS,CAAC,GAAG,MAAM,CAAC;KAC5B;IAED,OAAO,OAAO,CAAC;AAChB,CAAC;AAlED,6BAkEC"}
|
2
node_modules/@commitlint/load/lib/utils/pick-config.d.ts
generated
vendored
Normal file
2
node_modules/@commitlint/load/lib/utils/pick-config.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
export declare const pickConfig: (input: unknown) => Record<string, unknown>;
|
||||
//# sourceMappingURL=pick-config.d.ts.map
|
1
node_modules/@commitlint/load/lib/utils/pick-config.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/pick-config.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"pick-config.d.ts","sourceRoot":"","sources":["../../src/utils/pick-config.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,UAAW,OAAO,KAAG,OAAO,MAAM,EAAE,OAAO,CAYhE,CAAC"}
|
10
node_modules/@commitlint/load/lib/utils/pick-config.js
generated
vendored
Normal file
10
node_modules/@commitlint/load/lib/utils/pick-config.js
generated
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.pickConfig = void 0;
|
||||
const pick_1 = __importDefault(require("lodash/pick"));
|
||||
const pickConfig = (input) => (0, pick_1.default)(input, 'extends', 'rules', 'plugins', 'parserPreset', 'formatter', 'ignores', 'defaultIgnores', 'helpUrl', 'prompt');
|
||||
exports.pickConfig = pickConfig;
|
||||
//# sourceMappingURL=pick-config.js.map
|
1
node_modules/@commitlint/load/lib/utils/pick-config.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/pick-config.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"pick-config.js","sourceRoot":"","sources":["../../src/utils/pick-config.ts"],"names":[],"mappings":";;;;;;AAAA,uDAA+B;AAExB,MAAM,UAAU,GAAG,CAAC,KAAc,EAA2B,EAAE,CACrE,IAAA,cAAI,EACH,KAAK,EACL,SAAS,EACT,OAAO,EACP,SAAS,EACT,cAAc,EACd,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,SAAS,EACT,QAAQ,CACR,CAAC;AAZU,QAAA,UAAU,cAYpB"}
|
13
node_modules/@commitlint/load/lib/utils/plugin-errors.d.ts
generated
vendored
Normal file
13
node_modules/@commitlint/load/lib/utils/plugin-errors.d.ts
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
export declare class WhitespacePluginError extends Error {
|
||||
__proto__: ErrorConstructor;
|
||||
messageTemplate: string;
|
||||
messageData: any;
|
||||
constructor(pluginName?: string, data?: any);
|
||||
}
|
||||
export declare class MissingPluginError extends Error {
|
||||
__proto__: ErrorConstructor;
|
||||
messageTemplate: string;
|
||||
messageData: any;
|
||||
constructor(pluginName?: string, errorMessage?: string, data?: any);
|
||||
}
|
||||
//# sourceMappingURL=plugin-errors.d.ts.map
|
1
node_modules/@commitlint/load/lib/utils/plugin-errors.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/plugin-errors.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"plugin-errors.d.ts","sourceRoot":"","sources":["../../src/utils/plugin-errors.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAsB,SAAQ,KAAK;IAC/C,SAAS,mBAAS;IAEX,eAAe,EAAE,MAAM,CAAsB;IAC7C,WAAW,EAAE,GAAG,CAAM;gBAEjB,UAAU,CAAC,EAAE,MAAM,EAAE,IAAI,GAAE,GAAQ;CAO/C;AAED,qBAAa,kBAAmB,SAAQ,KAAK;IAC5C,SAAS,mBAAS;IAEX,eAAe,EAAE,MAAM,CAAoB;IAC3C,WAAW,EAAE,GAAG,CAAC;gBAEZ,UAAU,CAAC,EAAE,MAAM,EAAE,YAAY,GAAE,MAAW,EAAE,IAAI,GAAE,GAAQ;CAO1E"}
|
25
node_modules/@commitlint/load/lib/utils/plugin-errors.js
generated
vendored
Normal file
25
node_modules/@commitlint/load/lib/utils/plugin-errors.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.MissingPluginError = exports.WhitespacePluginError = void 0;
|
||||
class WhitespacePluginError extends Error {
|
||||
constructor(pluginName, data = {}) {
|
||||
super(`Whitespace found in plugin name '${pluginName}'`);
|
||||
this.__proto__ = Error;
|
||||
this.messageTemplate = 'whitespace-found';
|
||||
this.messageData = {};
|
||||
this.messageData = data;
|
||||
Object.setPrototypeOf(this, WhitespacePluginError.prototype);
|
||||
}
|
||||
}
|
||||
exports.WhitespacePluginError = WhitespacePluginError;
|
||||
class MissingPluginError extends Error {
|
||||
constructor(pluginName, errorMessage = '', data = {}) {
|
||||
super(`Failed to load plugin ${pluginName}: ${errorMessage}`);
|
||||
this.__proto__ = Error;
|
||||
this.messageTemplate = 'plugin-missing';
|
||||
this.messageData = data;
|
||||
Object.setPrototypeOf(this, MissingPluginError.prototype);
|
||||
}
|
||||
}
|
||||
exports.MissingPluginError = MissingPluginError;
|
||||
//# sourceMappingURL=plugin-errors.js.map
|
1
node_modules/@commitlint/load/lib/utils/plugin-errors.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/plugin-errors.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"plugin-errors.js","sourceRoot":"","sources":["../../src/utils/plugin-errors.ts"],"names":[],"mappings":";;;AAAA,MAAa,qBAAsB,SAAQ,KAAK;IAM/C,YAAY,UAAmB,EAAE,OAAY,EAAE;QAC9C,KAAK,CAAC,oCAAoC,UAAU,GAAG,CAAC,CAAC;QAN1D,cAAS,GAAG,KAAK,CAAC;QAEX,oBAAe,GAAW,kBAAkB,CAAC;QAC7C,gBAAW,GAAQ,EAAE,CAAC;QAK5B,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QAExB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC9D,CAAC;CACD;AAbD,sDAaC;AAED,MAAa,kBAAmB,SAAQ,KAAK;IAM5C,YAAY,UAAmB,EAAE,eAAuB,EAAE,EAAE,OAAY,EAAE;QACzE,KAAK,CAAC,yBAAyB,UAAU,KAAK,YAAY,EAAE,CAAC,CAAC;QAN/D,cAAS,GAAG,KAAK,CAAC;QAEX,oBAAe,GAAW,gBAAgB,CAAC;QAMjD,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QAExB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,kBAAkB,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;CACD;AAbD,gDAaC"}
|
20
node_modules/@commitlint/load/lib/utils/plugin-naming.d.ts
generated
vendored
Normal file
20
node_modules/@commitlint/load/lib/utils/plugin-naming.d.ts
generated
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* Brings package name to correct format based on prefix
|
||||
* @param {string} name The name of the package.
|
||||
* @returns {string} Normalized name of the package
|
||||
* @private
|
||||
*/
|
||||
export declare function normalizePackageName(name: string): string;
|
||||
/**
|
||||
* Removes the prefix from a fullname.
|
||||
* @param {string} fullname The term which may have the prefix.
|
||||
* @returns {string} The term without prefix.
|
||||
*/
|
||||
export declare function getShorthandName(fullname: string): string;
|
||||
/**
|
||||
* Gets the scope (namespace) of a term.
|
||||
* @param {string} term The term which may have the namespace.
|
||||
* @returns {string} The namepace of the term if it has one.
|
||||
*/
|
||||
export declare function getNamespaceFromTerm(term: string): string;
|
||||
//# sourceMappingURL=plugin-naming.d.ts.map
|
1
node_modules/@commitlint/load/lib/utils/plugin-naming.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/plugin-naming.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"plugin-naming.d.ts","sourceRoot":"","sources":["../../src/utils/plugin-naming.ts"],"names":[],"mappings":"AAeA;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,UA2ChD;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,UAiBhD;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,UAIhD"}
|
89
node_modules/@commitlint/load/lib/utils/plugin-naming.js
generated
vendored
Normal file
89
node_modules/@commitlint/load/lib/utils/plugin-naming.js
generated
vendored
Normal file
@ -0,0 +1,89 @@
|
||||
"use strict";
|
||||
var __importDefault = (this && this.__importDefault) || function (mod) {
|
||||
return (mod && mod.__esModule) ? mod : { "default": mod };
|
||||
};
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.getNamespaceFromTerm = exports.getShorthandName = exports.normalizePackageName = void 0;
|
||||
const path_1 = __importDefault(require("path"));
|
||||
// largely adapted from eslint's plugin system
|
||||
const NAMESPACE_REGEX = /^@.*\//iu;
|
||||
// In eslint this is a parameter - we don't need to support the extra options
|
||||
const prefix = 'commitlint-plugin';
|
||||
// Replace Windows with posix style paths
|
||||
function convertPathToPosix(filepath) {
|
||||
const normalizedFilepath = path_1.default.normalize(filepath);
|
||||
const posixFilepath = normalizedFilepath.replace(/\\/gu, '/');
|
||||
return posixFilepath;
|
||||
}
|
||||
/**
|
||||
* Brings package name to correct format based on prefix
|
||||
* @param {string} name The name of the package.
|
||||
* @returns {string} Normalized name of the package
|
||||
* @private
|
||||
*/
|
||||
function normalizePackageName(name) {
|
||||
let normalizedName = name;
|
||||
/**
|
||||
* On Windows, name can come in with Windows slashes instead of Unix slashes.
|
||||
* Normalize to Unix first to avoid errors later on.
|
||||
* https://github.com/eslint/eslint/issues/5644
|
||||
*/
|
||||
if (normalizedName.indexOf('\\') > -1) {
|
||||
normalizedName = convertPathToPosix(normalizedName);
|
||||
}
|
||||
if (normalizedName.charAt(0) === '@') {
|
||||
/**
|
||||
* it's a scoped package
|
||||
* package name is the prefix, or just a username
|
||||
*/
|
||||
const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, 'u'), scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, 'u');
|
||||
if (scopedPackageShortcutRegex.test(normalizedName)) {
|
||||
normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);
|
||||
}
|
||||
else if (!scopedPackageNameRegex.test(normalizedName.split('/')[1])) {
|
||||
/**
|
||||
* for scoped packages, insert the prefix after the first / unless
|
||||
* the path is already @scope/eslint or @scope/eslint-xxx-yyy
|
||||
*/
|
||||
normalizedName = normalizedName.replace(/^@([^/]+)\/(.*)$/u, `@$1/${prefix}-$2`);
|
||||
}
|
||||
}
|
||||
else if (normalizedName.indexOf(`${prefix}-`) !== 0) {
|
||||
normalizedName = `${prefix}-${normalizedName}`;
|
||||
}
|
||||
return normalizedName;
|
||||
}
|
||||
exports.normalizePackageName = normalizePackageName;
|
||||
/**
|
||||
* Removes the prefix from a fullname.
|
||||
* @param {string} fullname The term which may have the prefix.
|
||||
* @returns {string} The term without prefix.
|
||||
*/
|
||||
function getShorthandName(fullname) {
|
||||
if (fullname[0] === '@') {
|
||||
let matchResult = new RegExp(`^(@[^/]+)/${prefix}$`, 'u').exec(fullname);
|
||||
if (matchResult) {
|
||||
return matchResult[1];
|
||||
}
|
||||
matchResult = new RegExp(`^(@[^/]+)/${prefix}-(.+)$`, 'u').exec(fullname);
|
||||
if (matchResult) {
|
||||
return `${matchResult[1]}/${matchResult[2]}`;
|
||||
}
|
||||
}
|
||||
else if (fullname.startsWith(`${prefix}-`)) {
|
||||
return fullname.slice(prefix.length + 1);
|
||||
}
|
||||
return fullname;
|
||||
}
|
||||
exports.getShorthandName = getShorthandName;
|
||||
/**
|
||||
* Gets the scope (namespace) of a term.
|
||||
* @param {string} term The term which may have the namespace.
|
||||
* @returns {string} The namepace of the term if it has one.
|
||||
*/
|
||||
function getNamespaceFromTerm(term) {
|
||||
const match = term.match(NAMESPACE_REGEX);
|
||||
return match ? match[0] : '';
|
||||
}
|
||||
exports.getNamespaceFromTerm = getNamespaceFromTerm;
|
||||
//# sourceMappingURL=plugin-naming.js.map
|
1
node_modules/@commitlint/load/lib/utils/plugin-naming.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/load/lib/utils/plugin-naming.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"plugin-naming.js","sourceRoot":"","sources":["../../src/utils/plugin-naming.ts"],"names":[],"mappings":";;;;;;AAAA,gDAAwB;AAExB,8CAA8C;AAC9C,MAAM,eAAe,GAAG,UAAU,CAAC;AACnC,6EAA6E;AAC7E,MAAM,MAAM,GAAG,mBAAmB,CAAC;AAEnC,yCAAyC;AACzC,SAAS,kBAAkB,CAAC,QAAgB;IAC3C,MAAM,kBAAkB,GAAG,cAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACpD,MAAM,aAAa,GAAG,kBAAkB,CAAC,OAAO,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAE9D,OAAO,aAAa,CAAC;AACtB,CAAC;AAED;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAC,IAAY;IAChD,IAAI,cAAc,GAAG,IAAI,CAAC;IAE1B;;;;OAIG;IACH,IAAI,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE;QACtC,cAAc,GAAG,kBAAkB,CAAC,cAAc,CAAC,CAAC;KACpD;IAED,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;QACrC;;;WAGG;QACH,MAAM,0BAA0B,GAAG,IAAI,MAAM,CAC3C,mBAAmB,MAAM,OAAO,EAChC,GAAG,CACH,EACD,sBAAsB,GAAG,IAAI,MAAM,CAAC,IAAI,MAAM,OAAO,EAAE,GAAG,CAAC,CAAC;QAE7D,IAAI,0BAA0B,CAAC,IAAI,CAAC,cAAc,CAAC,EAAE;YACpD,cAAc,GAAG,cAAc,CAAC,OAAO,CACtC,0BAA0B,EAC1B,MAAM,MAAM,EAAE,CACd,CAAC;SACF;aAAM,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YACtE;;;eAGG;YACH,cAAc,GAAG,cAAc,CAAC,OAAO,CACtC,mBAAmB,EACnB,OAAO,MAAM,KAAK,CAClB,CAAC;SACF;KACD;SAAM,IAAI,cAAc,CAAC,OAAO,CAAC,GAAG,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE;QACtD,cAAc,GAAG,GAAG,MAAM,IAAI,cAAc,EAAE,CAAC;KAC/C;IAED,OAAO,cAAc,CAAC;AACvB,CAAC;AA3CD,oDA2CC;AAED;;;;GAIG;AACH,SAAgB,gBAAgB,CAAC,QAAgB;IAChD,IAAI,QAAQ,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;QACxB,IAAI,WAAW,GAAG,IAAI,MAAM,CAAC,aAAa,MAAM,GAAG,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEzE,IAAI,WAAW,EAAE;YAChB,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;SACtB;QAED,WAAW,GAAG,IAAI,MAAM,CAAC,aAAa,MAAM,QAAQ,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1E,IAAI,WAAW,EAAE;YAChB,OAAO,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;SAC7C;KACD;SAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,MAAM,GAAG,CAAC,EAAE;QAC7C,OAAO,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;KACzC;IAED,OAAO,QAAQ,CAAC;AACjB,CAAC;AAjBD,4CAiBC;AAED;;;;GAIG;AACH,SAAgB,oBAAoB,CAAC,IAAY;IAChD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;IAE1C,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAC9B,CAAC;AAJD,oDAIC"}
|
21
node_modules/@commitlint/load/license.md
generated
vendored
Normal file
21
node_modules/@commitlint/load/license.md
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 - present Mario Nebl
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
56
node_modules/@commitlint/load/package.json
generated
vendored
Normal file
56
node_modules/@commitlint/load/package.json
generated
vendored
Normal file
@ -0,0 +1,56 @@
|
||||
{
|
||||
"name": "@commitlint/load",
|
||||
"version": "15.0.0",
|
||||
"description": "Load shared commitlint configuration",
|
||||
"main": "lib/load.js",
|
||||
"types": "lib/load.d.ts",
|
||||
"files": [
|
||||
"lib/"
|
||||
],
|
||||
"scripts": {
|
||||
"deps": "dep-check",
|
||||
"pkg": "pkg-check --skip-import"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=v12"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/conventional-changelog/commitlint.git",
|
||||
"directory": "@commitlint/load"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/conventional-changelog/commitlint/issues"
|
||||
},
|
||||
"homepage": "https://commitlint.js.org/",
|
||||
"keywords": [
|
||||
"conventional-changelog",
|
||||
"commitlint",
|
||||
"library",
|
||||
"core"
|
||||
],
|
||||
"author": {
|
||||
"name": "Mario Nebl",
|
||||
"email": "hello@herebecode.com"
|
||||
},
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@commitlint/test": "^15.0.0",
|
||||
"@commitlint/utils": "^15.0.0",
|
||||
"@types/lodash": "4.14.177",
|
||||
"conventional-changelog-atom": "^2.0.8",
|
||||
"execa": "^5.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@commitlint/execute-rule": "^15.0.0",
|
||||
"@commitlint/resolve-extends": "^15.0.0",
|
||||
"@commitlint/types": "^15.0.0",
|
||||
"@endemolshinegroup/cosmiconfig-typescript-loader": "^3.0.2",
|
||||
"chalk": "^4.0.0",
|
||||
"cosmiconfig": "^7.0.0",
|
||||
"lodash": "^4.17.19",
|
||||
"resolve-from": "^5.0.0",
|
||||
"typescript": "^4.4.3"
|
||||
},
|
||||
"gitHead": "399a0289356c670a87524387cc96d8fb0a33fdca"
|
||||
}
|
Reference in New Issue
Block a user