feat: adding linter for commits
This commit is contained in:
3
node_modules/@commitlint/parse/lib/index.d.ts
generated
vendored
Normal file
3
node_modules/@commitlint/parse/lib/index.d.ts
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import { Commit, Parser, ParserOptions } from '@commitlint/types';
|
||||
export default function parse(message: string, parser?: Parser, parserOpts?: ParserOptions): Promise<Commit>;
|
||||
//# sourceMappingURL=index.d.ts.map
|
1
node_modules/@commitlint/parse/lib/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@commitlint/parse/lib/index.d.ts.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,MAAM,EAAE,aAAa,EAAC,MAAM,mBAAmB,CAAC;AAKhE,wBAA8B,KAAK,CAClC,OAAO,EAAE,MAAM,EACf,MAAM,GAAE,MAAa,EACrB,UAAU,CAAC,EAAE,aAAa,GACxB,OAAO,CAAC,MAAM,CAAC,CASjB"}
|
13
node_modules/@commitlint/parse/lib/index.js
generated
vendored
Normal file
13
node_modules/@commitlint/parse/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const { sync } = require('conventional-commits-parser');
|
||||
const defaultChangelogOpts = require('conventional-changelog-angular');
|
||||
async function parse(message, parser = sync, parserOpts) {
|
||||
const defaultOpts = (await defaultChangelogOpts).parserOpts;
|
||||
const opts = Object.assign(Object.assign({}, defaultOpts), (parserOpts || {}));
|
||||
const parsed = parser(message, opts);
|
||||
parsed.raw = message;
|
||||
return parsed;
|
||||
}
|
||||
exports.default = parse;
|
||||
//# sourceMappingURL=index.js.map
|
1
node_modules/@commitlint/parse/lib/index.js.map
generated
vendored
Normal file
1
node_modules/@commitlint/parse/lib/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;AAEA,MAAM,EAAC,IAAI,EAAC,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;AACtD,MAAM,oBAAoB,GAAG,OAAO,CAAC,gCAAgC,CAAC,CAAC;AAExD,KAAK,UAAU,KAAK,CAClC,OAAe,EACf,SAAiB,IAAI,EACrB,UAA0B;IAE1B,MAAM,WAAW,GAAG,CAAC,MAAM,oBAAoB,CAAC,CAAC,UAAU,CAAC;IAC5D,MAAM,IAAI,mCACN,WAAW,GACX,CAAC,UAAU,IAAI,EAAE,CAAC,CACrB,CAAC;IACF,MAAM,MAAM,GAAG,MAAM,CAAC,OAAO,EAAE,IAAI,CAAW,CAAC;IAC/C,MAAM,CAAC,GAAG,GAAG,OAAO,CAAC;IACrB,OAAO,MAAM,CAAC;AACf,CAAC;AAbD,wBAaC"}
|
Reference in New Issue
Block a user