@commitlint/lint 18.6.1 → 19.0.3
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/README.md +5 -25
- package/lib/commit-message.d.ts +2 -2
- package/lib/commit-message.d.ts.map +1 -1
- package/lib/commit-message.js +2 -6
- package/lib/commit-message.js.map +1 -1
- package/lib/lint.d.ts +1 -1
- package/lib/lint.d.ts.map +1 -1
- package/lib/lint.js +18 -24
- package/lib/lint.js.map +1 -1
- package/package.json +9 -8
package/README.md
CHANGED
|
@@ -1,35 +1,15 @@
|
|
|
1
|
-
> Lint a string against commitlint rules
|
|
2
|
-
|
|
3
1
|
# @commitlint/lint
|
|
4
2
|
|
|
3
|
+
Lint a string against commitlint rules
|
|
4
|
+
|
|
5
5
|
## Getting started
|
|
6
6
|
|
|
7
7
|
```shell
|
|
8
8
|
npm install --save @commitlint/lint
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
```js
|
|
14
|
-
const lint = require('@commitlint/lint').default;
|
|
11
|
+
## Documentation
|
|
15
12
|
|
|
16
|
-
|
|
17
|
-
console.log(report)
|
|
18
|
-
);
|
|
19
|
-
// => { valid: true, errors: [], warnings: [] }
|
|
20
|
-
|
|
21
|
-
lint('foo: bar', {'type-enum': [1, 'always', ['bar']]}).then((report) =>
|
|
22
|
-
console.log(report)
|
|
23
|
-
);
|
|
24
|
-
/* =>
|
|
25
|
-
{ valid: true,
|
|
26
|
-
errors: [],
|
|
27
|
-
warnings:
|
|
28
|
-
[ { level: 1,
|
|
29
|
-
valid: false,
|
|
30
|
-
name: 'type-enum',
|
|
31
|
-
message: 'type must be one of [bar]' } ] }
|
|
32
|
-
*/
|
|
33
|
-
```
|
|
13
|
+
Consult [API docs](https://commitlint.js.org/api/lint) for comprehensive documentation.
|
|
34
14
|
|
|
35
|
-
|
|
15
|
+
Documentation generated from [`docs` folder](../../docs/api/format.md).
|
package/lib/commit-message.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export interface CommitMessageData {
|
|
2
|
-
header: string;
|
|
2
|
+
header: string | null;
|
|
3
3
|
body?: string | null;
|
|
4
4
|
footer?: string | null;
|
|
5
5
|
}
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const buildCommitMessage: ({ header, body, footer, }: CommitMessageData) => string;
|
|
7
7
|
//# sourceMappingURL=commit-message.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-message.d.ts","sourceRoot":"","sources":["../src/commit-message.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"commit-message.d.ts","sourceRoot":"","sources":["../src/commit-message.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,eAAO,MAAM,kBAAkB,8BAI5B,iBAAiB,KAAG,MAOtB,CAAC"}
|
package/lib/commit-message.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildCommitMesage = void 0;
|
|
4
|
-
const buildCommitMesage = ({ header, body, footer, }) => {
|
|
1
|
+
export const buildCommitMessage = ({ header, body, footer, }) => {
|
|
5
2
|
let message = header;
|
|
6
3
|
message = body ? `${message}\n\n${body}` : message;
|
|
7
4
|
message = footer ? `${message}\n\n${footer}` : message;
|
|
8
|
-
return message;
|
|
5
|
+
return message || '';
|
|
9
6
|
};
|
|
10
|
-
exports.buildCommitMesage = buildCommitMesage;
|
|
11
7
|
//# sourceMappingURL=commit-message.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commit-message.js","sourceRoot":"","sources":["../src/commit-message.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commit-message.js","sourceRoot":"","sources":["../src/commit-message.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,EAClC,MAAM,EACN,IAAI,EACJ,MAAM,GACa,EAAU,EAAE;IAC/B,IAAI,OAAO,GAAG,MAAM,CAAC;IAErB,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,OAAO,OAAO,IAAI,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IACnD,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,OAAO,OAAO,MAAM,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;IAEvD,OAAO,OAAO,IAAI,EAAE,CAAC;AACtB,CAAC,CAAC"}
|
package/lib/lint.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { LintOptions, LintOutcome, QualifiedRules } from '@commitlint/types';
|
|
1
|
+
import type { LintOptions, LintOutcome, QualifiedRules } from '@commitlint/types';
|
|
2
2
|
export default function lint(message: string, rawRulesConfig?: QualifiedRules, rawOpts?: LintOptions): Promise<LintOutcome>;
|
|
3
3
|
//# sourceMappingURL=lint.d.ts.map
|
package/lib/lint.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACX,WAAW,EACX,WAAW,EAKX,cAAc,EACd,MAAM,mBAAmB,CAAC;AAK3B,wBAA8B,IAAI,CACjC,OAAO,EAAE,MAAM,EACf,cAAc,CAAC,EAAE,cAAc,EAC/B,OAAO,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,WAAW,CAAC,CAgLtB"}
|
package/lib/lint.js
CHANGED
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const parse_1 = __importDefault(require("@commitlint/parse"));
|
|
9
|
-
const rules_1 = __importDefault(require("@commitlint/rules"));
|
|
10
|
-
const commit_message_1 = require("./commit-message");
|
|
11
|
-
const types_1 = require("@commitlint/types");
|
|
12
|
-
async function lint(message, rawRulesConfig, rawOpts) {
|
|
1
|
+
import util from 'util';
|
|
2
|
+
import isIgnored from '@commitlint/is-ignored';
|
|
3
|
+
import parse from '@commitlint/parse';
|
|
4
|
+
import defaultRules from '@commitlint/rules';
|
|
5
|
+
import { RuleConfigSeverity } from '@commitlint/types';
|
|
6
|
+
import { buildCommitMessage } from './commit-message.js';
|
|
7
|
+
export default async function lint(message, rawRulesConfig, rawOpts) {
|
|
13
8
|
const opts = rawOpts
|
|
14
9
|
? rawOpts
|
|
15
10
|
: { defaultIgnores: undefined, ignores: undefined };
|
|
16
11
|
const rulesConfig = rawRulesConfig || {};
|
|
17
12
|
// Found a wildcard match, skip
|
|
18
|
-
if ((
|
|
13
|
+
if (isIgnored(message, { defaults: opts.defaultIgnores, ignores: opts.ignores })) {
|
|
19
14
|
return {
|
|
20
15
|
valid: true,
|
|
21
16
|
errors: [],
|
|
@@ -26,7 +21,7 @@ async function lint(message, rawRulesConfig, rawOpts) {
|
|
|
26
21
|
// Parse the commit message
|
|
27
22
|
const parsed = message === ''
|
|
28
23
|
? { header: null, body: null, footer: null }
|
|
29
|
-
: await (
|
|
24
|
+
: await parse(message, undefined, opts.parserOpts);
|
|
30
25
|
if (parsed.header === null &&
|
|
31
26
|
parsed.body === null &&
|
|
32
27
|
parsed.footer === null) {
|
|
@@ -38,7 +33,7 @@ async function lint(message, rawRulesConfig, rawOpts) {
|
|
|
38
33
|
input: message,
|
|
39
34
|
};
|
|
40
35
|
}
|
|
41
|
-
const allRules = new Map(Object.entries(
|
|
36
|
+
const allRules = new Map(Object.entries(defaultRules));
|
|
42
37
|
if (opts.plugins) {
|
|
43
38
|
Object.values(opts.plugins).forEach((plugin) => {
|
|
44
39
|
if (plugin.rules) {
|
|
@@ -55,27 +50,27 @@ async function lint(message, rawRulesConfig, rawOpts) {
|
|
|
55
50
|
const invalid = Object.entries(rulesConfig)
|
|
56
51
|
.map(([name, config]) => {
|
|
57
52
|
if (!Array.isArray(config)) {
|
|
58
|
-
return new Error(`config for rule ${name} must be array, received ${
|
|
53
|
+
return new Error(`config for rule ${name} must be array, received ${util.inspect(config)} of type ${typeof config}`);
|
|
59
54
|
}
|
|
60
55
|
const [level] = config;
|
|
61
|
-
if (level ===
|
|
56
|
+
if (level === RuleConfigSeverity.Disabled && config.length === 1) {
|
|
62
57
|
return null;
|
|
63
58
|
}
|
|
64
59
|
const [, when] = config;
|
|
65
60
|
if (typeof level !== 'number' || isNaN(level)) {
|
|
66
|
-
return new Error(`level for rule ${name} must be number, received ${
|
|
61
|
+
return new Error(`level for rule ${name} must be number, received ${util.inspect(level)} of type ${typeof level}`);
|
|
67
62
|
}
|
|
68
63
|
if (config.length < 2 || config.length > 3) {
|
|
69
|
-
return new Error(`config for rule ${name} must be 2 or 3 items long, received ${
|
|
64
|
+
return new Error(`config for rule ${name} must be 2 or 3 items long, received ${util.inspect(config)} of length ${config.length}`);
|
|
70
65
|
}
|
|
71
66
|
if (level < 0 || level > 2) {
|
|
72
|
-
return new RangeError(`level for rule ${name} must be between 0 and 2, received ${
|
|
67
|
+
return new RangeError(`level for rule ${name} must be between 0 and 2, received ${util.inspect(level)}`);
|
|
73
68
|
}
|
|
74
69
|
if (typeof when !== 'string') {
|
|
75
|
-
return new Error(`condition for rule ${name} must be string, received ${
|
|
70
|
+
return new Error(`condition for rule ${name} must be string, received ${util.inspect(when)} of type ${typeof when}`);
|
|
76
71
|
}
|
|
77
72
|
if (when !== 'never' && when !== 'always') {
|
|
78
|
-
return new Error(`condition for rule ${name} must be "always" or "never", received ${
|
|
73
|
+
return new Error(`condition for rule ${name} must be "always" or "never", received ${util.inspect(when)}`);
|
|
79
74
|
}
|
|
80
75
|
return null;
|
|
81
76
|
})
|
|
@@ -111,8 +106,7 @@ async function lint(message, rawRulesConfig, rawOpts) {
|
|
|
111
106
|
valid,
|
|
112
107
|
errors,
|
|
113
108
|
warnings,
|
|
114
|
-
input: (
|
|
109
|
+
input: buildCommitMessage(parsed),
|
|
115
110
|
};
|
|
116
111
|
}
|
|
117
|
-
exports.default = lint;
|
|
118
112
|
//# sourceMappingURL=lint.js.map
|
package/lib/lint.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.js","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lint.js","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,SAAS,MAAM,wBAAwB,CAAC;AAC/C,OAAO,KAAK,MAAM,mBAAmB,CAAC;AACtC,OAAO,YAAY,MAAM,mBAAmB,CAAC;AAU7C,OAAO,EAAC,kBAAkB,EAAC,MAAM,mBAAmB,CAAC;AAErD,OAAO,EAAC,kBAAkB,EAAC,MAAM,qBAAqB,CAAC;AAEvD,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,IAAI,CACjC,OAAe,EACf,cAA+B,EAC/B,OAAqB;IAErB,MAAM,IAAI,GAAG,OAAO;QACnB,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,EAAC,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAC,CAAC;IACnD,MAAM,WAAW,GAAG,cAAc,IAAI,EAAE,CAAC;IAEzC,+BAA+B;IAC/B,IACC,SAAS,CAAC,OAAO,EAAE,EAAC,QAAQ,EAAE,IAAI,CAAC,cAAc,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAC,CAAC,EACzE,CAAC;QACF,OAAO;YACN,KAAK,EA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AAE,kBAAkB,CAAC,MAAM,CAAC;KACjC,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/lint",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "19.0.3",
|
|
4
5
|
"description": "Lint a string against commitlint rules",
|
|
5
6
|
"main": "lib/lint.js",
|
|
6
7
|
"types": "lib/lint.d.ts",
|
|
@@ -35,14 +36,14 @@
|
|
|
35
36
|
},
|
|
36
37
|
"license": "MIT",
|
|
37
38
|
"devDependencies": {
|
|
38
|
-
"@commitlint/test": "^
|
|
39
|
-
"@commitlint/utils": "^
|
|
39
|
+
"@commitlint/test": "^19.0.0",
|
|
40
|
+
"@commitlint/utils": "^19.0.0"
|
|
40
41
|
},
|
|
41
42
|
"dependencies": {
|
|
42
|
-
"@commitlint/is-ignored": "^
|
|
43
|
-
"@commitlint/parse": "^
|
|
44
|
-
"@commitlint/rules": "^
|
|
45
|
-
"@commitlint/types": "^
|
|
43
|
+
"@commitlint/is-ignored": "^19.0.3",
|
|
44
|
+
"@commitlint/parse": "^19.0.3",
|
|
45
|
+
"@commitlint/rules": "^19.0.3",
|
|
46
|
+
"@commitlint/types": "^19.0.3"
|
|
46
47
|
},
|
|
47
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "9b4ac34069e06cd327760ce37adbde8d537d8e3e"
|
|
48
49
|
}
|