Files
iris-context/commands/js/oxlint.go
VERSE ebde9ba68f refactor(commands): separate commands and its core into two folders (#32)
- I think it would be better if one for commands only, one for the spec
handling core logic so people won't be confused by the core logic inside
the commands folder (cleaner I guess)
- Regen docs
2026-07-05 11:27:30 +07:00

31 lines
1.5 KiB
Go

package js
import (
"github.com/versenilvis/iris/spec"
)
func init() {
spec.Register(&spec.Spec{
Name: "oxlint",
Description: "All lints (except nursery)",
Options: []spec.Option{
{Name: "-c", Description: "Path to Oxlint JSON configuration file"},
{Name: "--tsconfig", Description: "Specify the file to use as your .eslintignore"},
{Name: "--ignore-pattern", Description: "Specify file patterns to ignore (in addition to those in .eslintignore)"},
{Name: "--no-ignore", Description: "Follow symlinks when linting, which are ignored by default"},
{Name: "-D", Description: "Deny a lint rule or category (enable a lint as an error)"},
{Name: "-W", Description: "Warn about a lint rule or category (enable a lint as a warning)"},
{Name: "-A", Description: "Allow a lint rule or category (suppress a lint)"},
{Name: "--fix", Description: "Fix as many issues as possible. Only unfixed issues are reported in the output"},
{Name: "--silent", Description: "Do not display any diagnostics"},
{Name: "--deny-warnings", Description: "Exit with a non-zero code if there are any warnings"},
{Name: "--max-warnings", Description: "Exit with a non-zero code if there are more than `max` warnings"},
{Name: "-f", Description: "Use a specific output format"},
{Name: "--threads", Description: "Number of threads to use. Set to 1 to use only 1 CPU core"},
{Name: "--rules", Description: "List all available rules"},
{Name: "-h", Description: "Show help"},
{Name: "-V", Description: "Show version"},
},
})
}