markuplint 3.6.1 → 3.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/lib/types.d.ts +17 -17
- package/lib/util.d.ts +3 -3
- package/package.json +10 -10
package/lib/types.d.ts
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import type { Config, PlainData, RuleConfigValue, Violation } from '@markuplint/ml-config';
|
|
2
2
|
import type { Document, Ruleset } from '@markuplint/ml-core';
|
|
3
3
|
export interface MLResultInfo {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
readonly violations: readonly Violation[];
|
|
5
|
+
readonly filePath: string;
|
|
6
|
+
readonly sourceCode: string;
|
|
7
|
+
readonly fixedCode: string;
|
|
8
8
|
}
|
|
9
9
|
/**
|
|
10
10
|
* @deprecated
|
|
11
11
|
*/
|
|
12
12
|
export interface MLResultInfo_v1 {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
13
|
+
results: Violation[];
|
|
14
|
+
filePath: string;
|
|
15
|
+
sourceCode: string;
|
|
16
|
+
fixedCode: string;
|
|
17
|
+
document: Document<RuleConfigValue, PlainData> | null;
|
|
18
|
+
parser: string;
|
|
19
|
+
locale?: string;
|
|
20
|
+
ruleset: Ruleset;
|
|
21
|
+
configSet: {
|
|
22
|
+
config: Config;
|
|
23
|
+
files: string[];
|
|
24
|
+
error: string[];
|
|
25
|
+
};
|
|
26
26
|
}
|
package/lib/util.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ export declare function uuid(): string;
|
|
|
2
2
|
export declare const markuplint: string;
|
|
3
3
|
export declare function write(message: string): void;
|
|
4
4
|
export declare namespace write {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
var _a: () => boolean;
|
|
6
|
+
export { _a as break };
|
|
7
7
|
}
|
|
8
8
|
export declare function error(message: string): void;
|
|
9
9
|
export declare namespace error {
|
|
10
|
-
|
|
10
|
+
var exit: () => never;
|
|
11
11
|
}
|
|
12
12
|
export declare const head: (method: string, noColor?: boolean) => string;
|
|
13
13
|
export declare function p(s: number | string, pad: number, start?: boolean): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "markuplint",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "An HTML linter for all markup developers",
|
|
5
5
|
"author": "Yusuke Hirao",
|
|
6
6
|
"license": "MIT",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"execa": "5"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@markuplint/create-rule-helper": "3.
|
|
32
|
-
"@markuplint/file-resolver": "3.
|
|
31
|
+
"@markuplint/create-rule-helper": "3.8.0",
|
|
32
|
+
"@markuplint/file-resolver": "3.8.0",
|
|
33
33
|
"@markuplint/html-parser": "3.6.1",
|
|
34
|
-
"@markuplint/html-spec": "3.
|
|
35
|
-
"@markuplint/i18n": "3.
|
|
34
|
+
"@markuplint/html-spec": "3.7.0",
|
|
35
|
+
"@markuplint/i18n": "3.7.0",
|
|
36
36
|
"@markuplint/ml-ast": "3.1.0",
|
|
37
|
-
"@markuplint/ml-config": "3.
|
|
38
|
-
"@markuplint/ml-core": "3.
|
|
39
|
-
"@markuplint/ml-spec": "3.
|
|
40
|
-
"@markuplint/rules": "3.
|
|
37
|
+
"@markuplint/ml-config": "3.7.0",
|
|
38
|
+
"@markuplint/ml-core": "3.8.0",
|
|
39
|
+
"@markuplint/ml-spec": "3.7.0",
|
|
40
|
+
"@markuplint/rules": "3.8.0",
|
|
41
41
|
"@markuplint/shared": "3.5.0",
|
|
42
42
|
"chokidar": "^3.5.3",
|
|
43
43
|
"cli-color": "^2.0.3",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"type-fest": "^3.6.1",
|
|
58
58
|
"uuid": "^9.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "42b97b47d22b37437024e693a72a458e2963e261"
|
|
61
61
|
}
|