-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathvale.ts
94 lines (94 loc) · 2.19 KB
/
vale.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
const completionSpec: Fig.Spec = {
name: "vale",
description:
"A syntax-aware linter for prose built with speed and extensibility in mind",
subcommands: [
{
name: "ls-config",
description: "Print the current configuration to stdout",
},
{
name: "ls-metrics",
description: "Print the given file's internal metrics to stdout",
args: {
name: "file",
description: "The path to a file you want to analyze",
},
},
],
options: [
{
name: ["--help", "-h"],
description: "Show help for vale",
},
{
name: ["--version", "-v"],
description: "Print the current version",
},
{
name: "--ignore-syntax",
description: "Lint all files line-by-line",
},
{
name: "--no-exit",
description: "Don't return a nonzero exit code on errors",
},
{
name: "--no-wrap",
description: "Don't wrap CLI output",
},
{
name: "--ext",
description: "An extension to associate with stdin",
displayName: "--ext=<ext>",
requiresSeparator: true,
args: {
name: "ext",
suggestions: [".md", ".rst", ".adoc", ".html"],
},
},
{
name: "--glob",
description: "A glob pattern",
displayName: "--glob=<glob>",
requiresSeparator: true,
args: {
name: "glob",
},
},
{
name: "--minAlertLevel",
description: "The minimum level to display",
displayName: "--minAlertLevel=<level>",
requiresSeparator: true,
args: {
name: "level",
suggestions: ["suggestion", "warning", "error"],
},
},
{
name: "--output",
description: "The alert output style to use",
displayName: "--output=<style>",
requiresSeparator: true,
args: {
name: "style",
suggestions: ["line", "JSON"],
},
},
{
name: "--config",
description: "A path to a .vale.ini file",
displayName: "--config=<path>",
requiresSeparator: true,
args: {
name: "path",
},
},
],
args: {
template: ["filepaths", "folders"],
isVariadic: true,
},
};
export default completionSpec;