{
  "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
    },
    "source": [
      {
        "id": "src",
        "kind": "completion",
        "url": "https://github.com/withfig/autocomplete/blob/master/src/rome.ts",
        "license": "MIT"
      }
    ],
    "subcommand": [
      {
        "path": [
          "check"
        ],
        "label": "Lint files",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/rome.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "paths",
            "label": "Files or directories",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "any",
              "role": "input"
            },
            "sources": [
              "src"
            ]
          },
          {
            "id": "max_diagnostics",
            "label": "Max diagnostics",
            "type": "integer",
            "option": [
              "--max-diagnostics"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose advice",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "apply",
            "label": "Apply safe fixes",
            "type": "boolean",
            "option": [
              "--apply"
            ],
            "effect": "overwrite",
            "sources": [
              "src"
            ]
          },
          {
            "id": "apply_unsafe",
            "label": "Apply safe and unsafe fixes",
            "type": "boolean",
            "option": [
              "--apply-unsafe"
            ],
            "effect": "overwrite",
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "check",
            "label": "Lint",
            "fields": [
              "paths"
            ],
            "required": [
              "paths"
            ]
          },
          {
            "id": "fix",
            "label": "Lint and apply safe fixes",
            "fields": [
              "paths",
              "apply"
            ],
            "required": [
              "paths"
            ],
            "set": {
              "apply": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "paths",
              "apply",
              "apply_unsafe"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "max_diagnostics",
              "verbose"
            ]
          }
        ]
      },
      {
        "path": [
          "format"
        ],
        "label": "Format files",
        "source": [
          {
            "id": "src",
            "kind": "completion",
            "url": "https://github.com/withfig/autocomplete/blob/master/src/rome.ts",
            "license": "MIT"
          }
        ],
        "field": [
          {
            "id": "paths",
            "label": "Files or directories",
            "type": "path",
            "position": 0,
            "multiple": true,
            "path": {
              "kind": "any",
              "role": "input"
            },
            "sources": [
              "src"
            ]
          },
          {
            "id": "max_diagnostics",
            "label": "Max diagnostics",
            "type": "integer",
            "option": [
              "--max-diagnostics"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "verbose",
            "label": "Verbose advice",
            "type": "boolean",
            "option": [
              "--verbose"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "write",
            "label": "Write changes in place",
            "type": "boolean",
            "option": [
              "--write"
            ],
            "effect": "overwrite",
            "sources": [
              "src"
            ]
          },
          {
            "id": "indent_style",
            "label": "Indent style",
            "type": "enum",
            "option": [
              "--indent-style"
            ],
            "choices": [
              {
                "value": "tabs",
                "label": "tabs"
              },
              {
                "value": "space",
                "label": "space"
              }
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "indent_size",
            "label": "Indent size",
            "type": "integer",
            "option": [
              "--indent-size"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "line_width",
            "label": "Line width",
            "type": "integer",
            "option": [
              "--line-width"
            ],
            "sources": [
              "src"
            ]
          },
          {
            "id": "quote_style",
            "label": "Quote style",
            "type": "enum",
            "option": [
              "--quote-style"
            ],
            "choices": [
              {
                "value": "single",
                "label": "single"
              },
              {
                "value": "double",
                "label": "double"
              }
            ],
            "sources": [
              "src"
            ]
          },
          {
            "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"
            ]
          },
          {
            "id": "semicolons",
            "label": "Semicolons",
            "type": "enum",
            "option": [
              "--semicolons"
            ],
            "choices": [
              {
                "value": "always",
                "label": "always"
              },
              {
                "value": "as-needed",
                "label": "as-needed"
              }
            ],
            "sources": [
              "src"
            ]
          }
        ],
        "task": [
          {
            "id": "preview",
            "label": "Preview formatting diff",
            "fields": [
              "paths"
            ],
            "required": [
              "paths"
            ]
          },
          {
            "id": "write",
            "label": "Format in place",
            "fields": [
              "paths",
              "write"
            ],
            "required": [
              "paths"
            ],
            "set": {
              "write": [
                true
              ]
            }
          }
        ],
        "group": [
          {
            "id": "basic",
            "label": "Basic",
            "fields": [
              "paths",
              "write"
            ]
          },
          {
            "id": "advanced",
            "label": "Advanced",
            "fields": [
              "max_diagnostics",
              "verbose",
              "indent_style",
              "indent_size",
              "line_width",
              "quote_style",
              "trailing_comma",
              "semicolons"
            ]
          }
        ]
      }
    ]
  }
}
