id = "rome" name = "Rome" description = "Linter and formatter toolchain for JavaScript and TypeScript." executables = ["rome"] [commands] format = 1 label = "Rome" description = "Lint and format files. ci, init and daemon commands are not covered." quality = "ai-draft" base = "fig:rome" parser = { end_of_options = "--", interleave = "permute", long_equals = true, short_attached = true, short_bundles = false } [[commands.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/rome.ts" license = "MIT" [[commands.subcommand]] path = ["check"] label = "Lint files" [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/rome.ts" license = "MIT" [[commands.subcommand.field]] id = "paths" label = "Files or directories" type = "path" position = 0 multiple = true path = { kind = "any", role = "input" } sources = ["src"] [[commands.subcommand.field]] id = "max_diagnostics" label = "Max diagnostics" type = "integer" option = ["--max-diagnostics"] sources = ["src"] [[commands.subcommand.field]] id = "verbose" label = "Verbose advice" type = "boolean" option = ["--verbose"] sources = ["src"] [[commands.subcommand.field]] id = "apply" label = "Apply safe fixes" type = "boolean" option = ["--apply"] effect = "overwrite" sources = ["src"] [[commands.subcommand.field]] id = "apply_unsafe" label = "Apply safe and unsafe fixes" type = "boolean" option = ["--apply-unsafe"] effect = "overwrite" sources = ["src"] [[commands.subcommand.task]] id = "check" label = "Lint" fields = ["paths"] required = ["paths"] [[commands.subcommand.task]] id = "fix" label = "Lint and apply safe fixes" fields = ["paths", "apply"] required = ["paths"] set = { apply = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["paths", "apply", "apply_unsafe"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["max_diagnostics", "verbose"] [[commands.subcommand]] path = ["format"] label = "Format files" [[commands.subcommand.source]] id = "src" kind = "completion" url = "https://github.com/withfig/autocomplete/blob/master/src/rome.ts" license = "MIT" [[commands.subcommand.field]] id = "paths" label = "Files or directories" type = "path" position = 0 multiple = true path = { kind = "any", role = "input" } sources = ["src"] [[commands.subcommand.field]] id = "max_diagnostics" label = "Max diagnostics" type = "integer" option = ["--max-diagnostics"] sources = ["src"] [[commands.subcommand.field]] id = "verbose" label = "Verbose advice" type = "boolean" option = ["--verbose"] sources = ["src"] [[commands.subcommand.field]] id = "write" label = "Write changes in place" type = "boolean" option = ["--write"] effect = "overwrite" sources = ["src"] [[commands.subcommand.field]] id = "indent_style" label = "Indent style" type = "enum" option = ["--indent-style"] choices = [{ value = "tabs", label = "tabs" }, { value = "space", label = "space" }] sources = ["src"] [[commands.subcommand.field]] id = "indent_size" label = "Indent size" type = "integer" option = ["--indent-size"] sources = ["src"] [[commands.subcommand.field]] id = "line_width" label = "Line width" type = "integer" option = ["--line-width"] sources = ["src"] [[commands.subcommand.field]] id = "quote_style" label = "Quote style" type = "enum" option = ["--quote-style"] choices = [{ value = "single", label = "single" }, { value = "double", label = "double" }] sources = ["src"] [[commands.subcommand.field]] id = "trailing_comma" label = "Trailing commas" type = "enum" option = ["--trailing-comma"] choices = [{ value = "all", label = "all" }, { value = "es5", label = "es5" }, { value = "none", label = "none" }] sources = ["src"] [[commands.subcommand.field]] id = "semicolons" label = "Semicolons" type = "enum" option = ["--semicolons"] choices = [{ value = "always", label = "always" }, { value = "as-needed", label = "as-needed" }] sources = ["src"] [[commands.subcommand.task]] id = "preview" label = "Preview formatting diff" fields = ["paths"] required = ["paths"] [[commands.subcommand.task]] id = "write" label = "Format in place" fields = ["paths", "write"] required = ["paths"] set = { write = [true] } [[commands.subcommand.group]] id = "basic" label = "Basic" fields = ["paths", "write"] [[commands.subcommand.group]] id = "advanced" label = "Advanced" fields = ["max_diagnostics", "verbose", "indent_style", "indent_size", "line_width", "quote_style", "trailing_comma", "semicolons"]