Skip to content

Commit d4d0ebc

Browse files
committed
feat: add more fields
1 parent 8f1642b commit d4d0ebc

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/commands/help.go

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ type linterHelp struct {
2626
Presets []string `json:"presets"`
2727
EnabledByDefault bool `json:"enabledByDefault"`
2828
Deprecated bool `json:"deprecated"`
29+
Since string `json:"since"`
30+
OriginalURL string `json:"originalURL,omitempty"`
2931
}
3032

3133
type helpOptions struct {
@@ -114,6 +116,8 @@ func (c *helpCommand) printJSON() error {
114116
Presets: lc.InPresets,
115117
EnabledByDefault: lc.EnabledByDefault,
116118
Deprecated: lc.IsDeprecated(),
119+
Since: lc.Since,
120+
OriginalURL: lc.OriginalURL,
117121
})
118122
}
119123

0 commit comments

Comments
 (0)