@markuplint/ml-config 4.7.3 → 4.8.0

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 CHANGED
@@ -3,13 +3,24 @@
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.7.3](https://github.com/markuplint/markuplint/compare/@markuplint/ml-config@4.7.2...@markuplint/ml-config@4.7.3) (2024-09-02)
6
+ # [4.8.0](https://github.com/markuplint/markuplint/compare/@markuplint/ml-config@4.7.4...@markuplint/ml-config@4.8.0) (2024-10-14)
7
+
8
+
9
+ ### Features
10
+
11
+ * **ml-config:** add `severity` option includes `parseError` prop ([8970fb8](https://github.com/markuplint/markuplint/commit/8970fb85aebb0491261c931b66bddc8f3e76cc0f))
7
12
 
8
- **Note:** Version bump only for package @markuplint/ml-config
9
13
 
10
14
 
11
15
 
12
16
 
17
+ ## [4.7.4](https://github.com/markuplint/markuplint/compare/@markuplint/ml-config@4.7.3...@markuplint/ml-config@4.7.4) (2024-09-23)
18
+
19
+ **Note:** Version bump only for package @markuplint/ml-config
20
+
21
+ ## [4.7.3](https://github.com/markuplint/markuplint/compare/@markuplint/ml-config@4.7.2...@markuplint/ml-config@4.7.3) (2024-09-02)
22
+
23
+ **Note:** Version bump only for package @markuplint/ml-config
13
24
 
14
25
  ## [4.7.2](https://github.com/markuplint/markuplint/compare/@markuplint/ml-config@4.7.1...@markuplint/ml-config@4.7.2) (2024-06-25)
15
26
 
@@ -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.7.3",
3
+ "version": "4.8.0",
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.3",
28
- "@markuplint/selector": "4.6.6",
29
- "@markuplint/shared": "4.4.4",
27
+ "@markuplint/ml-ast": "4.4.5",
28
+ "@markuplint/selector": "4.6.8",
29
+ "@markuplint/shared": "4.4.6",
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
- "type-fest": "4.26.0"
34
+ "type-fest": "4.26.1"
35
35
  },
36
- "gitHead": "77cd5a25d5cf28c83253b7bfe02cd25b54e236b0"
36
+ "gitHead": "e59d4e8b762c66c7e3fb8b0a0d9d99d5160b0afa"
37
37
  }