id = "oxlint" name = "Oxlint" description = "A high performance linter for JavaScript and TypeScript." homepage = "https://oxc.rs" executables = ["oxlint"] [commands] format = 1 label = "Lint files" description = "Lint files or directories. Plugin toggles beyond a few common ones are left out." quality = "ai-draft" base = "fig:oxlint" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "fig" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/oxlint.ts" license = "MIT" [[commands.field]] id = "paths" label = "Files or directories" type = "path" position = 0 multiple = true path = { kind = "any", role = "input" } sources = ["fig"] [[commands.field]] id = "config" label = "Config file" type = "path" option = ["-c", "--config"] path = { kind = "file", role = "input" } sources = ["fig"] [[commands.field]] id = "fix" label = "Fix issues" description = "Rewrites files to fix as many issues as possible." type = "boolean" option = ["--fix"] effect = "overwrite" sources = ["fig"] [[commands.field]] id = "deny_warnings" label = "Fail on warnings" type = "boolean" option = ["--deny-warnings"] sources = ["fig"] [[commands.field]] id = "max_warnings" label = "Max warnings" type = "integer" option = ["--max-warnings"] sources = ["fig"] [[commands.field]] id = "format" label = "Output format" type = "enum" option = ["-f", "--format"] choices = [{ value = "default", label = "Default" }, { value = "json", label = "JSON" }, { value = "unix", label = "Unix" }, { value = "checkstyle", label = "Checkstyle" }, { value = "github", label = "GitHub" }] sources = ["fig"] [[commands.field]] id = "ignore_pattern" label = "Ignore pattern" type = "string" option = ["--ignore-pattern"] multiple = true sources = ["fig"] [[commands.field]] id = "no_ignore" label = "Do not use ignore files" type = "boolean" option = ["--no-ignore"] sources = ["fig"] [[commands.field]] id = "silent" label = "Silent" type = "boolean" option = ["--silent"] sources = ["fig"] [[commands.task]] id = "check" label = "Check" fields = ["paths", "config", "deny_warnings", "format"] required = [] [[commands.task]] id = "fix" label = "Check and fix" set = { fix = [true] } fields = ["paths", "config", "fix"] required = [] [[commands.group]] id = "basic" label = "Basic" fields = ["paths", "config", "fix", "format"] [[commands.group]] id = "advanced" label = "Advanced" fields = ["deny_warnings", "max_warnings", "ignore_pattern", "no_ignore", "silent"]