@markuplint/ml-config 4.7.4 → 4.8.1
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/CHANGELOG.md +9 -3
- package/lib/merge-config.js +1 -0
- package/lib/types.d.ts +4 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [4.
|
|
6
|
+
## [4.8.1](https://github.com/markuplint/markuplint/compare/@markuplint/ml-config@4.8.0...@markuplint/ml-config@4.8.1) (2024-10-15)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @markuplint/ml-config
|
|
9
9
|
|
|
@@ -11,13 +11,19 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
# [4.8.0](https://github.com/markuplint/markuplint/compare/@markuplint/ml-config@4.7.4...@markuplint/ml-config@4.8.0) (2024-10-14)
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
### Features
|
|
17
17
|
|
|
18
|
+
- **ml-config:** add `severity` option includes `parseError` prop ([8970fb8](https://github.com/markuplint/markuplint/commit/8970fb85aebb0491261c931b66bddc8f3e76cc0f))
|
|
18
19
|
|
|
20
|
+
## [4.7.4](https://github.com/markuplint/markuplint/compare/@markuplint/ml-config@4.7.3...@markuplint/ml-config@4.7.4) (2024-09-23)
|
|
19
21
|
|
|
22
|
+
**Note:** Version bump only for package @markuplint/ml-config
|
|
23
|
+
|
|
24
|
+
## [4.7.3](https://github.com/markuplint/markuplint/compare/@markuplint/ml-config@4.7.2...@markuplint/ml-config@4.7.3) (2024-09-02)
|
|
20
25
|
|
|
26
|
+
**Note:** Version bump only for package @markuplint/ml-config
|
|
21
27
|
|
|
22
28
|
## [4.7.2](https://github.com/markuplint/markuplint/compare/@markuplint/ml-config@4.7.1...@markuplint/ml-config@4.7.2) (2024-06-25)
|
|
23
29
|
|
package/lib/merge-config.js
CHANGED
|
@@ -18,6 +18,7 @@ export function mergeConfig(a, b) {
|
|
|
18
18
|
parserOptions: mergeObject(a.parserOptions, b.parserOptions),
|
|
19
19
|
specs: mergeObject(a.specs, b.specs),
|
|
20
20
|
excludeFiles: concatArray(a.excludeFiles, b.excludeFiles, true),
|
|
21
|
+
severity: mergeObject(a.severity, b.severity),
|
|
21
22
|
pretenders: mergePretenders(a.pretenders, b.pretenders),
|
|
22
23
|
rules: mergeRules(
|
|
23
24
|
// TODO: Deep merge
|
package/lib/types.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export type Config = {
|
|
|
10
10
|
readonly parserOptions?: ParserOptions;
|
|
11
11
|
readonly specs?: SpecConfig;
|
|
12
12
|
readonly excludeFiles?: readonly string[];
|
|
13
|
+
readonly severity?: SeverityOptions;
|
|
13
14
|
readonly pretenders?: readonly Pretender[] | PretenderDetails;
|
|
14
15
|
readonly rules?: Rules;
|
|
15
16
|
readonly nodeRules?: readonly NodeRule[];
|
|
@@ -43,6 +44,9 @@ export type ParserConfig = {
|
|
|
43
44
|
export type SpecConfig = {
|
|
44
45
|
readonly [extensionPattern: string]: string;
|
|
45
46
|
};
|
|
47
|
+
export type SeverityOptions = {
|
|
48
|
+
readonly parseError?: Severity | 'off' | boolean;
|
|
49
|
+
};
|
|
46
50
|
export type PretenderDetails = {
|
|
47
51
|
/**
|
|
48
52
|
* @experimental
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/ml-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.1",
|
|
4
4
|
"description": "JSON Schema and TypeScript types of markuplint configure JSON",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -24,14 +24,14 @@
|
|
|
24
24
|
"clean": "tsc --build --clean"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@markuplint/ml-ast": "4.4.
|
|
28
|
-
"@markuplint/selector": "4.6.
|
|
29
|
-
"@markuplint/shared": "4.4.
|
|
27
|
+
"@markuplint/ml-ast": "4.4.6",
|
|
28
|
+
"@markuplint/selector": "4.6.9",
|
|
29
|
+
"@markuplint/shared": "4.4.7",
|
|
30
30
|
"@types/mustache": "4.2.5",
|
|
31
31
|
"deepmerge": "4.3.1",
|
|
32
32
|
"is-plain-object": "5.0.0",
|
|
33
33
|
"mustache": "4.2.0",
|
|
34
34
|
"type-fest": "4.26.1"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "c8c82d36c2e48d191091cbc22ca1b99ed0704b9f"
|
|
37
37
|
}
|